LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 07-04-2009, 02:18 AM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Rep: Reputation: 115Reputation: 115
transparently corrupt apt/dpkg db


For reasons I cannot determine, when I run aptitude now, it wants to do things with various packages, including upgrading them, putting them on version hold, or uninstalling them.

What let to this is trying to install proftpd. I first tried "proftpd-basic" because I didn't want everything. That installed OK, but didn't run (it gave a message about a missing module). So I tried "proftpd". But that installed all the modules. So I uninstalled that and tried "proftpd-basic" again. The same error appeared. So I went to just uninstall "proftpd-basic" and just leave it that way. This time, red messages showed up about package suggestions and dependencies. It was wanting to uninstall my existing kernel and install a xen kernel. What would cause this? I quit and ran aptitude again. Now it wants to upgrade a lot of stuff (about 35 packages). I quit and run again. Now it wants to uninstall about 105 packages.

So I think some database go corrupted.

I run backups daily. So my aim now is to just restore the database from backup and start over. What files need to be fetched from the backup and replaced? Do any files need to be removed that might have been added (aside from the latent "proftpd-basic" package I did not get to uninstall).

If the restore-from-backup goes OK, my next plan is to install "proftpd-basic" again, then just uninstall it, and give up on proftpd.
 
Old 07-04-2009, 08:12 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,642

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
/var/lib/dpkg

If you're not already, you should make the output of
Code:
dpkg --get-selections
part of your backup routine (dump it to a file that gets backed up or something). Then to restore,
Code:
dpkg --set-selections < filename
aptitude install
Can you post your sources.list and the output of
Code:
aptitude -s -f install
? You don't have to go through with it, but your sources might be a problem and the log of what aptitude wants to do will be interesting.

Last edited by AlucardZero; 07-04-2009 at 08:15 AM.
 
Old 07-04-2009, 04:16 PM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Original Poster
Rep: Reputation: 115Reputation: 115
I'm going to wait until tonight's normal backup runs. Then I'll have the before and after. That's when I'll restore /var/lib/dpkg to it's previous state.

Here is the contents of /etc/apt/sources.list:
Code:
# deb http://ftp.us.debian.org/debian lenny main

deb http://ftp.us.debian.org/debian lenny main
deb-src http://ftp.us.debian.org/debian lenny main

deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main

deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
here is output from command aptitude -s -f install:
Code:
Script started on Sat Jul  4 16:53:54 2009
16:53:54 [32401] EXECUTING: 'aptitude' '-s' '-f' 'install'
Reading package lists... 0%
Reading package lists... 100%
Reading package lists... Done

Building dependency tree... 0%
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree       

Reading state information... 0%
Reading state information... 0%
Reading state information... Done

Reading extended state information... 0%
Reading extended state information      

Initializing package states... 0% 
Initializing package states... Done

Reading task descriptions... 0%    
Reading task descriptions... 0%
Reading task descriptions... Done

