FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 03-04-2009, 09:50 AM
"Gary Sewell"
 
Default linux kernel confusions

*


Sorry to interupt you all, but I'm stumped with a problem thats
causing us a lot of grief.


*


We have a couple of debian etch 64bit installations that are
being very stubborn when it comes to the kernel image. They seem confused as to
which version is installed.


*


Here are some example outputs... Very grateful for any input
into this problem.


*


++++++++++++++


*


*


nine:/home/xxxx# ls -l /boot/ /lib/modules/


/boot/:


total 14827


-rw-r--r-- 1 root root** 64915 2007-03-26 10:33
config-2.6.18-4-amd64


-rw-r--r-- 1 root root** 64816 2008-01-23 06:21
config-2.6.18-6-amd64


drwxr-xr-x 2 root root*** 1024 2007-04-11
20:19 grub


-rw-r--r-- 1 root root 4997714 2009-02-20 15:01
initrd.img-2.6.18-4-amd64


-rw-r--r-- 1 root root 4997811 2008-01-31 18:58
initrd.img-2.6.18-4-amd64.bak


drwx------ 2 root root** 12288 2007-04-11 20:13
lost+found


-rw-r--r-- 1 root root* 972672 2007-03-26 11:53
System.map-2.6.18-4-amd64


-rw-r--r-- 1 root root* 974070 2008-01-23 08:48
System.map-2.6.18-6-amd64


-rw-r--r-- 1 root root 1512400 2007-03-26 11:53
vmlinuz-2.6.18-4-amd64


-rw-r--r-- 1 root root 1512393 2008-01-23 08:48
vmlinuz-2.6.18-6-amd64


*


/lib/modules/:


total 8


drwxr-xr-x 3 root root 4096 2009-03-03 12:17 2.6.18-4-amd64


drwxr-xr-x 3 root root 4096 2009-03-03 12:17 2.6.18-6-amd64


*


*


++++++++++++++++++


dpgk -l


iHR
linux-image-2.6.18-4-amd64*******************
2.6.18.dfsg.1-12*****************************
Linux 2.6.18 image on AMD64


iHR
linux-image-2.6.18-6-amd64*******************
2.6.18.dfsg.1-17etch1************************
Linux 2.6.18 image on AMD64


*


*


+++++++++++++


*


nine:/home/xxxx# aptitude install libmime-lite-perl


Reading package lists... Done


Building dependency tree... Done


Reading extended state
information*****


Initializing package states... Done


Reading task descriptions... Done*


Building tag database... Done***


The following packages have been kept back:


* apache-common apache-perl apache2-utils debconf
debconf-i18n debconf-utils dselect grub initscripts libapache-mod-perl
libblkid1 libcomerr2 libdbi-perl libfreetype6 libgnutls13 libkrb53 liblcms1


* libmagic1 libmysqlclient15off libpcre3 libpq4 libss2
libssl0.9.8 libtiff4 libuuid1 libxml2 linux-image-2.6.18-4-amd64
linux-image-2.6.18-6-amd64 locales mysql-client mysql-client-5.0 mysql-common
nano


* ntp openssh-client openssh-server passwd ssh sysv-rc
sysvinit sysvinit-utils util-linux-locales vim-common vim-tiny


The following NEW packages will be installed:


* libmime-lite-perl


0 packages upgraded, 1 newly installed, 0 to remove and 44
not upgraded.


Need to get 0B of archives. After unpacking 164kB will be
used.


Writing extended state information... Error!


E: I wasn't able to locate file for the
linux-image-2.6.18-4-amd64 package. This might mean you need to manually fix
this package.


E: Couldn't lock list directory..are you root?


*
 
Old 03-04-2009, 07:37 PM
"Boyd Stephen Smith Jr."
 
Default linux kernel confusions

On Wednesday 04 March 2009 04:50:56 Gary Sewell wrote:
> ++++++++++++++++++
> dpgk -l
>

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-
pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
> iHR linux-image-2.6.18-4-amd64 2.6.18.dfsg.1-12
> Linux 2.6.18 image on AMD64
>
> iHR linux-image-2.6.18-6-amd64 2.6.18.dfsg.1-17etch1
> Linux 2.6.18 image on AMD64
> +++++++++++++

So, dpkg "thinks" that you want both installed, but both are only half-
installed and will need to be reinstalled.

I'd start by issuing the command:
aptitude reinstall linux-image-2.6.18-{4,6}-amd64
from bash.

Alternatively, if you only want one installed, I'd remove the one you don't
want and then reinstall the one you do want. (Don't reboot in between, it
is bad to have your only kernel package be half-installed.)

If aptitude fails you, you might have to drop down to using dpkg directly to
"force-remove" the one you don't want, but read enough documentation to be
confident with what you are doing. (It is fairly easy to break your system
if you start forcing actions with dpkg.)
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss@iguanasuicide.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/
 

Thread Tools




All times are GMT. The time now is 06:42 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org