broke package management (warning long)

Lori Nagel jastiv at yahoo.com
Sun Feb 13 23:18:29 EST 2011



jastiv at localhost:/var/log$ dpkg -S /lib/modules/2.6.30.7-libre-fshoppe1
dpkg: /lib/modules/2.6.30.7-libre-fshoppe1 not found.

then I tried on a file I know was installed by the package manager.

jastiv at localhost:/var/log$ dpkg -S /usr/share/gnome/help/gnect/it/figures
gnome-games-data: /usr/share/gnome/help/gnect/it/figures
jastiv at localhost:/var/log$ 

basically the command does not work because the folder is no longer there for 
some reason. 




________________________________
From: Chris Linstid <clinstid at gmail.com>
To: Lori Nagel <jastiv at yahoo.com>
Sent: Sun, February 13, 2011 6:28:35 PM
Subject: Re: broke package management (warning long)

I'm pretty sure that this was broken before you issued your first listed apt-get 

install command. It looks like you have a kernel package registered as 
installed, but one of the directories it installed, 
/lib/modules/2.6.30.7-libre-fshoppe1, is now gone. You should be able to track 
down the .deb that contained that kernel, reinstall it using "sudo dpkg -i 
package.deb" to get the directory back. Re-run "dpkg --configure -a" to finish 
configuring the outstanding packages and then go back to your original apt-get 
install command.

I'm pretty sure you can figure out which package installed that directory by 
running "dpkg -S /lib/modules/2.6.30.7-libre-fshoppe1".

clinstid at obiwan:~$ dpkg -S /lib/modules/2.6.35-22-generic-pae
linux-image-2.6.35-22-generic-pae, linux-headers-2.6.35-22-generic-pae: 
/lib/modules/2.6.35-22-generic-pae
     - Chris



On Sun, Feb 13, 2011 at 4:05 PM, Lori Nagel <jastiv at yahoo.com> wrote:

For anyone interested in how I broke my package management in gNewSense (a
>ubuntu derivative)
>read on the terminal commands that I have tried.
>I still do not understand what I did that led to it not working anymore.
>
>jastiv at localhost:~/Programs$ sudo apt-get install gtk-devel
>[sudo] password for jastiv:
>E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct
>the problem.
>
>jastiv at localhost:~/Programs$ dpkg --configure
>dpkg: requested operation requires superuser privilege
>jastiv at localhost:~/Programs$ sudo dpkg --configure
>dpkg: --configure needs at least one package name argument
>
>Type dpkg --help for help about installing and deinstalling packages [*];
>Use `dselect' or `aptitude' for user-friendly package management;
>Type dpkg -Dhelp for a list of dpkg debug flag values;
>Type dpkg --force-help for a list of forcing options;
>Type dpkg-deb --help for help about manipulating *.deb files;
>Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].
>

>
>jastiv at localhost:~/Programs$ sudo apt-get install gtk-devel
>[sudo] password for jastiv:
>E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct
>the problem.
>
>jastiv at localhost:~/Programs$ man dh_make
>No manual entry for dh_make
>jastiv at localhost:~/Programs$ man dpkg
>jastiv at localhost:~/Programs$ dpkg --configure -a
>dpkg: requested operation requires superuser privilege
>jastiv at localhost:~/Programs$ sudo dpkg --configure -a
>[sudo] password for jastiv:
>Setting up initramfs-tools (0.85eubuntu36) ...
>update-initramfs: deferring update (trigger activated)
>
>Processing triggers for initramfs-tools ...
>update-initramfs: Generating /boot/initrd.img-2.6.30.7-libre-fshoppe1
>Cannot find /lib/modules/2.6.30.7-libre-fshoppe1
>update-initramfs: failed for /boot/initrd.img-2.6.30.7-libre-fshoppe1
>dpkg: subprocess post-installation script returned error exit status 1
>jastiv at localhost:~/Programs$ lspci | grep -i vga
>01:00.0 VGA compatible controller: nVidia Corporation Unknown device 06e4 (rev
>a1)
>jastiv at localhost:~/Programs$ sudo dpkg --configure -a
>[sudo] password for jastiv:
>Setting up initramfs-tools (0.85eubuntu36) ...
>update-initramfs: deferring update (trigger activated)
>
>Processing triggers for initramfs-tools ...
>update-initramfs: Generating /boot/initrd.img-2.6.30.7-libre-fshoppe1
>Cannot find /lib/modules/2.6.30.7-libre-fshoppe1
>update-initramfs: failed for /boot/initrd.img-2.6.30.7-libre-fshoppe1
>dpkg: subprocess post-installation script returned error exit status 1
>jastiv at localhost:~/Programs$ sudo apt-get -f install
>E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct
>the problem.
>
>jastiv at localhost:~/Programs$ sudo apt-get -f install
>E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct
>the problem.
>
>jastiv at localhost:~/Programs$ tail /var/log/dpkg.log
>2011-01-26 21:39:56 status triggers-pending initramfs-tools 0.85eubuntu36
>2011-01-26 21:39:56 trigproc initramfs-tools 0.85eubuntu36 0.85eubuntu36
>2011-01-26 21:39:56 status half-configured initramfs-tools 0.85eubuntu36
>2011-01-26 21:56:26 startup packages configure
>2011-01-26 21:56:26 configure initramfs-tools 0.85eubuntu36 0.85eubuntu36
>2011-01-26 21:56:26 status half-configured initramfs-tools 0.85eubuntu36
>2011-01-26 21:56:26 status installed initramfs-tools 0.85eubuntu36
>2011-01-26 21:56:26 status triggers-pending initramfs-tools 0.85eubuntu36
>2011-01-26 21:56:26 trigproc initramfs-tools 0.85eubuntu36 0.85eubuntu36
>2011-01-26 21:56:26 status half-configured initramfs-tools 0.85eubuntu36
>jastiv at localhost:~/Programs$
>
>
>
>_______________________________________________
>gnhlug-discuss mailing list
>gnhlug-discuss at mail.gnhlug.org
>http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>



      


More information about the gnhlug-discuss mailing list