The following packages are BROKEN:
  atl2-modules-2.6.26-2-486 atl2-modules-2.6.26-2-686-bigmem atl2-modules-2.6.26-2-amd64 atl2-modules-2.6.26-2-openvz-686 
  atl2-modules-2.6.26-2-vserver-686 atl2-modules-2.6.26-2-vserver-686-bigmem aufs-modules-2.6.26-2-486 aufs-modules-2.6.26-2-686-bigmem 
  aufs-modules-2.6.26-2-amd64 aufs-modules-2.6.26-2-openvz-686 aufs-modules-2.6.26-2-vserver-686 aufs-modules-2.6.26-2-vserver-686-bigmem 
  aufs-modules-2.6.26-2-xen-686 drbd8-modules-2.6.26-2-486 drbd8-modules-2.6.26-2-686-bigmem drbd8-modules-2.6.26-2-amd64 
  drbd8-modules-2.6.26-2-openvz-686 drbd8-modules-2.6.26-2-vserver-686 drbd8-modules-2.6.26-2-vserver-686-bigmem 
  drbd8-modules-2.6.26-2-xen-686 et131x-modules-2.6.26-2-486 et131x-modules-2.6.26-2-686-bigmem et131x-modules-2.6.26-2-amd64 
  et131x-modules-2.6.26-2-openvz-686 gspca-modules-2.6.26-2-486 gspca-modules-2.6.26-2-686-bigmem gspca-modules-2.6.26-2-amd64 
  gspca-modules-2.6.26-2-openvz-686 gspca-modules-2.6.26-2-vserver-686 gspca-modules-2.6.26-2-vserver-686-bigmem 
  iscsitarget-modules-2.6.26-2-486 iscsitarget-modules-2.6.26-2-686-bigmem iscsitarget-modules-2.6.26-2-amd64 
  iscsitarget-modules-2.6.26-2-openvz-686 iscsitarget-modules-2.6.26-2-vserver-686 iscsitarget-modules-2.6.26-2-vserver-686-bigmem 
  iscsitarget-modules-2.6.26-2-xen-686 libclamav6 linux-headers-2.6.26-2-486 linux-headers-2.6.26-2-686 linux-headers-2.6.26-2-686-bigmem 
  linux-headers-2.6.26-2-all linux-image-2.6.26-2-xen-686 loop-aes-modules-2.6.26-2-486 loop-aes-modules-2.6.26-2-686-bigmem 
  loop-aes-modules-2.6.26-2-amd64 loop-aes-modules-2.6.26-2-openvz-686 loop-aes-modules-2.6.26-2-vserver-686 
  loop-aes-modules-2.6.26-2-vserver-686-bigmem loop-aes-modules-2.6.26-2-xen-686 lzma-modules-2.6.26-2-486 
  lzma-modules-2.6.26-2-686-bigmem lzma-modules-2.6.26-2-amd64 lzma-modules-2.6.26-2-openvz-686 lzma-modules-2.6.26-2-vserver-686 
  lzma-modules-2.6.26-2-vserver-686-bigmem lzma-modules-2.6.26-2-xen-686 nilfs2-modules-2.6.26-2-486 nilfs2-modules-2.6.26-2-686-bigmem 
  nilfs2-modules-2.6.26-2-amd64 nilfs2-modules-2.6.26-2-openvz-686 nilfs2-modules-2.6.26-2-vserver-686 
  nilfs2-modules-2.6.26-2-vserver-686-bigmem nilfs2-modules-2.6.26-2-xen-686 proftpd redhat-cluster-modules-2.6.26-2-486 
  redhat-cluster-modules-2.6.26-2-686-bigmem redhat-cluster-modules-2.6.26-2-amd64 redhat-cluster-modules-2.6.26-2-openvz-686 
  redhat-cluster-modules-2.6.26-2-vserver-686 redhat-cluster-modules-2.6.26-2-vserver-686-bigmem redhat-cluster-modules-2.6.26-2-xen-686 
  speakup-modules-2.6.26-2-486 speakup-modules-2.6.26-2-686-bigmem speakup-modules-2.6.26-2-amd64 speakup-modules-2.6.26-2-openvz-686 
  speakup-modules-2.6.26-2-vserver-686 speakup-modules-2.6.26-2-vserver-686-bigmem speakup-modules-2.6.26-2-xen-686 
  squashfs-modules-2.6.26-2-486 squashfs-modules-2.6.26-2-686-bigmem squashfs-modules-2.6.26-2-amd64 squashfs-modules-2.6.26-2-openvz-686 
  squashfs-modules-2.6.26-2-vserver-686 squashfs-modules-2.6.26-2-vserver-686-bigmem squashfs-modules-2.6.26-2-xen-686 
  tp-smapi-modules-2.6.26-2-486 tp-smapi-modules-2.6.26-2-686-bigmem tp-smapi-modules-2.6.26-2-amd64 tp-smapi-modules-2.6.26-2-openvz-686 
  tp-smapi-modules-2.6.26-2-vserver-686 tp-smapi-modules-2.6.26-2-vserver-686-bigmem tp-smapi-modules-2.6.26-2-xen-686 
  virtualbox-ose-guest-modules-2.6.26-2-486 virtualbox-ose-guest-modules-2.6.26-2-686-bigmem 
  virtualbox-ose-guest-modules-2.6.26-2-openvz-686 virtualbox-ose-guest-modules-2.6.26-2-vserver-686 
  virtualbox-ose-guest-modules-2.6.26-2-vserver-686-bigmem virtualbox-ose-modules-2.6.26-2-486 virtualbox-ose-modules-2.6.26-2-686-bigmem 
  virtualbox-ose-modules-2.6.26-2-amd64 virtualbox-ose-modules-2.6.26-2-openvz-686 virtualbox-ose-modules-2.6.26-2-vserver-686 
  virtualbox-ose-modules-2.6.26-2-vserver-686-bigmem xen-linux-system-2.6.26-2-xen-686 
