Broken Package - Unable to repair

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
gibbs1984
Level 5
Level 5
Posts: 798
Joined: Mon Oct 27, 2008 2:40 pm
Location: Hemel Hempstead, England

Broken Package - Unable to repair

Post by gibbs1984 »

Hi,

EDIT: Sorry, forgot to mention that I'm running Linux Mint 18.1 Cinnamon 64bit.

A little while ago I installed some updates via the Update Manager and then possibly a level 4/5 update and now I get the following error message everytime I install updates, the updates still install but this message always comes up and it also seems to try and install these packages everytime which fail but means the updates take longer.

It tries to repair the packages but it never works.

How do I get rid of/fix the broken packages?

Image
Last edited by gibbs1984 on Fri Feb 24, 2017 4:29 pm, edited 1 time in total.
Linux Mint 19.0 (Cinnamon) 64bit.

gibbs1984
Level 5
Level 5
Posts: 798
Joined: Mon Oct 27, 2008 2:40 pm
Location: Hemel Hempstead, England

Re: Broken Package - Unable to repair

Post by gibbs1984 »

Double post.
Linux Mint 19.0 (Cinnamon) 64bit.

User avatar
WharfRat
Level 21
Level 21
Posts: 13768
Joined: Thu Apr 07, 2011 8:15 pm

Re: Broken Package - Unable to repair

Post by WharfRat »

Try sudo apt-get install --fix-broken
ImageImage

User avatar
Incentive I.C
Level 4
Level 4
Posts: 334
Joined: Mon Aug 27, 2012 9:20 pm

Re: Broken Package - Unable to repair

Post by Incentive I.C »

WharfRat wrote:Try sudo apt-get install --fix-broken
I have so questions about the terminal can you PM me when you get the chance.
The best way to learn from it is break it OS's (is there a plural for OS?) included.

gibbs1984
Level 5
Level 5
Posts: 798
Joined: Mon Oct 27, 2008 2:40 pm
Location: Hemel Hempstead, England

Re: Broken Package - Unable to repair

Post by gibbs1984 »

WharfRat wrote:Try sudo apt-get install --fix-broken
Here's the output:

Code: Select all

steve@steve ~ $ sudo apt-get install --fix-broken
[sudo] password for steve: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dconf-cli fonts-roboto fonts-roboto-hinted gir1.2-rb-3.0 gir1.2-secret-1 gnucash-common
  guile-2.0 libaqbanking-data libaqbanking35 libaqbanking35-plugins libaqebics0 libaqhbci22
  libaqofxconnect7 libcec3 libclass-singleton-perl libdate-manip-perl libdatetime-locale-perl
  libdatetime-perl libdatetime-timezone-perl libdbi1 libdmapsharing-3.0-2 libfakekey0
  libfinance-quote-perl libgexiv2-2 libgoffice-0.8-8 libgoffice-0.8-8-common libgrilo-0.2-1
  libgsf-1-114 libgsf-1-common libgwengui-gtk2-0 libgwenhywfar-data libgwenhywfar60
  libhtml-tableextract-perl libjs-iscroll libktoblzcheck1v5 libmodule-implementation-perl
  libmodule-runtime-perl libmono-accessibility4.0-cil
  libmono-system-runtime-serialization-formatters-soap4.0-cil libmono-system-windows-forms4.0-cil
  libmono-webbrowser4.0-cil libofx6 libosp5 libparams-classify-perl libparams-validate-perl
  libpeas-1.0-0-python3loader libplatform2 libqca-qt5-2 libqca-qt5-2-plugins librhythmbox-core9
  libtar0 libtry-tiny-perl libxmlsec1 python-m2crypto python3-mako python3-markupsafe
  rhythmbox-data xserver-xorg-legacy
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 40 not to upgrade.
9 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-4.4.0-53-generic (4.4.0-53.74) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-53-generic
Warning: No support for locale: en_GB.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-53-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-53-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-4.4.0-59-generic (4.4.0-59.80) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-59-generic
Warning: No support for locale: en_GB.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-59-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-59-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-4.4.0-62-generic (4.4.0-62.83) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-62-generic
Warning: No support for locale: en_GB.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-62-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-62-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-4.4.0-64-generic (4.4.0-64.85) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-64-generic
Warning: No support for locale: en_GB.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-64-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-64-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-53-generic:
 linux-image-extra-4.4.0-53-generic depends on linux-image-4.4.0-53-generic; however:
  Package linux-image-4.4.0-53-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-53-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-59-generic:
 linux-image-extra-4.4.0-59-generic depends on linux-image-4.4.0-59-generic; however:
  Package linux-image-4.4.0-59-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-59-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-62-generic:
 linux-image-extra-4.4.0-62-generic depends on linux-image-4.4.0-62-generic; however:
  Package linux-image-4.4.0-62-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-62-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-64-generic:
 linux-image-extra-4.4.0-64-generic depends on linux-image-4.4.0-64-generic; however:
  Package linux-image-4.4.0-64-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-64-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-kernel-generic:
 linux-kernel-generic depends on linux-image-4.4.0-53-generic; however:
  Package linux-image-4.4.0-53-generic is not configured yet.
 linux-kernel-generic depends on linux-image-extra-4.4.0-53-generic; however:
  Package linux-image-extra-4.4.0-53-generic is not configured yet.

