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
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?
Last edited by gibbs1984 on Fri Feb 24, 2017 4:29 pm, edited 1 time in total.
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 ~ $
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?
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 ~ $