The following NEW packages will be installed:
  atl2-modules-2.6.26-2-686 aufs-modules-2.6.26-2-686 drbd8-modules-2.6.26-2-686 et131x-modules-2.6.26-2-686 gspca-modules-2.6.26-2-686 
  iscsitarget-modules-2.6.26-2-686 linux-support-2.6.26-2 loop-aes-modules-2.6.26-2-686 lzma-modules-2.6.26-2-686 nagios2-doc 
  nilfs2-modules-2.6.26-2-686 redhat-cluster-modules-2.6.26-2-686 speakup-modules-2.6.26-2-686 squashfs-modules-2.6.26-2-686 
  tp-smapi-modules-2.6.26-2-686 virtualbox-ose-guest-modules-2.6.26-2-686 virtualbox-ose-modules-2.6.26-2-686 
The following packages will be REMOVED:
  proftpd-doc 
The following packages are RECOMMENDED but will NOT be installed:
  libc6-xen 
0 packages upgraded, 122 newly installed, 1 to remove and 0 not upgraded.
Need to get 11.7MB of archives. After unpacking 58.8MB will be used.
The following packages have unmet dependencies:
  redhat-cluster-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  drbd8-modules-2.6.26-2-vserver-686-bigmem: Depends: linux-modules-2.6.26-2-vserver-686-bigmem which is a virtual package.
  drbd8-modules-2.6.26-2-vserver-686: Depends: linux-modules-2.6.26-2-vserver-686 which is a virtual package.
  aufs-modules-2.6.26-2-xen-686: Depends: linux-modules-2.6.26-2-xen-686 but it is not installable
  redhat-cluster-modules-2.6.26-2-xen-686: Depends: linux-modules-2.6.26-2-xen-686 but it is not installable
  xen-linux-system-2.6.26-2-xen-686: Depends: xen-hypervisor-3.2-1-i386 but it is not installable or
                                              xen-hypervisor-3.2-1-amd64 which is a virtual package.
  gspca-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  tp-smapi-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  tp-smapi-modules-2.6.26-2-amd64: Depends: linux-modules-2.6.26-2-amd64 which is a virtual package.
  nilfs2-modules-2.6.26-2-xen-686: Depends: linux-modules-2.6.26-2-xen-686 but it is not installable
  squashfs-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  squashfs-modules-2.6.26-2-vserver-686: Depends: linux-modules-2.6.26-2-vserver-686 which is a virtual package.
  atl2-modules-2.6.26-2-vserver-686: Depends: linux-modules-2.6.26-2-vserver-686 which is a virtual package.
  linux-headers-2.6.26-2-686-bigmem: Depends: linux-headers-2.6.26-2-common (= 2.6.26-17) but it is not installable
                                     Depends: linux-kbuild-2.6.26 but it is not installable
                                     Depends: gcc-4.1 but it is not installable
  tp-smapi-modules-2.6.26-2-vserver-686-bigmem: Depends: linux-modules-2.6.26-2-vserver-686-bigmem which is a virtual package.
  nilfs2-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  nilfs2-modules-2.6.26-2-vserver-686-bigmem: Depends: linux-modules-2.6.26-2-vserver-686-bigmem which is a virtual package.
  redhat-cluster-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  atl2-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  et131x-modules-2.6.26-2-amd64: Depends: linux-modules-2.6.26-2-amd64 which is a virtual package.
  aufs-modules-2.6.26-2-vserver-686: Depends: linux-modules-2.6.26-2-vserver-686 which is a virtual package.
  redhat-cluster-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  speakup-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  drbd8-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  tp-smapi-modules-2.6.26-2-vserver-686: Depends: linux-modules-2.6.26-2-vserver-686 which is a virtual package.
  nilfs2-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  speakup-modules-2.6.26-2-vserver-686: Depends: linux-modules-2.6.26-2-vserver-686 which is a virtual package.
  squashfs-modules-2.6.26-2-amd64: Depends: linux-modules-2.6.26-2-amd64 which is a virtual package.
  lzma-modules-2.6.26-2-xen-686: Depends: linux-modules-2.6.26-2-xen-686 but it is not installable
  tp-smapi-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  libclamav6: Depends: libtommath0 but it is not installable
  atl2-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  virtualbox-ose-modules-2.6.26-2-vserver-686-bigmem: Depends: linux-modules-2.6.26-2-vserver-686-bigmem which is a virtual package.
  drbd8-modules-2.6.26-2-amd64: Depends: linux-modules-2.6.26-2-amd64 which is a virtual package.
  aufs-modules-2.6.26-2-amd64: Depends: linux-modules-2.6.26-2-amd64 which is a virtual package.
  squashfs-modules-2.6.26-2-vserver-686-bigmem: Depends: linux-modules-2.6.26-2-vserver-686-bigmem which is a virtual package.
  speakup-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  iscsitarget-modules-2.6.26-2-vserver-686-bigmem: Depends: linux-modules-2.6.26-2-vserver-686-bigmem which is a virtual package.
  drbd8-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  linux-headers-2.6.26-2-all: Depends: linux-headers-2.6.26-2-all-i386 (= 2.6.26-17) but it is not installable
  et131x-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  aufs-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  virtualbox-ose-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  redhat-cluster-modules-2.6.26-2-vserver-686: Depends: linux-modules-2.6.26-2-vserver-686 which is a virtual package.
  lzma-modules-2.6.26-2-amd64: Depends: linux-modules-2.6.26-2-amd64 which is a virtual package.
  loop-aes-modules-2.6.26-2-vserver-686-bigmem: Depends: linux-modules-2.6.26-2-vserver-686-bigmem which is a virtual package.
  squashfs-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  lzma-modules-2.6.26-2-vserver-686: Depends: linux-modules-2.6.26-2-vserver-686 which is a virtual package.
  virtualbox-ose-modules-2.6.26-2-vserver-686: Depends: linux-modules-2.6.26-2-vserver-686 which is a virtual package.
  virtualbox-ose-guest-modules-2.6.26-2-vserver-686-bigmem: Depends: linux-modules-2.6.26-2-vserver-686-bigmem which is a virtual package.
  tp-smapi-modules-2.6.26-2-xen-686: Depends: linux-modules-2.6.26-2-xen-686 but it is not installable
  atl2-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  iscsitarget-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  redhat-cluster-modules-2.6.26-2-amd64: Depends: linux-modules-2.6.26-2-amd64 which is a virtual package.
  loop-aes-modules-2.6.26-2-xen-686: Depends: linux-modules-2.6.26-2-xen-686 but it is not installable
  aufs-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  iscsitarget-modules-2.6.26-2-amd64: Depends: linux-modules-2.6.26-2-amd64 which is a virtual package.
  virtualbox-ose-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  speakup-modules-2.6.26-2-amd64: Depends: linux-modules-2.6.26-2-amd64 which is a virtual package.
  iscsitarget-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  speakup-modules-2.6.26-2-xen-686: Depends: linux-modules-2.6.26-2-xen-686 but it is not installable
  virtualbox-ose-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  loop-aes-modules-2.6.26-2-vserver-686: Depends: linux-modules-2.6.26-2-vserver-686 which is a virtual package.
  iscsitarget-modules-2.6.26-2-xen-686: Depends: linux-modules-2.6.26-2-xen-686 but it is not installable
  virtualbox-ose-guest-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  lzma-modules-2.6.26-2-vserver-686-bigmem: Depends: linux-modules-2.6.26-2-vserver-686-bigmem which is a virtual package.
  et131x-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  lzma-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  virtualbox-ose-guest-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  loop-aes-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  aufs-modules-2.6.26-2-vserver-686-bigmem: Depends: linux-modules-2.6.26-2-vserver-686-bigmem which is a virtual package.
  linux-headers-2.6.26-2-486: Depends: linux-headers-2.6.26-2-common (= 2.6.26-17) but it is not installable
                              Depends: linux-kbuild-2.6.26 but it is not installable
                              Depends: gcc-4.1 but it is not installable
  iscsitarget-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  aufs-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  virtualbox-ose-guest-modules-2.6.26-2-vserver-686: Depends: linux-modules-2.6.26-2-vserver-686 which is a virtual package.
  linux-headers-2.6.26-2-686: Depends: linux-headers-2.6.26-2-common (= 2.6.26-17) but it is not installable
                              Depends: linux-kbuild-2.6.26 but it is not installable
                              Depends: gcc-4.1 but it is not installable
  loop-aes-modules-2.6.26-2-amd64: Depends: linux-modules-2.6.26-2-amd64 which is a virtual package.
  proftpd: Depends: proftpd-basic but it is not installable
           Depends: proftpd-mod-mysql but it is not installable
           Depends: proftpd-mod-pgsql but it is not installable
           Depends: proftpd-mod-ldap but it is not installable
  lzma-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  atl2-modules-2.6.26-2-vserver-686-bigmem: Depends: linux-modules-2.6.26-2-vserver-686-bigmem which is a virtual package.
  loop-aes-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  nilfs2-modules-2.6.26-2-amd64: Depends: linux-modules-2.6.26-2-amd64 which is a virtual package.
  virtualbox-ose-modules-2.6.26-2-amd64: Depends: linux-modules-2.6.26-2-amd64 which is a virtual package.
  squashfs-modules-2.6.26-2-xen-686: Depends: linux-modules-2.6.26-2-xen-686 but it is not installable
  drbd8-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  lzma-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  linux-image-2.6.26-2-xen-686: Depends: linux-modules-2.6.26-2-xen-686 (= 2.6.26-17) but it is not installable
  virtualbox-ose-guest-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  gspca-modules-2.6.26-2-amd64: Depends: linux-modules-2.6.26-2-amd64 which is a virtual package.
  iscsitarget-modules-2.6.26-2-vserver-686: Depends: linux-modules-2.6.26-2-vserver-686 which is a virtual package.
  gspca-modules-2.6.26-2-vserver-686: Depends: linux-modules-2.6.26-2-vserver-686 which is a virtual package.
  loop-aes-modules-2.6.26-2-openvz-686: Depends: linux-modules-2.6.26-2-openvz-686 which is a virtual package.
  gspca-modules-2.6.26-2-vserver-686-bigmem: Depends: linux-modules-2.6.26-2-vserver-686-bigmem which is a virtual package.
  gspca-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  speakup-modules-2.6.26-2-vserver-686-bigmem: Depends: linux-modules-2.6.26-2-vserver-686-bigmem which is a virtual package.
  et131x-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  tp-smapi-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  speakup-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  redhat-cluster-modules-2.6.26-2-vserver-686-bigmem: Depends: linux-modules-2.6.26-2-vserver-686-bigmem which is a virtual package.
  squashfs-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  drbd8-modules-2.6.26-2-xen-686: Depends: linux-modules-2.6.26-2-xen-686 but it is not installable
  gspca-modules-2.6.26-2-486: Depends: linux-modules-2.6.26-2-486 which is a virtual package.
  nilfs2-modules-2.6.26-2-686-bigmem: Depends: linux-modules-2.6.26-2-686-bigmem which is a virtual package.
  atl2-modules-2.6.26-2-amd64: Depends: linux-modules-2.6.26-2-amd64 which is a virtual package.
  nilfs2-modules-2.6.26-2-vserver-686: Depends: linux-modules-2.6.26-2-vserver-686 which is a virtual package.