dpkg: error processing package linux-kernel-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-4.4.0-53-generic
 linux-image-4.4.0-59-generic
 linux-image-4.4.0-62-generic
 linux-image-4.4.0-64-generic
 linux-image-extra-4.4.0-53-generic
 linux-image-extra-4.4.0-59-generic
 linux-image-extra-4.4.0-62-generic
 linux-image-extra-4.4.0-64-generic
 linux-kernel-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
steve@steve ~ $ 
Linux Mint 19.0 (Cinnamon) 64bit.

User avatar
WharfRat
Level 21
Level 21
Posts: 13768
Joined: Thu Apr 07, 2011 8:15 pm

Re: Broken Package - Unable to repair

Post by WharfRat »

That looks messy for sure. Both times it complained about the post install process going awry.

Try install then purging one of the kernels

Code: Select all

sudo apt install linux-image-4.4.0-59-generic
then

Code: Select all

sudo apt purge linux-image-4.4.0-59-generic
ImageImage

User avatar
WharfRat
Level 21
Level 21
Posts: 13768
Joined: Thu Apr 07, 2011 8:15 pm

Re: Broken Package - Unable to repair

Post by WharfRat »

Incentive I.C wrote:
WharfRat wrote:Try sudo apt-get install --fix-broken
I have so questions about the terminal can you PM me when you get the chance.
You can post your question(s) here in the forum for everyone's benefit...
ImageImage

User avatar
Incentive I.C
Level 4
Level 4
Posts: 334
Joined: Mon Aug 27, 2012 9:20 pm

Re: Broken Package - Unable to repair

Post by Incentive I.C »

WharfRat wrote:
Incentive I.C wrote:
WharfRat wrote:Try sudo apt-get install --fix-broken
I have so questions about the terminal can you PM me when you get the chance.
You can post your question(s) here in the forum for everyone's benefit...
Sure thing :)
The best way to learn from it is break it OS's (is there a plural for OS?) included.

gibbs1984
Level 5
Level 5
Posts: 798
Joined: Mon Oct 27, 2008 2:40 pm
Location: Hemel Hempstead, England

Re: Broken Package - Unable to repair

Post by gibbs1984 »

WharfRat wrote:That looks messy for sure. Both times it complained about the post install process going awry.

Try install then purging one of the kernels

Code: Select all

sudo apt install linux-image-4.4.0-59-generic
then

Code: Select all

sudo apt purge linux-image-4.4.0-59-generic
Thanks.

This is the output of the install:

Code: Select all

