home | list info | list archive | date index | thread index

[OCLUG-Tech] Debian package database corruption

Looks like my "fix" was only successful in getting
apt-get update

The problem seems to be in trying to update linux-image, which depends on linux-restricted-modules, which ... and apparently something is wrong somewhere

root@nashpc-ub:/home/john# apt-get install imagemagick
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-image-386: Depends: linux-image-2.6.15-28-386 but it is not going to beinstalled linux-restricted-modules-386: Depends: linux-restricted-modules-2.6.15-28-386but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a s olution).
root@nashpc-ub:/home/john#


And

root@nashpc-ub:/home/john# apt-get install -f
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  linux-image-2.6.15-28-386 linux-restricted-modules-2.6.15-28-386
Suggested packages:
  linux-doc-2.6.15 linux-source-2.6.15 nvidia-glx nvidia-glx-legacy
  avm-fritz-firmware-2.6.15-28
Recommended packages:
  lilo
The following NEW packages will be installed:
  linux-image-2.6.15-28-386 linux-restricted-modules-2.6.15-28-386
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
2 not fully installed or removed.
Need to get 0B/29.8MB of archives.
After unpacking, 84.4MB of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 98936 files and directories currently installed.)
Unpacking linux-image-2.6.15-28-386 (from .../linux-image-2.6.15-28-386_2.6.15- 28.51_i386.deb) ... dpkg: error processing /var/cache/apt/archives/linux-image-2.6.15-28-386_2.6.15 -28.51_i386.deb (--unpack):
 corrupted filesystem tarfile - corrupted package archive
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.list file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.15-27-386
Found kernel: /boot/vmlinuz-2.6.15-26-386
Found kernel: /boot/vmlinuz-2.6.15-25-386
Found kernel: /boot/vmlinuz-2.6.15-23-386
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

Cannot delete /boot/initrd.img-2.6.15-28-386, doesn't exist.
Unpacking linux-restricted-modules-2.6.15-28-386 (from .../linux-restricted-mod ules-2.6.15-28-386_2.6.15.12-28.1_i386.deb) ... dpkg: error processing /var/cache/apt/archives/linux-restricted-modules-2.6.15- 28-386_2.6.15.12-28.1_i386.deb (--unpack):
 corrupted filesystem tarfile - corrupted package archive
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-2.6.15-28-386_2.6.15-28.51_i386.deb

/var/cache/apt/archives/linux-restricted-modules-2.6.15-28-386_2.6.15.12-28.1_ i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@nashpc-ub:/home/john#


Looks like I need to get rid of a file somewhere, but which??

I ran apt-get clean and apt-get autoclean and tried again.

root@nashpc-ub:/home/john# apt-get autoclean
Reading package lists... Done
Building dependency tree... Done
root@nashpc-ub:/home/john# apt-get install -f
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  linux-image-2.6.15-28-386 linux-restricted-modules-2.6.15-28-386
Suggested packages:
linux-doc-2.6.15 linux-source-2.6.15 nvidia-glx nvidia-glx-legacy avm-fritz-firmware-2.6.15-28
Recommended packages:
  lilo
The following NEW packages will be installed:
  linux-image-2.6.15-28-386 linux-restricted-modules-2.6.15-28-386
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
2 not fully installed or removed.
Need to get 29.8MB of archives.
After unpacking, 84.4MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://security.ubuntu.com dapper-security/main linux-image-2.6.15-28-386 2.6.15-28.51 [21.7MB] Get:2 http://security.ubuntu.com dapper-security/restricted linux-restricted-modules-2.6.15-28-386 2.6.15.12-28.1 [8139kB]
Fetched 29.8MB in 22m5s (22.5kB/s)
(Reading database ... 98936 files and directories currently installed.)
Unpacking linux-image-2.6.15-28-386 (from .../linux-image-2.6.15-28-386_2.6.15-28.51_i386.deb) ... Unpacking linux-restricted-modules-2.6.15-28-386 (from .../linux-restricted-modules-2.6.15-28-386_2.6.15.12-28.1_i386.deb) ... dpkg: error processing /var/cache/apt/archives/linux-restricted-modules-2.6.15-28-386_2.6.15.12-28.1_i386.deb (--unpack):
 corrupted filesystem tarfile - corrupted package archive
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:

/var/cache/apt/archives/linux-restricted-modules-2.6.15-28-386_2.6.15.12-28.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@nashpc-ub:/home/john#


Does this suggest that the downloaded material is corrupted, or is it my end (bad disk, bad file, ??)

JN