Linux Lite Forums

Full Version: sudo dpkg --configure -a not resolving blocking of synaptic & updating
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Synaptic Package Manager wouldn't open fully in LL3.0 today, but came up with message to run this command: sudo dpkg --configure -a.
I assume this happened because a process was abruptly terminated in a previous session, before it had reached completion.
I got the following output when I ran the command mentioned, but it seems to hang indefinitely (more than an hour) on the last line of code... 
Code:
mike@mike-G750JS:~$ sudo dpkg --configure -a
[sudo] password for mike:
Setting up linux-image-4.4.0-42-generic (4.4.0-42.62) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-42-generic
vmlinuz(/boot/vmlinuz-4.4.0-42-generic
) points to /boot/vmlinuz-4.4.0-42-generic
(/boot/vmlinuz-4.4.0-42-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.4.0-42-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-42-generic /boot/vmlinuz-4.4.0-42-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-42-generic /boot/vmlinuz-4.4.0-42-generic
                                       
As always, any help is much appreciated.

Mike
Had same problem this morning.

Had to use sudo dpkg --configure -aa

Found it in one of Goldfingers threads.....worked fine.

Jocklad

OOps my mistake it is sudo dpkg --configure -a  :-[ :-[
m654321,

I've researched this some, and others online actually provided more information to be able to nail down the problem.  But a common denominator seems to be some things that Lite Tweaks may be able to help.  Open Lite Tweaks, and run the Safe option Autoremove Packages, but also use the Kernel Removal option to remove old kernels.  Run "sudo update-grub", and then try the "sudo dpkg --configure -a" command again.  Post your output afterwards.
(10-21-2016, 10:53 AM)Jocklad link Wrote: [ -> ]Had same problem this morning.
Had to use sudo dpkg --configure -aa
Found it in one of Goldfingers threads.....worked fine.
Jocklad
OOps my mistake it is sudo dpkg --configure -a  :-[ :-[
But that's the point I was making in my post: I used "sudo dpkg --configure -a" & it didn't work ...
(10-21-2016, 12:39 PM)torreydale link Wrote: [ -> ]m654321,

I've researched this some, and others online actually provided more information to be able to nail down the problem.  But a common denominator seems to be some things that Lite Tweaks may be able to help.  Open Lite Tweaks, and run the Safe option Autoremove Packages, but also use the Kernel Removal option to remove old kernels.  Run "sudo update-grub", and then try the "sudo dpkg --configure -a" command again.  Post your output afterwards.
I did what you suggested, ticking on the kernels listed but cleaning failed
Mike
Quote:I did what you suggested, ticking on the kernels listed but cleaning failed
Mike

Then follow the procedure seen here:  http://kevinjmorse.ca/articles/gzip-stdo...-f-install
(10-21-2016, 01:07 PM)m654321 link Wrote: [ -> ][quote author=Jocklad link=topic=3543.msg26815#msg26815 date=1477047214]
Had same problem this morning.
Had to use sudo dpkg --configure -aa
Found it in one of Goldfingers threads.....worked fine.
Jocklad
OOps my mistake it is sudo dpkg --configure -a  :-[ :-[
But that's the point I was making in my post: I used "sudo dpkg --configure -a" & it didn't work ...
[/quote]
It did work for me but I did do a system cleanup before trying it.

Hopefully Torreydales link will fix you up.
(10-21-2016, 01:26 PM)torreydale link Wrote: [ -> ]
Quote:I did what you suggested, ticking on the kernels listed but cleaning failed
Mike

Then follow the procedure seen here:  http://kevinjmorse.ca/articles/gzip-stdo...-f-install
Hi torreydale,

Thanks for your efforts to help.  I used the link you gave me to get rid of the unwanted kernels that seem to be lying around, though it didn't work - details on that in a minute.

In the terminal, uname -a revealed that I have kernel version 4.4.0-38-generic installed.  Lite Tweaks reveals I have 4.4.0-22-generic and 4.4.0-42-generic are lying around inside the system: the former was from the time of LL3.0 installation, and I think the latter appears to be the most recent one I was trying to update to, but it appears that this didn't complete and probable gave rise to the request from Terminal to run sudo dpkg --configure -a

I ran the command in the link you gave me (to remove one of the kernels) - unsuccessful - this was the output:
Code:
mike@mike-G750JS:~$ sudo dpkg --remove linux-image-extra-4.4.0-42-generic
[sudo] password for mike:
dpkg: dependency problems prevent removal of linux-image-extra-4.4.0-42-generic:
linux-image-generic depends on linux-image-extra-4.4.0-42-generic; however:
  Package linux-image-extra-4.4.0-42-generic is to be removed.

dpkg: error processing package linux-image-extra-4.4.0-42-generic (--remove):
dependency problems - not removing
Errors were encountered while processing:
linux-image-extra-4.4.0-42-generic
mike@mike-G750JS:~$

I'd be grateful if anyone could help me with this ...

Cheers
Mike
Open a terminal and try this first:
Code:
sudo apt-get install linux-generic
Reboot.


If that doesn't help, open a terminal and do the following:
Code:
sudo apt-get install linux-headers-linuxlite-4.4.0 linux-image-linuxlite-4.4.0 -y
Reboot while holding the keft Shift key.  When the GRUB menu appears, use the advanced option to select the new kernel.  When you get to your desktop, you can use Lite Tweaks to remove any residual kernels.
(10-24-2016, 10:38 AM)torreydale link Wrote: [ -> ]Open a terminal and try this first:
Code:
sudo apt-get install linux-generic
Reboot.

If that doesn't help, open a terminal and do the following:
Code:
sudo apt-get install linux-headers-linuxlite-4.4.0 linux-image-linuxlite-4.4.0 -y
Reboot while holding the keft Shift key.  When the GRUB menu appears, use the advanced option to select the new kernel.  When you get to your desktop, you can use Lite Tweaks to remove any residual kernels.
Thanks, but it didn't work - just stuck in an eternal  "sudo dpkg --configure -a loop", i.e:

Terminal output from 1st option you suggested...
Code:
mike@mike-G750JS:~$ sudo apt-get install linux-generic
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
mike@mike-G750JS:~$

Terminal output from the 2nd option you suggested...
Code:
mike@mike-G750JS:~$ sudo apt-get install linux-headers-linuxlite-4.4.0 linux-image-linuxlite-4.4.0 -y
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
mike@mike-G750JS:~$

Thanks for trying torreydale - anyone else got any ideas?  I'm getting close to the end of my tether with this one... >Sad


Mike


Pages: 1 2 3