steve@steve ~ $ sudo apt install linux-image-4.4.0-59-generic
[sudo] password for steve: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-image-4.4.0-59-generic is already the newest version (4.4.0-59.80).
The following packages were automatically installed and are no longer required:
  dconf-cli fonts-roboto fonts-roboto-hinted gir1.2-rb-3.0 gir1.2-secret-1 gnucash-common
  guile-2.0 libaqbanking-data libaqbanking35 libaqbanking35-plugins libaqebics0 libaqhbci22
  libaqofxconnect7 libcec3 libclass-singleton-perl libdate-manip-perl libdatetime-locale-perl
  libdatetime-perl libdatetime-timezone-perl libdbi1 libdmapsharing-3.0-2 libfakekey0
  libfinance-quote-perl libgexiv2-2 libgoffice-0.8-8 libgoffice-0.8-8-common libgrilo-0.2-1
  libgsf-1-114 libgsf-1-common libgwengui-gtk2-0 libgwenhywfar-data libgwenhywfar60
  libhtml-tableextract-perl libjs-iscroll libktoblzcheck1v5 libmodule-implementation-perl
  libmodule-runtime-perl libmono-accessibility4.0-cil
  libmono-system-runtime-serialization-formatters-soap4.0-cil libmono-system-windows-forms4.0-cil
  libmono-webbrowser4.0-cil libofx6 libosp5 libparams-classify-perl libparams-validate-perl
  libpeas-1.0-0-python3loader libplatform2 libqca-qt5-2 libqca-qt5-2-plugins librhythmbox-core9
  libtar0 libtry-tiny-perl libxmlsec1 python-m2crypto python3-mako python3-markupsafe
  rhythmbox-data xserver-xorg-legacy
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 40 not to upgrade.
9 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y 
Setting up linux-image-4.4.0-53-generic (4.4.0-53.74) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-53-generic
Warning: No support for locale: en_GB.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-53-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-53-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-4.4.0-59-generic (4.4.0-59.80) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-59-generic
Warning: No support for locale: en_GB.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-59-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-59-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-4.4.0-62-generic (4.4.0-62.83) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-62-generic
Warning: No support for locale: en_GB.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-62-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-62-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-4.4.0-64-generic (4.4.0-64.85) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-64-generic
Warning: No support for locale: en_GB.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-64-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-64-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-53-generic:
 linux-image-extra-4.4.0-53-generic depends on linux-image-4.4.0-53-generic; however:
  Package linux-image-4.4.0-53-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-53-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-59-generic:
 linux-image-extra-4.4.0-59-generic depends on linux-image-4.4.0-59-generic; however:
  Package linux-image-4.4.0-59-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-59-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-62-generic:
 linux-image-extra-4.4.0-62-generic depends on linux-image-4.4.0-62-generic; however:
  Package linux-image-4.4.0-62-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-62-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-64-generic:
 linux-image-extra-4.4.0-64-generic depends on linux-image-4.4.0-64-generic; however:
  Package linux-image-4.4.0-64-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-64-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-kernel-generic:
 linux-kernel-generic depends on linux-image-4.4.0-53-generic; however:
  Package linux-image-4.4.0-53-generic is not configured yet.
 linux-kernel-generic depends on linux-image-extra-4.4.0-53-generic; however:
  Package linux-image-extra-4.4.0-53-generic is not configured yet.

dpkg: error processing package linux-kernel-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-4.4.0-53-generic
 linux-image-4.4.0-59-generic
 linux-image-4.4.0-62-generic
 linux-image-4.4.0-64-generic
 linux-image-extra-4.4.0-53-generic
 linux-image-extra-4.4.0-59-generic
 linux-image-extra-4.4.0-62-generic
 linux-image-extra-4.4.0-64-generic
 linux-kernel-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
steve@steve ~ $ 
This is the output of the purge:

Code: Select all

