I am working on a Ubuntu Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-43-generic x86_64)
machine.
There are some packages that I need to install, and in order to be able to that, first I have to run apt-get -f install
.
But this is what I get when I run apt-get -f install
:
root@SERVERLINUX:/boot# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
firefox-globalmenu python2.6-minimal linux-headers-3.5.0-39-generic linux-headers-3.5.0-34 linux-headers-3.5.0-37
linux-headers-3.5.0-39 thunderbird-globalmenu linux-headers-3.5.0-34-generic linux-headers-3.5.0-37-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-image-generic-lts-quantal
The following packages will be upgraded:
linux-image-generic-lts-quantal
1 upgraded, 0 newly installed, 0 to remove and 440 not upgraded.
2 not fully installed or removed.
Need to get 0 B/2.442 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: dependency problems prevent configuration of linux-image-generic-lts-quantal:
linux-image-generic-lts-quantal depends on linux-image-3.5.0-44-generic; however:
Package linux-image-3.5.0-44-generic is not installed.
dpkg: error processing linux-image-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-lts-quantal:
linux-generic-lts-quantal depends on linux-image-generic-lts-quantal; however:
Package linux-image-generic-lts-quantal is not configured yet.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: error processing linux-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-generic-lts-quantal
linux-generic-lts-quantal
E: Sub-process /usr/bin/dpkg returned an error code (1)
What's going on? How can I manage to run apt-get -f install
succesfully? How can I solve those dependency errors?
EDIT:
This is what I get when I run dpkg --configure -a
, as suggested by Mohsen Pahlevanzadeh:
root@SERVERLINUX:/boot# dpkg --configure -a
dpkg: dependency problems prevent configuration of linux-image-generic-lts-quantal:
linux-image-generic-lts-quantal depends on linux-image-3.5.0-44-generic; however:
Package linux-image-3.5.0-44-generic is not installed.
dpkg: error processing linux-image-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-lts-quantal:
linux-generic-lts-quantal depends on linux-image-generic-lts-quantal; however:
Package linux-image-generic-lts-quantal is not configured yet.
dpkg: error processing linux-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-generic-lts-quantal
linux-generic-lts-quantal
apt-get install linux-image-3.5.0-44-generic
. – Faheem Mitha Sep 08 '14 at 11:29