The following actions will resolve these dependencies:

Install the following packages:
libc6-xen [2.7-18 (stable)]
linux-image-2.6.26-2-486 [2.6.26-17 (stable)]
linux-image-2.6.26-2-686-bigmem [2.6.26-17 (stable)]
linux-image-2.6.26-2-amd64 [2.6.26-17 (stable)]
linux-image-2.6.26-2-openvz-686 [2.6.26-17 (stable)]
linux-image-2.6.26-2-vserver-686 [2.6.26-17 (stable)]
linux-image-2.6.26-2-vserver-686-bigmem [2.6.26-17 (stable)]
linux-modules-2.6.26-2-xen-686 [2.6.26-17 (stable)]
vzctl [3.0.22-14 (stable)]
vzquota [3.0.11-1 (stable)]

Keep the following packages at their current version:
libclamav6 [Not Installed]
linux-headers-2.6.26-2-486 [Not Installed]
linux-headers-2.6.26-2-686 [Not Installed]
linux-headers-2.6.26-2-686-bigmem [Not Installed]
linux-headers-2.6.26-2-all [Not Installed]
proftpd [Not Installed]
xen-linux-system-2.6.26-2-xen-686 [Not Installed]

Score is 443

Accept this solution? [Y/n/q/?] q
Abandoning all efforts to resolve these dependencies.
Abort.
[[ 0m5s real 5.063 - user 1.036 - sys 0.024 - 20.93% ]]
16:53:59 [32401] FINISHED - status = 0