steve@steve ~ $ sudo apt purge linux-image-4.4.0-59-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dconf-cli fonts-roboto fonts-roboto-hinted gir1.2-rb-3.0 gir1.2-secret-1 gnucash-common
  guile-2.0 libaqbanking-data libaqbanking35 libaqbanking35-plugins libaqebics0 libaqhbci22
  libaqofxconnect7 libcec3 libclass-singleton-perl libdate-manip-perl libdatetime-locale-perl
  libdatetime-perl libdatetime-timezone-perl libdbi1 libdmapsharing-3.0-2 libfakekey0
  libfinance-quote-perl libgexiv2-2 libgoffice-0.8-8 libgoffice-0.8-8-common libgrilo-0.2-1
  libgsf-1-114 libgsf-1-common libgwengui-gtk2-0 libgwenhywfar-data libgwenhywfar60
  libhtml-tableextract-perl libjs-iscroll libktoblzcheck1v5 libmodule-implementation-perl
  libmodule-runtime-perl libmono-accessibility4.0-cil
  libmono-system-runtime-serialization-formatters-soap4.0-cil libmono-system-windows-forms4.0-cil
  libmono-webbrowser4.0-cil libofx6 libosp5 libparams-classify-perl libparams-validate-perl
  libpeas-1.0-0-python3loader libplatform2 libqca-qt5-2 libqca-qt5-2-plugins librhythmbox-core9
  libtar0 libtry-tiny-perl libxmlsec1 python-m2crypto python3-mako python3-markupsafe
  rhythmbox-data xserver-xorg-legacy
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
  linux-image-4.4.0-59-generic* linux-image-extra-4.4.0-59-generic*
0 to upgrade, 0 to newly install, 2 to remove and 40 not to upgrade.
9 not fully installed or removed.
After this operation, 219 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 699215 files and directories currently installed.)
Removing linux-image-extra-4.4.0-59-generic (4.4.0-59.80) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-59-generic
Warning: No support for locale: en_GB.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
dpkg: error processing package linux-image-extra-4.4.0-59-generic (--purge):
 subprocess installed post-removal script returned error exit status 1
Removing linux-image-4.4.0-59-generic (4.4.0-59.80) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
dkms: removing: bbswitch 0.8 (4.4.0-59-generic) (x86_64)

-------- Uninstall Beginning --------
Module:  bbswitch
Version: 0.8
Kernel:  4.4.0-59-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

bbswitch.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-59-generic/kernel/drivers/acpi/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
dkms: removing: ndiswrapper 1.59 (4.4.0-59-generic) (x86_64)

-------- Uninstall Beginning --------
Module:  ndiswrapper
Version: 1.59
Kernel:  4.4.0-59-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

ndiswrapper.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-59-generic/updates/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
dkms: removing: nvidia-375 375.26 (4.4.0-59-generic) (x86_64)

-------- Uninstall Beginning --------
Module:  nvidia-375
Version: 375.26
Kernel:  4.4.0-59-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia_375.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-59-generic/kernel/drivers/char/drm/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia_375_modeset.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-59-generic/kernel/drivers/char/drm/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia_375_drm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-59-generic/kernel/drivers/char/drm/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia_375_uvm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-59-generic/kernel/drivers/char/drm/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
dkms: removing: virtualbox 5.0.32 (4.4.0-59-generic) (x86_64)

-------- Uninstall Beginning --------
Module:  virtualbox
Version: 5.0.32
Kernel:  4.4.0-59-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-59-generic/updates/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


vboxnetadp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-59-generic/updates/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


vboxnetflt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-59-generic/updates/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


vboxpci.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-59-generic/updates/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
dkms: removing: virtualbox-guest 5.0.32 (4.4.0-59-generic) (x86_64)

-------- Uninstall Beginning --------
Module:  virtualbox-guest
Version: 5.0.32
Kernel:  4.4.0-59-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxguest.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-59-generic/updates/
 - Original module
   - Archived original module found in the DKMS tree
   - Moving it to: /lib/modules/4.4.0-59-generic/updates/

vboxsf.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-59-generic/updates/
 - Original module
   - Archived original module found in the DKMS tree
   - Moving it to: /lib/modules/4.4.0-59-generic/updates/

vboxvideo.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-59-generic/updates/
 - Original module
   - Archived original module found in the DKMS tree
   - Moving it to: /lib/modules/4.4.0-59-generic/updates/
depmod....

