how to solve dependency problems

Asked by Mohan D

After upgrading from Gutsy to Hardy, I get these kinds of error reports whenever updates are installed. I have no clue about these issues and I am new to Linux. Can someone explain these error logs? I am still able to use Hardy for my normal usage and I do not see any problem whatsoever, excepting my webcam, which is not working after upgrade.

E: linux-image-2.6.24-12-generic: subprocess post-installation script returned error exit status 2
E: linux-ubuntu-modules-2.6.24-12-generic: dependency problems - leaving unconfigured
E: linux-image-generic: dependency problems - leaving unconfigured
E: linux-restricted-modules-2.6.24-12-generic: dependency problems - leaving unconfigured
E: linux-restricted-modules-generic: dependency problems - leaving unconfigured
E: linux-generic: dependency problems - leaving unconfigured

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu linux-meta Edit question
Assignee:
No assignee Edit question
Solved by:
Jim Qode
Solved:
Last query:
Last reply:
Revision history for this message
Jim Hutchinson (jphutch) said :
#1

Hardy will not be released for another month. Upgrading now is a bit premature. The beta version is out so running that is fine if you wish to help discover and report bugs.

As for the error, I'm not sure. What does the contents of /etc/apt/sources.list look like? are the repositories for gutsy or hardy? If gutsy that could be the issue. If hardy, try running the following in a terminal (apps - accessories)

sudo dpkg --configure -a

Revision history for this message
Mohan D (dasaratharao) said :
#2

Thanks for the response.
I always want to explore and learn. As you said, I want to discover and report bugs. The contents of /etc/apt has many source.list_backup_xxxx files. Aaprt from these backup files, there are three files, viz., sources.list, sources.list.distUpgrade and sources.list.save file. The first file opens up Software Sources dialog. This does not say whether the repositories belong to Gutsy or Hardy. The second file indicates Gutsy repositories and the third indicates Hardy repositories. Many unsupported third party repositories were added by me since I was using Fiesty. I am not sure whether they cause any problem. I ran the last command given in the reply and the results are copied below:

mohan@mohan-desktop:~$ sudo dpkg --configure -a
[sudo] password for mohan:
Setting up linux-image-2.6.24-12-generic (2.6.24-12.22) ...
Internal Error: Could not find image (/boot/vmlinuz-2.6.24-12-generic)
dpkg: error processing linux-image-2.6.24-12-generic (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-2.6.24-12-generic; however:
  Package linux-image-2.6.24-12-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-restricted-modules-2.6.24-12-generic:
 linux-restricted-modules-2.6.24-12-generic depends on linux-image-2.6.24-12-generic; however:
  Package linux-image-2.6.24-12-generic is not configured yet.
dpkg: error processing linux-restricted-modules-2.6.24-12-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 2.6.24.12.13); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-ubuntu-modules-2.6.24-12-generic:
 linux-ubuntu-modules-2.6.24-12-generic depends on linux-image-2.6.24-12-generic; however:
  Package linux-image-2.6.24-12-generic is not configured yet.
dpkg: error processing linux-ubuntu-modules-2.6.24-12-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-restricted-modules-generic:
 linux-restricted-modules-generic depends on linux-restricted-modules-2.6.24-12-generic; however:
  Package linux-restricted-modules-2.6.24-12-generic is not configured yet.
dpkg: error processing linux-restricted-modules-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.24-12-generic
 linux-image-generic
 linux-restricted-modules-2.6.24-12-generic
 linux-generic
 linux-ubuntu-modules-2.6.24-12-generic
 linux-restricted-modules-generic
mohan@mohan-desktop:~$

Hope these are of help to answer my question. Best Regards.

Revision history for this message
Best Jim Qode (jimqode) said :
#3

probably your sources list is messed up. If you can run gnome, try choosing another server from synaptic.

Revision history for this message
Mohan D (dasaratharao) said :
#4

I tried your suggestion and it did not work for me. I decided to go for a clean Hardy install. I do not have this problem any more. Thanks.

Revision history for this message
jabirvmk (jabirvmk) said :
#5

i am a new user in ubuntu
when i was installing ubuntu 8.04 some errors are coming...

like this....
warning:file://cdrom/pool/main/u/udev-117-8-i386.deb was currept

when i press Continioue another message is displaying.. like this

warning:could not download package udev

after i press continioue....
another message like this

warning: failure trying.. to run chroot /target dpkg --force-depeds-- install var/cache/apt/archives/libc6_2.7-10 ubuntu3_i386.deb

this type of message is coming...
here i am using.. original CD , i changed the CD-drive also..
but..

sir how can i solve this problom ( what is the problom here)

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#6

@jabirvmk, please don't append a new question on a already answered or marked as solved question.
Please make new question from here: https://answers.launchpad.net/ubuntu/+addquestion
you will get better chance to get right answer on a fresh tagged "open" question.
Solved or answered question are usually not read from answering people.

Thank you