Script done on Sat Jul  4 16:54:00 2009
 
Old 07-04-2009, 04:32 PM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Original Poster
Rep: Reputation: 115Reputation: 115
I have a cron script that runs daily to do "dpkg -l" and archive the outputs each time there is a difference relative to the previously archived output. Here is the diff between the last archived and manually running that script today:
Code:
--- debian-packages-log/debian-packages-2009-06-29.txt  2009-06-29 00:01:01.000000000 -0400
+++ debian-packages-log/debian-packages-2009-07-04.txt  2009-07-04 17:19:22.000000000 -0400
@@ -418,6 +418,8 @@
 ii  postfix                           2.5.5-1.1                  High-performance mail transport agent
 ii  procmail                          3.22-16                    Versatile e-mail processor
 ii  procps                            1:3.2.7-11                 /proc file system utilities
+rc  proftpd-basic                     1.3.1-17lenny2             versatile, virtual-hosting FTP daemon - bina
+ii  proftpd-doc                       1.3.1-17lenny2             Versatile, virtual-hosting FTP daemon - docu
 ii  psfontmgr                         0.11.10-0.2                PostScript font manager -- part of Defoma, D
 ii  psmisc                            22.6-1                     Utilities that use the proc filesystem
 ii  python                            2.5.2-3                    An interactive high-level object-oriented la
