Cannot install linux-headers-2.6.32-29-server on 10.4.1
When the update came through for the 2.6.32-29 headers, the unattended install failed. Now when I try to "sudo apt-get -f install" to fix the problem it responds with the following (even though I have lots of disk space):
sudo 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:
linux-
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-
The following NEW packages will be installed:
linux-
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
15 not fully installed or removed.
Need to get 0B/795kB of archives.
After this operation, 9,359kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 89817 files and directories currently installed.)
Unpacking linux-headers-
dpkg: error processing /var/cache/
error creating symbolic link `./usr/
No apport report written because the error message indicates a disk full error
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
The following is a df of my system to prove that space is available:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/
none 1.9G 292K 1.9G 1% /dev
none 1.9G 0 1.9G 0% /dev/shm
none 1.9G 344K 1.9G 1% /var/run
none 1.9G 0 1.9G 0% /var/lock
none 1.9G 0 1.9G 0% /lib/init/rw
/dev/sda1 938M 76M 816M 9% /boot
/dev/sdb1 938M 35M 856M 4% /toob
/dev/mapper/
/dev/mapper/
/dev/mapper/
/dev/mapper/
What's up guys ???
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Gary Alderson
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
PS. uname -a responds:
Linux bluestem 2.6.32-28-server #55-Ubuntu SMP Mon Jan 10 23:57:16 UTC 2011 x86_64 GNU/Linux
Revision history for this message
|
#2 |
Try:
sudo apt-get --purge autoremove; sudo apt-get clean
then retry
Revision history for this message
|
#3 |
Been there done that many times ... once more:
sudo apt-get --purge autoremove
[sudo] password for alders:
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-
E: Unmet dependencies. Try using -f.
alders@bluestem:~$ sudo apt-get clean
alders@bluestem:~$
I have also done autoclean no joy.
Revision history for this message
|
#4 |
Just for the heck of it I tried the --fix-broken again after the above ... same thing:
sudo 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:
linux-
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-
The following NEW packages will be installed:
linux-
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
15 not fully installed or removed.
Need to get 795kB of archives.
After this operation, 9,359kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://
Fetched 795kB in 7s (111kB/s)
(Reading database ... 89817 files and directories currently installed.)
Unpacking linux-headers-
dpkg: error processing /var/cache/
error creating symbolic link `./usr/
No apport report written because the error message indicates a disk full error
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
alders@bluestem:~$
Revision history for this message
|
#5 |
BTW:
1. /etc/apt/
2. /etc/apt/apt.conf.d is stock with the exception that I tried bumping the 20archives
APT::Archives:
3. dpkg --audit gives me:
sudo dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
tzdata-java time zone and daylight-saving time data for use by java r
linux-
libpango1.0-common Modules and configuration files for the Pango
libpango1.0-0 Layout and rendering of internationalized text
libtiff4 Tag Image File Format (TIFF) library
linux-
libavahi-core6 Avahi's embeddable mDNS/DNS-SD library
libavahi-
libavahi-common3 Avahi common library
linux-image-server Linux kernel image on Server Equipment.
linux-server Complete Linux kernel on Server Equipment.
libavahi-client3 Avahi client library
linux-firmware Firmware for Linux kernel drivers
avahi-daemon Avahi mDNS/DNS-SD daemon
linux-
4. apt-cache stats gives me:
sudo apt-cache stats
Total package names: 39621 (1,902k)
Normal packages: 30051
Pure virtual packages: 672
Single virtual packages: 2616
Mixed virtual packages: 292
Missing: 5990
Total distinct versions: 33659 (1,885k)
Total distinct descriptions: 33659 (808k)
Total dependencies: 221062 (6,190k)
Total ver/file relations: 35226 (564k)
Total Desc/File relations: 33659 (539k)
Total Provides mappings: 6442 (129k)
Total globbed strings: 150 (1,941)
Total dependency version space: 1,118k
Total slack space: 97.0k
Total space accounted for: 10.8M
5. sudo apt-cache show linux-headers-
Package: linux-headers-
Priority: optional
Section: devel
Installed-Size: 32
Maintainer: Ubuntu Kernel Team <email address hidden>
Architecture: amd64
Source: linux-meta
Version: 2.6.32.29.35
Depends: linux-headers-
Filename: pool/main/
Size: 4474
MD5sum: a345f0a382d10f5
SHA1: 29cd5b8de43d42a
SHA256: 3fb1a07333d6b26
Description: Linux kernel headers on Server Equipment.
This package will always depend on the latest kernel headers available
for Server Equipment.
Bugs: https:/
Origin: Ubuntu
Supported: 5y
Package: linux-headers-
Priority: optional
Section: devel
Installed-Size: 32
Maintainer: Ubuntu Kernel Team <email address hidden>
Architecture: amd64
Source: linux-meta
Version: 2.6.32.21.22
Depends: linux-headers-
Filename: pool/main/
Size: 3926
MD5sum: b987c0606529dfa
SHA1: fafc645367d2b18
SHA256: 68dc7e83c59fb0f
Description: Linux kernel headers on Server Equipment.
This package will always depend on the latest kernel headers available
for Server Equipment.
Bugs: https:/
Origin: Ubuntu
Supported: 5y
Any other thoughts or ideas ???
Revision history for this message
|
#7 |
Well that certainly got the backlog of updates out of the way. Thanks.
The linux-headers-
sudo dpkg --configure -a
[sudo] password for alders:
Setting up tzdata-java (2011c-
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
Running postinst hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /memtest86+.bin
done
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Setting up libpango1.0-common (1.28.0-0ubuntu2.2) ...
Cleaning up font configuration of pango...
Cleaning up category xfont..
Updating font configuration of pango...
Cleaning up category xfont..
Updating category xfont..
Setting up libpango1.0-0 (1.28.0-0ubuntu2.2) ...
Setting up libtiff4 (3.9.2-2ubuntu0.4) ...
dpkg: dependency problems prevent configuration of linux-headers-
linux-
Package linux-headers-
dpkg: error processing linux-headers-
dependency problems - leaving unconfigured
Setting up libavahi-
Setting up libavahi-common3 (0.6.25-1ubuntu6.2) ...
Setting up libavahi-client3 (0.6.25-1ubuntu6.2) ...
Setting up linux-firmware (1.34.4) ...
Setting up linux-headers-
Setting up libavahi-core6 (0.6.25-1ubuntu6.2) ...
Setting up linux-image-server (2.6.32.29.35) ...
Setting up linux-server (2.6.32.29.35) ...
Setting up avahi-daemon (0.6.25-1ubuntu6.2) ...
start: Job is already running: avahi-daemon
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
linux-
alders@bluestem:~$
Revision history for this message
|
#8 |
ok and the output of:
uname -a
Thanks
Revision history for this message
|
#9 |
As shown above:
uname -a
Linux bluestem 2.6.32-28-server #55-Ubuntu SMP Mon Jan 10 23:57:16 UTC 2011 x86_64 GNU/Linux
Revision history for this message
|
#10 |
When I logged in again it requested a reboot ... uname is now:
uname -a
Linux bluestem 2.6.32-29-server #58-Ubuntu SMP Fri Feb 11 21:06:51 UTC 2011 x86_64 GNU/Linux
I retried the apt-get -f install and dpkg --confgure -a to no avail ... still an issue.
Revision history for this message
|
#11 |
Try:
sudo apt-get --purge remove linux-image-
Then retry
May just help (Clears off 2 old kernels and saves 250Mb space)
Revision history for this message
|
#12 |
Good thought ... but it really can't be a space issue, see below:
alders@bluestem:~$ sudo apt-get --purge remove linux-image-
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-
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
alders@bluestem:~$ sudo apt-get --purge 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-
E: Unmet dependencies. Try using -f.
alders@bluestem:~$
I do have tons of free disk space, so that should not be the issue:
alders@bluestem:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/
none 1.9G 292K 1.9G 1% /dev
none 1.9G 0 1.9G 0% /dev/shm
none 1.9G 308K 1.9G 1% /var/run
none 1.9G 0 1.9G 0% /var/lock
none 1.9G 0 1.9G 0% /lib/init/rw
/dev/sdc1 938M 85M 807M 10% /boot
/dev/sdd1 938M 35M 856M 4% /toob
/dev/mapper/
/dev/mapper/
/dev/mapper/
/dev/mapper/
alders@bluestem:~$
alders@bluestem:~$ sudo 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:
linux-
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-
The following NEW packages will be installed:
linux-
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0B/795kB of archives.
After this operation, 9,359kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 89817 files and directories currently installed.)
Unpacking linux-headers-
dpkg: error processing /var/cache/
error creating symbolic link `./usr/
No apport report written because the error message indicates a disk full error
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
alders@bluestem:~$
Sorry to be such a pain ... I really appreciate all your efforts.
I am almost tempted to just unpack the headers and copy them in manually. But I suspect that apt won't let that fly from a registration point of view.
Revision history for this message
|
#13 |
try:
wget http://
Should satisfy that
:D
Revision history for this message
|
#14 |
One would think so ... aaaahhhh:
alders@
total 776
-rw-rw---- 1 root alders 794620 2011-02-15 03:05 linux-headers-
alders@
(Reading database ... 89817 files and directories currently installed.)
Unpacking linux-headers-
dpkg: error processing ./linux-
error creating symbolic link `./usr/
Errors were encountered while processing:
./linux-
alders@
Filesystem Size Used Avail Use% Mounted onalders@
total 776
-rw-rw---- 1 root alders 794620 2011-02-15 03:05 linux-headers-
alders@
(Reading database ... 89817 files and directories currently installed.)
Unpacking linux-headers-
dpkg: error processing ./linux-
error creating symbolic link `./usr/
Errors were encountered while processing:
./linux-
alders@
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/
alders@
/dev/mapper/
alders@
Revision history for this message
|
#15 |
ok what apps do you have installed that you can remove?
Revision history for this message
|
#16 |
I tried using Midnight Commander to open the .deb archive and copy (extract) the CONTENTS directory to another directory which had 91GB free and it died with the out of space error at approximately the same spot./usr/
Revision history for this message
|
#17 |
It is not a space issue ... I have seen something like this before where the archive was corrupted and tried to overwrite a ugo=r file. I suspect that the permissions are wrong in the archive or some such.
This is a virgin server with very few apps on it:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/
none 1.9G 292K 1.9G 1% /dev
none 1.9G 0 1.9G 0% /dev/shm
none 1.9G 308K 1.9G 1% /var/run
none 1.9G 0 1.9G 0% /var/lock
none 1.9G 0 1.9G 0% /lib/init/rw
/dev/sdc1 938M 85M 807M 10% /boot
/dev/sdd1 938M 35M 856M 4% /toob
/dev/mapper/
/dev/mapper/
/dev/mapper/
/dev/mapper/
Revision history for this message
|
#18 |
Another observation:
looking at it via mc ... the entire ./usr/src/
However when it trys to finish the copying at the ./usr/src/
For example:
root@bluestem:
touch: cannot touch `xxx': No space left on device
root@bluestem:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/
root@bluestem:
drwxr-xr-x 5 root root 4096 2011-02-11 15:54 .
which makes totally no sense.
Revision history for this message
|
#19 |
Ok something is now really weird ...
alders@
/home/alders/tmp
alders@
alders@
linux-headers-
alders@
alders@
# cd /root/tmp
# pwd
/root/tmp
# ls
CONTENTS
# touch xxx
touch: cannot touch `xxx': No space left on device
# cd ..
# ls -ld tmp
drwxr-x--- 3 root root 4096 2011-03-16 03:18 tmp
It would appear that /root is now mounted read-only even though /etc mtab looks good (see below). This is strange as during the dpkg and the mc file copy it was working just fine. .... Twilight Zone ... I have rebooted to see if that works.
# cat /etc/mtab
/dev/mapper/
proc /proc proc rw,noexec,
none /sys sysfs rw,noexec,
none /sys/fs/
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/
none /dev devtmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,
none /dev/shm tmpfs rw,nosuid,nodev 0 0
none /var/run tmpfs rw,nosuid,mode=0755 0 0
none /var/lock tmpfs rw,noexec,
none /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
/dev/sdc1 /boot ext4 rw 0 0
/dev/sdd1 /toob ext4 rw 0 0
/dev/mapper/
/dev/mapper/
/dev/mapper/
/dev/mapper/
Ok after reboot ....
sudo /bin/sh
[sudo] password for alders:
# cd /root/tmp
# ls
CONTENTS
# touch xxx
touch: cannot touch `xxx': No space left on device
# pwd
/root/tmp
# cd ..
# rm -R /root/tmp
# ls -l tmp
ls: cannot access tmp: No such file or directory
# touch xxx
# ls -ld xxx
-rw-r----- 1 root root 0 2011-03-16 04:15 xxx
It would appear that all os good again after I rm'ed the extracted directory,
Again ... something is strange with that .deb archive.
Revision history for this message
|
#20 |
Ok I was able to finally unpack the .deb archive manually using midnight commander. IE. I extracted the files via copy but created the tree CONTENTS/
So essentially I have done the dpkg --unpack task into a tmp directory.
Now when I try dpkg --configure linux-headers-
root@bluestem:
dpkg: error processing linux-headers-
no package named `linux-
Errors were encountered while processing:
linux-
Which of course makes sense since I am going through the back door essentially.
Where do I go from here ???
Revision history for this message
|
#21 |
Ok another interesting note:
I tried to manually install the linux-headers-
Checking /proc/sys/fs my inode-nr is "37581 127" which was set by default in the install. I can't find inode-max but I am wondering if that may be the issue. 127 is awefully close to 115.
Am I dreaming or close ???
Revision history for this message
|
#22 |
Hmmm . in reading elsewhere it would appear that I am out of inodes on the root filesystem.
root@bluestem:
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/
Back to the starting line I guess.
Do I need to rebuild the filesystem or can one add inodes dynamically ???
Sorry for the trip down the rabbit hole.
Revision history for this message
|
#23 |
Ok success at long last ... many many thanks for all of your help.
I create a new logical volume for /usr/src with 150000 inodes, copied everything over and mounted it.
apt-get -f install result is as follows: YES !!!!!!!!!!!!!!!!!!!
root@bluestem:/usr# 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:
linux-
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-
The following NEW packages will be installed:
linux-
The following packages will be upgraded:
linux-
1 upgraded, 2 newly installed, 0 to remove and 18 not upgraded.
1 not fully installed or removed.
Need to get 10.7MB of archives.
After this operation, 85.5MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 10.7MB in 1min 1s (173kB/s)
Selecting previously deselected package linux-headers-
(Reading database ... 89817 files and directories currently installed.)
Unpacking linux-headers-
Selecting previously deselected package linux-headers-
Unpacking linux-headers-
Preparing to replace linux-headers-
Unpacking replacement linux-headers-
Setting up linux-headers-
Setting up linux-headers-
Setting up linux-headers-
I will cleanup 32-29.58 now ... but I can move on !!!