Cannot install linux-headers-2.6.32-29-server on 10.4.1

Asked by Gary Alderson

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-headers-2.6.32-28-server linux-headers-2.6.32-28
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-headers-2.6.32-29-server
The following NEW packages will be installed:
  linux-headers-2.6.32-29-server
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-2.6.32-29-server (from .../linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb (--unpack):
 error creating symbolic link `./usr/src/linux-headers-2.6.32-29-server/include/linux/gameport.h': No space left on device
No apport report written because the error message indicates a disk full error
                                                                              Errors were encountered while processing:
 /var/cache/apt/archives/linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb
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/VG03-VG03LV01
                       94G 1.8G 87G 2% /
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/VG02-VG02LV01
                       92G 471M 87G 1% /var
/dev/mapper/VG01-VG01LV01
                       92G 188M 87G 1% /tmp
/dev/mapper/VG03-VG03LV03
                       92G 188M 87G 1% /var/www
/dev/mapper/VG03-VG03LV02
                       92G 195M 87G 1% /home

What's up guys ???

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Gary Alderson
Solved:
Last query:
Last reply:
Revision history for this message
Gary Alderson (gary-f-alderson) said :
#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
actionparsnip (andrew-woodhead666) said :
#2

Try:
sudo apt-get --purge autoremove; sudo apt-get clean

then retry

Revision history for this message
Gary Alderson (gary-f-alderson) said :
#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-headers-server: Depends: linux-headers-2.6.32-29-server but it is not installed
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
Gary Alderson (gary-f-alderson) said :
#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-headers-2.6.32-28-server linux-headers-2.6.32-28
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-headers-2.6.32-29-server
The following NEW packages will be installed:
  linux-headers-2.6.32-29-server
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://ca.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-headers-2.6.32-29-server 2.6.32-29.58 [795kB]
Fetched 795kB in 7s (111kB/s)
(Reading database ... 89817 files and directories currently installed.)
Unpacking linux-headers-2.6.32-29-server (from .../linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb (--unpack):
 error creating symbolic link `./usr/src/linux-headers-2.6.32-29-server/include/linux/gameport.h': No space left on device
No apport report written because the error message indicates a disk full error
                                                                              Errors were encountered while processing:
 /var/cache/apt/archives/linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
alders@bluestem:~$

Revision history for this message
Gary Alderson (gary-f-alderson) said :
#5

BTW:

1. /etc/apt/preferences.d files are stock from the original install

2. /etc/apt/apt.conf.d is stock with the exception that I tried bumping the 20archives
APT::Archives::MaxSize "1000"; from 500 thinking that have been the culprit. No joy.

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-image-2.6.32-29-server Linux kernel image for version 2.6.32 on x86_64
 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-headers-server Linux kernel headers on Server Equipment.
 libavahi-core6 Avahi's embeddable mDNS/DNS-SD library
 libavahi-common-data Avahi common data files
 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-headers-2.6.32-29 Header files related to Linux kernel version 2.6.32

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-server
Package: linux-headers-server
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-2.6.32-29-server
Filename: pool/main/l/linux-meta/linux-headers-server_2.6.32.29.35_amd64.deb
Size: 4474
MD5sum: a345f0a382d10f5f94b0bd8e386cdc8d
SHA1: 29cd5b8de43d42af2a34a50d7a43c3252bda8253
SHA256: 3fb1a07333d6b261704ac57b660c82e5db01defd8fe32b232dfe397a8c7a9e6f
Description: Linux kernel headers on Server Equipment.
 This package will always depend on the latest kernel headers available
 for Server Equipment.
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y

Package: linux-headers-server
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-2.6.32-21-server
Filename: pool/main/l/linux-meta/linux-headers-server_2.6.32.21.22_amd64.deb
Size: 3926
MD5sum: b987c0606529dfa8055ccd46a3bcacdb
SHA1: fafc645367d2b18c2bf88854c83dfb09c6172e2a
SHA256: 68dc7e83c59fb0f535bda8277a8888631987a08e7e29f29806038606463245a5
Description: Linux kernel headers on Server Equipment.
 This package will always depend on the latest kernel headers available
 for Server Equipment.
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y

Any other thoughts or ideas ???

Revision history for this message
zvacet (ivicakolic) said :
#6

sudo dpkg --configure -a

Revision history for this message
Gary Alderson (gary-f-alderson) said :
#7

Well that certainly got the backlog of updates out of the way. Thanks.
The linux-headers-server is still toast.

sudo dpkg --configure -a
[sudo] password for alders:
Setting up tzdata-java (2011c-0ubuntu0.10.04) ...
Setting up linux-image-2.6.32-29-server (2.6.32-29.58) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-29-server
Running postinst hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-29-server
Found initrd image: /boot/initrd.img-2.6.32-29-server
Found linux image: /boot/vmlinuz-2.6.32-28-server
Found initrd image: /boot/initrd.img-2.6.32-28-server
Found linux image: /boot/vmlinuz-2.6.32-27-server
Found initrd image: /boot/initrd.img-2.6.32-27-server
Found linux image: /boot/vmlinuz-2.6.32-24-server
Found initrd image: /boot/initrd.img-2.6.32-24-server
Found memtest86+ image: /memtest86+.bin
done
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.32-29-server /boot/vmlinuz-2.6.32-29-server

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-server:
 linux-headers-server depends on linux-headers-2.6.32-29-server; however:
  Package linux-headers-2.6.32-29-server is not installed.
dpkg: error processing linux-headers-server (--configure):
 dependency problems - leaving unconfigured
Setting up libavahi-common-data (0.6.25-1ubuntu6.2) ...
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-2.6.32-29 (2.6.32-29.58) ...
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-headers-server
alders@bluestem:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

ok and the output of:

uname -a

Thanks

Revision history for this message
Gary Alderson (gary-f-alderson) said :
#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
Gary Alderson (gary-f-alderson) said :
#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
actionparsnip (andrew-woodhead666) said :
#11

Try:

sudo apt-get --purge remove linux-image-2.6.32-24-server linux-image-2.6.32-27-server; sudo apt-get --purge autoremove

Then retry

May just help (Clears off 2 old kernels and saves 250Mb space)

Revision history for this message
Gary Alderson (gary-f-alderson) said :
#12

Good thought ... but it really can't be a space issue, see below:

alders@bluestem:~$ sudo apt-get --purge remove linux-image-2.6.32-24-server linux-image-2.6.32-27-server
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-server: Depends: linux-headers-2.6.32-29-server but it is not going to be installed
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-headers-server: Depends: linux-headers-2.6.32-29-server but it is not installed
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/VG03-VG03LV01
                       94G 1.8G 87G 2% /
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/VG02-VG02LV01
                       92G 460M 87G 1% /var
/dev/mapper/VG01-VG01LV01
                       92G 188M 87G 1% /tmp
/dev/mapper/VG03-VG03LV03
                       92G 188M 87G 1% /var/www
/dev/mapper/VG03-VG03LV02
                       92G 195M 87G 1% /home
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-headers-2.6.32-28-server linux-headers-2.6.32-28
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-headers-2.6.32-29-server
The following NEW packages will be installed:
  linux-headers-2.6.32-29-server
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-2.6.32-29-server (from .../linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb (--unpack):
 error creating symbolic link `./usr/src/linux-headers-2.6.32-29-server/include/linux/lguest_launcher.h': No space left on device
No apport report written because the error message indicates a disk full error
                                                                              Errors were encountered while processing:
 /var/cache/apt/archives/linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb
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
actionparsnip (andrew-woodhead666) said :
#13

try:

wget http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb; sudo dpkg -i ./linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb; rm ./linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb

Should satisfy that

:D

Revision history for this message
Gary Alderson (gary-f-alderson) said :
#14

One would think so ... aaaahhhh:

alders@bluestem:~/tmp$ ls -l
total 776
-rw-rw---- 1 root alders 794620 2011-02-15 03:05 linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb
alders@bluestem:~/tmp$ sudo dpkg -i ./linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb
(Reading database ... 89817 files and directories currently installed.)
Unpacking linux-headers-2.6.32-29-server (from .../linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb) ...
dpkg: error processing ./linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb (--install):
 error creating symbolic link `./usr/src/linux-headers-2.6.32-29-server/include/linux/lguest_launcher.h': No space left on device
Errors were encountered while processing:
 ./linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb
alders@bluestem:~/tmp$ df -h .
Filesystem Size Used Avail Use% Mounted onalders@bluestem:~/tmp$ ls -l
total 776
-rw-rw---- 1 root alders 794620 2011-02-15 03:05 linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb
alders@bluestem:~/tmp$ sudo dpkg -i ./linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb
(Reading database ... 89817 files and directories currently installed.)
Unpacking linux-headers-2.6.32-29-server (from .../linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb) ...
dpkg: error processing ./linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb (--install):
 error creating symbolic link `./usr/src/linux-headers-2.6.32-29-server/include/linux/lguest_launcher.h': No space left on device
Errors were encountered while processing:
 ./linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb
alders@bluestem:~/tmp$ df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VG03-VG03LV02
                       92G 196M 87G 1% /home
alders@bluestem:~/tmp$

/dev/mapper/VG03-VG03LV02
                       92G 196M 87G 1% /home
alders@bluestem:~/tmp$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#15

ok what apps do you have installed that you can remove?

Revision history for this message
Gary Alderson (gary-f-alderson) said :
#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/src/linux-headers-2.6.32-29-server/include/linux/lguest_launcher.h. I suspect that the .deb archive is corrupt on the Ubuntu site.

Revision history for this message
Gary Alderson (gary-f-alderson) said :
#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/VG03-VG03LV01
                       94G 1.8G 87G 2% /
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/VG02-VG02LV01
                       92G 460M 87G 1% /var
/dev/mapper/VG01-VG01LV01
                       92G 189M 87G 1% /tmp
/dev/mapper/VG03-VG03LV03
                       92G 188M 87G 1% /var/www
/dev/mapper/VG03-VG03LV02
                       92G 196M 87G 1% /home

Revision history for this message
Gary Alderson (gary-f-alderson) said :
#18

Another observation:

looking at it via mc ... the entire ./usr/src/linux-headers-2.6.32-29-server/include directory got copied over just fine.
However when it trys to finish the copying at the ./usr/src/linux-headers-2.6.32-29-server level, all further copys of the symlinks at that level fail with the space error.

For example:

root@bluestem:/root/tmp/CONTENTS/usr/src/linux-headers-2.6.32-29-server/include# touch xxx
touch: cannot touch `xxx': No space left on device

root@bluestem:/root/tmp/CONTENTS/usr/src/linux-headers-2.6.32-29-server/include# df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VG03-VG03LV01
                       94G 1.8G 87G 2% /
root@bluestem:/root/tmp/CONTENTS/usr/src/linux-headers-2.6.32-29-server/include# ls -ld .
drwxr-xr-x 5 root root 4096 2011-02-11 15:54 .

which makes totally no sense.

Revision history for this message
Gary Alderson (gary-f-alderson) said :
#19

Ok something is now really weird ...

alders@bluestem:~/tmp$ pwd
/home/alders/tmp
alders@bluestem:~/tmp$ touch xxx
alders@bluestem:~/tmp$ ls
linux-headers-2.6.32-29-server_2.6.32-29.58_amd64.deb xxx
alders@bluestem:~/tmp$ rm xxx
alders@bluestem:~/tmp$ sudo /bin/sh
# 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/VG03-VG03LV01 / ext4 rw,errors=remount-ro 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
none /sys sysfs rw,noexec,nosuid,nodev 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
none /dev devtmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
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,nosuid,nodev 0 0
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/VG02-VG02LV01 /var ext4 rw 0 0
/dev/mapper/VG01-VG01LV01 /tmp ext4 rw 0 0
/dev/mapper/VG03-VG03LV03 /var/www ext4 rw 0 0
/dev/mapper/VG03-VG03LV02 /home ext4 rw 0 0

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
Gary Alderson (gary-f-alderson) said :
#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/usr/src/linux-headers-2.6.32-29-server/include/linux using mkdir's to avoid the corrupted directory in the archive. All worked just fine and there is no "No space left on device" error anymore following this method.

So essentially I have done the dpkg --unpack task into a tmp directory.

Now when I try dpkg --configure linux-headers-2.6.32-29-server I get the following:

root@bluestem:~/tmp# dpkg --configure linux-headers-2.6.32-29-server
dpkg: error processing linux-headers-2.6.32-29-server (--configure):
 no package named `linux-headers-2.6.32-29-server' is installed, cannot configure
Errors were encountered while processing:
 linux-headers-2.6.32-29-server

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
Gary Alderson (gary-f-alderson) said :
#21

Ok another interesting note:

I tried to manually install the linux-headers-2.6.32-29-server into /usr/src and it died again with the "No space.." message when copying the include/linux directory. It dies at exactly 115 files. So I tried deleting one file. it then allowed me to add 1 file and failed on the second add. Again this is NOT a disk space issue.

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
Gary Alderson (gary-f-alderson) said :
#22

Hmmm . in reading elsewhere it would appear that I am out of inodes on the root filesystem.

root@bluestem:/usr/src/linux-headers-2.6.32-29-server/include# df -i .
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VG03-VG03LV01
                       95488 95372 116 100% /

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
Gary Alderson (gary-f-alderson) said :
#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-headers-2.6.32-28-server linux-headers-2.6.32-28
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-headers-2.6.32-30 linux-headers-2.6.32-30-server linux-headers-server
The following NEW packages will be installed:
  linux-headers-2.6.32-30 linux-headers-2.6.32-30-server
The following packages will be upgraded:
  linux-headers-server
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://ca.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-headers-2.6.32-30 2.6.32-30.59 [9,911kB]
Get:2 http://ca.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-headers-2.6.32-30-server 2.6.32-30.59 [788kB]
Get:3 http://ca.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-headers-server 2.6.32.30.36 [4,506B]
Fetched 10.7MB in 1min 1s (173kB/s)
Selecting previously deselected package linux-headers-2.6.32-30.
(Reading database ... 89817 files and directories currently installed.)
Unpacking linux-headers-2.6.32-30 (from .../linux-headers-2.6.32-30_2.6.32-30.59_all.deb) ...
Selecting previously deselected package linux-headers-2.6.32-30-server.
Unpacking linux-headers-2.6.32-30-server (from .../linux-headers-2.6.32-30-server_2.6.32-30.59_amd64.deb) ...
Preparing to replace linux-headers-server 2.6.32.29.35 (using .../linux-headers-server_2.6.32.30.36_amd64.deb) ...
Unpacking replacement linux-headers-server ...
Setting up linux-headers-2.6.32-30 (2.6.32-30.59) ...
Setting up linux-headers-2.6.32-30-server (2.6.32-30.59) ...

Setting up linux-headers-server (2.6.32.30.36) ...

I will cleanup 32-29.58 now ... but I can move on !!!