I can't see why this would pull in all that other stuff. And in fact it didn't the first time. Something else has to be doing it.
 
Old 07-04-2009, 04:51 PM   #5
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Original Poster
Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by AlucardZero View Post
/var/lib/dpkg
I gathered md5sum output of /var/lib/dpkg from the backup, and from the current system (next backup to run tonight which will leave a daily delta on the backup server so I will have both). Below is the diff between them. Does this look like the files that are expected to change?
Code:
@@ -55,8 +55,8 @@
 7f77760a9cd025b7c953c5216249330b  alternatives/www-browser
 687f84603acc93f64ed0c471534116cf  alternatives/x-terminal-emulator
 e9e883b4a951fbd12b5cdc963ce32c51  alternatives/yacc
-4a4dda21c56ba6e36f032d8abc99ef7a  available
-4a4dda21c56ba6e36f032d8abc99ef7a  available-old
+37b751befcf4ad92ba1fa09a9c3168f8  available
+37b751befcf4ad92ba1fa09a9c3168f8  available-old
 359fdd1165dfe95d043c8de520f6a9f4  cmethopt
 c60b24d7fe23580313457bb6c5593d23  diversions
 343e59856bc55a5002fd8106a9069deb  diversions-old
@@ -1918,6 +1918,10 @@
 6188f60f003d9412a9cce2d98bbc9bbf  info/procps.preinst
 43f891b36150791e064431c2d2afaa21  info/procps.prerm
 08a64fc5e3a76e67cb9ffd5add019e9d  info/procps.shlibs
+9f612eba5b324bdad88bc13b7f8eb323  info/proftpd-basic.list
+5952c291a987ee9cfa3440b58bd15bfb  info/proftpd-basic.postrm
+70cb99e46cfc6ed5939c992534cb707a  info/proftpd-doc.list
+2a6fe80688ce42a355a3e718590c3289  info/proftpd-doc.md5sums
 4dd7ecbf79abb9001a58855a55f4654f  info/psfontmgr.list
 8e6dfdb808b6b4965b0c1afb19dc033e  info/psfontmgr.md5sums
 7acea2637b9c016a89d29b8dedc08452  info/psfontmgr.postinst
@@ -2268,8 +2272,8 @@
 d41d8cd98f00b204e9800998ecf8427e  lock
 32a88587884ba7839a479c0520263b60  statoverride
 504eb17c983c5520fb36b6c7de91a9da  statoverride-old
-5c4180e3faa8195d4d57c7483aff83ec  status
-faff48ca6cdb87d2125c4434081627b9  status-old
+36ee4a4c06a114d83c9f6070c363b3c1  status
+fe2d134d40dff7bf3d9cf126a4e94952  status-old
 be319df74a5ab10cc53ed60195462590  triggers/File
 d41d8cd98f00b204e9800998ecf8427e  triggers/Lock
 d41d8cd98f00b204e9800998ecf8427e  triggers/Unincorp
