LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   apt-get upgrade error (stops at kernel due to "dependency issues") (http://www.linuxquestions.org/questions/debian-26/apt-get-upgrade-error-stops-at-kernel-due-to-dependency-issues-529741/)

n0dl 02-16-2007 05:58 PM

apt-get upgrade error (stops at kernel due to "dependency issues")
 
Hello, I tired to run apt-get update && apt-get upgrade however whenever it gets to setting up the linux-2.6-686 image I get this:
Quote:

sh0u:/home/n0dl# apt-get install kernel-image-2.6-686
Reading Package Lists... Done
Building Dependency Tree... Done
kernel-image-2.6-686 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
3 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up linux-image-2.6.18-4-686 (2.6.18.dfsg.1-10) ...
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
Failed to symbolic-link boot/initrd.img-2.6.18-4-686 to initrd.img.
dpkg: error processing linux-image-2.6.18-4-686 (--configure):
subprocess post-installation script returned error exit status 17
dpkg: dependency problems prevent configuration of linux-image-2.6-686:
linux-image-2.6-686 depends on linux-image-2.6.18-4-686; however:
Package linux-image-2.6.18-4-686 is not configured yet.
dpkg: error processing linux-image-2.6-686 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kernel-image-2.6-686:
kernel-image-2.6-686 depends on linux-image-2.6-686; however:
Package linux-image-2.6-686 is not configured yet.
dpkg: error processing kernel-image-2.6-686 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-2.6.18-4-686
linux-image-2.6-686
kernel-image-2.6-686
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to run apt-get clean && apt-get update && apt-get upgrade however that didnt work. I also tried to reinstall the image by simply running apt-get install kernel-image-2.6-686, change my mirrors (although i wouldnt think that would help considering the kernel updates come from the security mirror) and attempting to manually symbolic link /boot/initrd.img-2.6.18-4-686 to initrd.img then running the apt-get line to no avail. I run Debian sid.

pljvaldez 02-16-2007 06:20 PM

Try running aptitude dist-upgrade. It looks like you have 29 packages that are held back. Sometimes "upgrade" doesn't work and you have to "dist-upgrade".

n0dl 02-16-2007 07:20 PM

Thank you for your response. Those "29 packages" that were held back were now installed. However when I run the line apt-get clean && apt-get update && apt-get dist-upgrade I still get this:
Quote:

sh0u:/home/n0dl/mc-4.6.1# apt-get clean && apt-get update && apt-get dist-upgrade
Get: 1 http://security.debian.org stable/updates Release.gpg [189B]
Get: 2 http://ftp.se.debian.org unstable Release.gpg [189B]
Hit http://security.debian.org stable/updates Release
Ign http://security.debian.org stable/updates/main Packages/DiffIndex
Hit http://ftp.se.debian.org unstable Release
Ign http://security.debian.org stable/updates/main Packages
Hit http://security.debian.org stable/updates/main Packages
Hit http://ftp.se.debian.org unstable/main Packages/DiffIndex
Hit http://ftp.se.debian.org unstable/main Sources/DiffIndex
Fetched 2B in 2s (1B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]?y
Setting up linux-image-2.6.18-4-686 (2.6.18.dfsg.1-10) ...
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
Failed to symbolic-link boot/initrd.img-2.6.18-4-686 to initrd.img.
dpkg: error processing linux-image-2.6.18-4-686 (--configure):
subprocess post-installation script returned error exit status 17
dpkg: dependency problems prevent configuration of linux-image-2.6-686:
linux-image-2.6-686 depends on linux-image-2.6.18-4-686; however:
Package linux-image-2.6.18-4-686 is not configured yet.
dpkg: error processing linux-image-2.6-686 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kernel-image-2.6-686:
kernel-image-2.6-686 depends on linux-image-2.6-686; however:
Package linux-image-2.6-686 is not configured yet.
dpkg: error processing kernel-image-2.6-686 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-2.6.18-4-686
linux-image-2.6-686
kernel-image-2.6-686
E: Sub-process /usr/bin/dpkg returned an error code (1)
The strange thing is it says:
Quote:

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
which I take is supposed to mean that nothing more needs to be done in terms of updating. However, the image still attempts to upgrade (and fail). Any ideas?


All times are GMT -5. The time now is 02:34 AM.