Removing original_module from DKMS tree for kernel 4.4.0-59-generic (x86_64)

DKMS: uninstall completed.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-59-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-4.4.0-59-generic.postrm line 328.
dpkg: error processing package linux-image-4.4.0-59-generic (--purge):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-4.4.0-59-generic
 linux-image-4.4.0-59-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
steve@steve ~ $ 
Linux Mint 19.0 (Cinnamon) 64bit.

User avatar
WharfRat
Level 21
Level 21
Posts: 13768
Joined: Thu Apr 07, 2011 8:15 pm

Re: Broken Package - Unable to repair

Post by WharfRat »

The kernal installation is now complaining about /etc/default/grub so paste back cat -n /etc/default/grub
ImageImage

gibbs1984
Level 5
Level 5
Posts: 798
Joined: Mon Oct 27, 2008 2:40 pm
Location: Hemel Hempstead, England

Re: Broken Package - Unable to repair

Post by gibbs1984 »

WharfRat wrote:The kernal installation is now complaining about /etc/default/grub so paste back cat -n /etc/default/grub
I remember changing a couple of these settings a little while ago after I installed my new graphics card as the resolution of the GRUB menu was very low, could that have caused this issue?

Thanks, the output of that command is:

Code: Select all

steve@steve ~ $ cat -n /etc/default/grub
     1	# If you change this file, run 'update-grub' afterwards to update
     2	# /boot/grub/grub.cfg.
     3	# For full documentation of the options in this file, see:
     4	#   info -f grub -n 'Simple configuration'
     5	
     6	GRUB_DEFAULT=0
     7	GRUB_HIDDEN_TIMEOUT=0
     8	GRUB_HIDDEN_TIMEOUT_QUIET=true
     9	GRUB_TIMEOUT=10
    10	GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    11	GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1920x1080-24, mtrr=3,scroll=ywrap""
    12	GRUB_CMDLINE_LINUX=""
    13	
    14	# Uncomment to enable BadRAM filtering, modify to suit your needs
    15	# This works with Linux (no patch required) and with any kernel that obtains
    16	# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
    17	#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
    18	
    19	# Uncomment to disable graphical terminal (grub-pc only)
    20	#GRUB_TERMINAL=console
    21	
    22	# The resolution used on graphical terminal
    23	# note that you can use only modes which your graphic card supports via VBE
    24	# you can see them in real GRUB with the command `vbeinfo'
    25	GRUB_GFXMODE=1920x1080
    26	
    27	# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    28	#GRUB_DISABLE_LINUX_UUID=true
    29	
    30	# Uncomment to disable generation of recovery mode menu entries
    31	#GRUB_DISABLE_RECOVERY="true"
    32	
    33	# Uncomment to get a beep at grub start
    34	#GRUB_INIT_TUNE="480 440 1"
steve@steve ~ $ 

Linux Mint 19.0 (Cinnamon) 64bit.

User avatar
austin.texas
Level 20
Level 20
Posts: 12048
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Broken Package - Unable to repair

Post by austin.texas »

Line 11 ends with 2 "
Should be one "
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

User avatar
WharfRat
Level 21
Level 21
Posts: 13768
Joined: Thu Apr 07, 2011 8:15 pm

Re: Broken Package - Unable to repair

Post by WharfRat »

Yea, get rid of that extra " at the end of line 11.

The error is "EOF in backquote substitution" at line 35 and you only have 34 lines.

Then install the kernel again.
ImageImage

gibbs1984
Level 5
Level 5
Posts: 798
Joined: Mon Oct 27, 2008 2:40 pm
Location: Hemel Hempstead, England

Re: Broken Package - Unable to repair

Post by gibbs1984 »

austin.texas wrote:Line 11 ends with 2 "
Should be one "
Thanks, I deleted the extra " and refreshed in the Update Manager and it didn't show up any errors so hopefully this is fixed now.

Thanks everyone for the help, much appreciated and I'll be more careful in future when editing files :D
Linux Mint 19.0 (Cinnamon) 64bit.

Post Reply

Return to “Newbie Questions”