I am aware that by restoring /var/lib/dpkg it will not be aware of "proftpd-basic" and "proftpd-doc" as being installed. What I hope will make things consistent is to then do an install of those packages with the hope it just writes over their existing files, and then uninstall them.

Or should I just "rm" the files shown in "/var/lib/dpkg/info/proftpd-basic.list" and "/var/lib/dpkg/info/proftpd-doc.list" ?
 
Old 07-04-2009, 05:11 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,642

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
Well, yup, something is very wrong, but your sources look fine. Did you apt-get update (or aptitude update)? Post the contents of /etc/apt/preferences if it exists.

What kernel are you running now? What kernel packages are installed? It wants to pull in many different kernels and that is wrong.

Can you try removing all proftp packages?
 
Old 07-04-2009, 05:29 PM   #7
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Original Poster
Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by AlucardZero View Post
Well, yup, something is very wrong, but your sources look fine. Did you apt-get update (or aptitude update)? Post the contents of /etc/apt/preferences if it exists.
I typed "u" in "aptitude" interactively when I first tried to install proftpd packages.

The file "/etc/apt/preferences" does not exist.

Quote:
Originally Posted by AlucardZero View Post
What kernel are you running now? What kernel packages are installed? It wants to pull in many different kernels and that is wrong.
Code:
ampere/root/c0 /root 330# uname -a
Linux ampere.ipal.net 2.6.26-2-686 #1 SMP Sun Jun 21 04:57:38 UTC 2009 i686 GNU/Linux
ampere/root/c0 /root 331# dpkg -l | egrep 'kernel|linux'
ii  doc-linux-text                    2008.08-1                  Linux HOWTOs and FAQs in ASCII format
ii  libdrm2                           2.3.1-2                    Userspace interface to kernel DRM services -
ii  libselinux1                       2.0.65-5                   SELinux shared libraries
ii  linux-image-2.6-686               2.6.26+17+lenny1           Linux 2.6 image on PPro/Celeron/PII/PIII/P4
ii  linux-image-2.6.26-1-686          2.6.26-13lenny2            Linux 2.6.26 image on PPro/Celeron/PII/PIII/
ii  linux-image-2.6.26-2-686          2.6.26-17                  Linux 2.6.26 image on PPro/Celeron/PII/PIII/
ii  linux-libc-dev                    2.6.26-17                  Linux support headers for userspace developm
ii  module-init-tools                 3.4-1                      tools for managing Linux kernel modules
ii  python-selinux                    2.0.65-5                   Python bindings to SELinux shared libraries
ii  selinux-policy-default            2:0.0.20080702-6           Strict and Targeted variants of the SELinux 
ii  util-linux                        2.13.1.1-1                 Miscellaneous system utilities
ampere/root/c0 /root 332#
Quote:
Originally Posted by AlucardZero View Post
Can you try removing all proftp packages?
That's what I was trying to do but I didn't want to take any chances that aptitude would mess with the other packages, especially the kernel.

Last edited by Skaperen; 07-04-2009 at 05:31 PM.
 
Old 07-06-2009, 12:40 AM   #8
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Original Poster
Rep: Reputation: 115Reputation: 115
I replaced all the files in /var/lib/dpkg back to their original state before the package mess happened. When I do "aptitude -s -f install" it still does the same thing. It still tries to install packages I should not have.

Do I need to rebuild the dpkg database from scratch?
 
Old 07-07-2009, 01:08 AM   #9
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Original Poster
Rep: Reputation: 115Reputation: 115
Solved

This was solved, apparently. The command was "aptitude keep-all". It appears to abandon all previous delete, upgrade, or install requests.
 
  


Reply

Tags
aptitude, dpkg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 17 12-01-2011 09:24 AM
dpkg/apt cody0416 Linux From Scratch 12 03-19-2009 11:41 AM
sneeking suspition that my dpkg is corrupt anthonydunn97202 Linux - Software 13 08-21-2007 01:25 PM
Apt-get, Dpkg Kincaid Debian 3 03-01-2007 07:52 AM


All times are GMT -5. The time now is 05:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration