I'm stuck trying to resolve package issues. Any advice on how to resolve this would be appreciated.
I have a server that seems to have not had enough free space in /usr (although it had a gig free) when doing kernel updates.
Nagios told me there was a Broken Package so I logged in to see what the problem was. I increased the /usr volume to have an additional gigabyte free and shows 44% in use out of 3GB.
Now, when I do "sudo apt-get -f install" I get the following message:
Code:
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:
linux-headers-3.5.0-45-generic linux-image-3.5.0-43-generic
linux-image-3.5.0-46-generic linux-headers-3.5.0-43-generic
linux-headers-3.5.0-46-generic linux-image-3.5.0-44-generic
linux-headers-3.5.0-44-generic linux-headers-3.5.0-43 linux-headers-3.5.0-44
linux-headers-3.5.0-45 linux-headers-3.5.0-46 linux-image-3.5.0-45-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-headers-generic-lts-quantal
The following packages will be upgraded:
linux-headers-generic-lts-quantal
1 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
2 not fully installed or removed.
Need to get 0 B/2,330 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
I answer yes and then I get this:
Code:
dpkg: dependency problems prevent configuration of linux-headers-generic-lts-quantal:
linux-headers-generic-lts-quantal depends on linux-headers-3.5.0-47-generic; however:
Package linux-headers-3.5.0-47-generic is not installed.
dpkg: error processing linux-headers-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of linux-generic-lts-quantal:
linux-generic-lts-quantal depends on linux-headers-generic-lts-quantal; however:
Package linux-headers-generic-lts-quantal is not configured yet.
dpkg: error processing linux-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
linux-headers-generic-lts-quantal
linux-generic-lts-quantal
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried the following:
Code:
# sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-headers-generic-lts-quantal : Depends: linux-headers-3.5.0-47-generic but it is not installed
E: Unmet dependencies. Try using -f.
I then tried the following commands:
Code:
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get update
sudo apt-get -f install
I still get the same message.
I try to remove linux-headers-generic-lts-quantal and get the following:
Code:
# sudo apt-get remove linux-headers-generic-lts-quantal
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic-lts-quantal : Depends: linux-headers-generic-lts-quantal but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I then try the following:
Code:
# sudo apt-get remove linux-generic-lts-quantal
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-headers-generic-lts-quantal : Depends: linux-headers-3.5.0-47-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I then try:
Code:
# sudo apt-get remove linux-headers-3.5.0-47-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-3.5.0-47-generic is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-headers-generic-lts-quantal : Depends: linux-headers-3.5.0-47-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Now I try to install linux-headers-3.5.0-47-generic
Code:
# sudo apt-get install linux-headers-3.5.0-47-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-headers-3.5.0-47-generic : Depends: linux-headers-3.5.0-47 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Now I try to install linux-headers-3.5.0-47
Code:
# sudo apt-get install linux-headers-3.5.0-47
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-headers-generic-lts-quantal : Depends: linux-headers-3.5.0-47-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Now I seem to be stuck in an infinite loop.
Here is some other info about the server which is running in a virtual environment on top of ESXi 4.1.0:
Code:
uname -a
Linux srv-mysql 3.5.0-48-generic #72~precise1-Ubuntu SMP Tue Mar 11 20:09:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Code:
ls /boot/vm* -l
-rw------- 1 root root 5190624 Oct 24 10:16 /boot/vmlinuz-3.5.0-43-generic
-rw------- 1 root root 5191232 Nov 13 10:36 /boot/vmlinuz-3.5.0-44-generic
-rw------- 1 root root 5190112 Dec 4 10:39 /boot/vmlinuz-3.5.0-45-generic
-rw------- 1 root root 5191168 Jan 9 18:17 /boot/vmlinuz-3.5.0-46-generic
-rw------- 1 root root 5192320 Feb 19 16:24 /boot/vmlinuz-3.5.0-47-generic
-rw------- 1 root root 5189952 Mar 11 15:30 /boot/vmlinuz-3.5.0-48-generic
Code:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/LVG-root 1.9G 1.1G 737M 59% /
udev 237M 4.0K 237M 1% /dev
tmpfs 50M 420K 49M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 246M 0 246M 0% /run/shm
/dev/sda1 268M 151M 103M 60% /boot
/dev/mapper/LVG-home 183M 5.6M 168M 4% /home
/dev/mapper/LVG-tmp 461M 11M 427M 3% /tmp
/dev/mapper/LVG-usr 3.0G 1.3G 1.6G 44% /usr
/dev/mapper/LVG-var 1.9G 435M 1.4G 25% /var
/dev/mapper/LVG-srv 183M 5.6M 168M 4% /srv
/dev/mapper/LVG-opt 993M 773M 178M 82% /opt
/dev/mapper/LVG-bak 2.0G 1.1G 790M 59% /bak
Bookmarks