PDA

View Full Version : apt-get Kernel-image problem...



Stealth870
09-07-2004, 06:35 PM
Trying to get a new kernel, this is my result:

<pt-get install 'kernel-image-2.6.8-1-686' ;echo RESULT=$?
Reading Package Lists... Done
Building Dependency Tree... Done
kernel-image-2.6.8-1-686 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 566 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up kernel-image-2.6.8-1-686 (2.6.8-2) ...
/usr/sbin/mkinitrd: line 1: mkext2fs: command not found
Failed to create initrd image.
dpkg: error processing kernel-image-2.6.8-1-686 (--configure):
subprocess post-installation script returned error exit status 9
Errors were encountered while processing:
kernel-image-2.6.8-1-686
E: Sub-process /usr/bin/dpkg returned an error code (1)
RESULT=100

This means...?

mzilikazi
09-07-2004, 07:57 PM
Do you have initrd-tools installed?

dpkg -l|grep initrd-tools

Stealth870
09-09-2004, 04:49 PM
Hmm, I updated it via apt-get upgrade, and it seemed to work, but now I think it has a dpkg prob?

Setting up kernel-image-2.6.8-1-686 (2.6.8-2) ...
/usr/sbin/mkinitrd: line 1: mkext2fs: command not found
Failed to create initrd image.
dpkg: error processing kernel-image-2.6.8-1-686 (--configure):
subprocess post-installation script returned error exit status 9
Errors were encountered while processing:
kernel-image-2.6.8-1-686
E: Sub-process /usr/bin/dpkg returned an error code (1)

mzilikazi
09-09-2004, 05:55 PM
It's the same exact error you posted first. Did you install initrd-tools?

Stealth870
09-10-2004, 12:19 PM
Oh, it is the same error...

Yes, I have initrd-tools installed (according to apt-get).

kempston
03-08-2005, 01:13 PM
apt-get remove initrd-tools ; dpkg -P initrd-tools ; apt-get install initrd-tools
seems to be fixing the problem. well actually i did the same with kernel image, but i think only initrd-tools makes the difference

Jansi
04-08-2005, 02:01 PM
apt-get remove initrd-tools ; dpkg -P initrd-tools ; apt-get install initrd-tools

Thanks much; these commands saved me much frustration in dealing with the "mkext2fs: command not found" error when apt-get'ting a new kernel. Didn't know about the dpkg -P option, or that such a thing might be handy.