Help! Can't update software with update manager

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
aletave
Level 1
Level 1
Posts: 37
Joined: Thu Sep 13, 2018 12:12 pm

Help! Can't update software with update manager

Post by aletave » Thu Sep 13, 2018 12:43 pm

Hi
I can't update software with update manager on Mint 17.3. it comes with the below errors
I'm really out of my depth here

Code: Select all

E: linux-image-extra-4.4.0-124-generic: subprocess installed post-removal script returned error exit status 1
E: linux-image-extra-4.4.0-127-generic: subprocess installed post-removal script returned error exit status 1

dpkg: error processing package linux-image-extra-4.4.0-119-generic (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.103ubuntu4.11) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-111-generic
Warning: No support for locale: en_GB.utf8

gzip: stdout: No space left on device
E: mkinitramfs failure find 141 cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-111-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-4.4.0-112-generic
 linux-image-4.4.0-116-generic
 linux-image-4.4.0-121-generic
 linux-image-4.4.0-119-generic
 linux-image-extra-4.4.0-112-generic
 linux-image-extra-4.4.0-116-generic
 linux-image-extra-4.4.0-121-generic
 linux-image-extra-4.4.0-119-generic
 initramfs-tools
Last edited by karlchen on Fri Sep 14, 2018 6:32 am, edited 2 times in total.
Reason: added [code] tags

User avatar
karlchen
Level 19
Level 19
Posts: 9509
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Help! Can't update software with update manager

Post by karlchen » Fri Sep 14, 2018 6:29 am

Hello, aletave.

The root cause of your problem can be spotted in the middle of all the error messages, which you had posted:

Code: Select all

gzip: stdout: No space left on device
One of your filesystems has run out of free space.
The affected filesystem will either be the root filesystem /. Or the affected filesystem will be /boot, in case your system has got a dedicated filesystem /boot.

Please, open a terminal window. Execute the following command exactly as it has been typed here:

Code: Select all

df -h | grep "^/dev/"
Mark the complete screen output, which the command will display, and paste it into your next reply. This should tell which filesystem has run out of free space.

The same problem has been reported more than once in the forum. Lots of people collected a long list of kernels in /boot and ran out of filesystem space. The solution will be uninstalling all obsolete kernels, keeping only the currently loaded kernel and the previous kernel.

A forum search for gzip: stdout: No space left on device should return a number of threads, where such a problem had been reported and resolved.
Here are 2 of them:
[Solved] Cannot increase /boot size or remove older versions of kernel
Filesystem /boot filled? "gzip: stdout: No space left on device"

Best regards,
Karl
Image
Linux Mint 18.1 64-bit Cinnamon Desktop, Total Commander 9.21a 64-bit
Ubuntu 18.04.1 32-bit Mate Desktop, Total Commander 9.21a 32-bit
Windows? - 1 window in every room

aletave
Level 1
Level 1
Posts: 37
Joined: Thu Sep 13, 2018 12:12 pm

Re: Help! Can't update software with update manager

Post by aletave » Fri Sep 14, 2018 12:36 pm

Thank you so much for your help Karl, please see below

/dev/dm-1 909G 187G 676G 22% /
/dev/sda2 237M 237M 0 100% /boot
/dev/sda1 511M 3.2M 508M 1% /boot/efi

gm10
Level 13
Level 13
Posts: 4581
Joined: Thu Jun 21, 2018 5:11 pm

Re: Help! Can't update software with update manager

Post by gm10 » Fri Sep 14, 2018 12:47 pm

In a terminal window, first run this (copy & paste into a terminal window):

Code: Select all

dpkg-query -W -f '${Version}\n' 'linux-image-[^g]*'|sort -u|sed -e '/^$/d' -e 's/\~[^~]*$//' -e 's/\.[^.]*$//' -e "/$(uname -r|sed s/-generic//)/d" -e 's/.*/sudo rm -rfv \/boot\/*-&-*/'|source /dev/stdin
Then run this:

Code: Select all

sudo apt-get install -f -y
If this finishes successfully, then run

Code: Select all

dpkg-query -W -f '${Version}\n' 'linux-image-[^g]*'|sort -u|sed -e '/^$/d' -e 's/\~[^~]*$//' -e 's/\.[^.]*$//' -e "/$(uname -r|sed 's/-generic//')/d" -e 's/.*/linux-*-&*/'|tr '\n' ' '|xargs -r sudo apt-get remove --purge -y
For style points, fix that locale warning like this:

Code: Select all

sudo locale-gen --purge --no-archive
sudo update-initramfs -u -t

aletave
Level 1
Level 1
Posts: 37
Joined: Thu Sep 13, 2018 12:12 pm

Re: Help! Can't update software with update manager

Post by aletave » Fri Sep 14, 2018 1:05 pm

Thanks GM10

it came back with a long list of errors (I think)

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-image-extra-4.4.0-109-generic linux-image-extra-4.4.0-112-generic
  linux-image-extra-4.4.0-116-generic linux-image-extra-4.4.0-121-generic
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED
  linux-image-extra-4.4.0-124-generic linux-image-extra-4.4.0-127-generic
0 to upgrade, 0 to newly install, 2 to remove and 160 not to upgrade.
11 not fully installed or removed.
After this operation, 310 MB disk space will be freed.
(Reading database ... 418159 files and directories currently installed.)
Removing linux-image-extra-4.4.0-124-generic (4.4.0-124.148~14.04.1) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-124-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-124-generic /boot/vmlinuz-4.4.0-124-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-124-generic /boot/vmlinuz-4.4.0-124-generic
Error! Bad return status for module build on kernel: 4.4.0-124-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-124-generic /boot/vmlinuz-4.4.0-124-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-124-generic
grep: /boot/config-4.4.0-124-generic: No such file or directory
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-apple.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-apple.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-cherry.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-cherry.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-logitech.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-logitech.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-logitech-dj.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-logitech-dj.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-microsoft.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-microsoft.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-a4tech.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-a4tech.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-belkin.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-belkin.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-chicony.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-chicony.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-cypress.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-cypress.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-ezkey.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-ezkey.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-gyration.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-gyration.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-monterey.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-monterey.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-petalynx.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-petalynx.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-pl.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-pl.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-samsung.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-samsung.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-sony.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-sony.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-sunplus.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-sunplus.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-tmff.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-tmff.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-zpff.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/hid/hid-zpff.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/fs/jfs/jfs.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/fs/jfs/jfs.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/fs/reiserfs/reiserfs.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/fs/reiserfs/reiserfs.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/firewire/firewire-ohci.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/firewire/firewire-ohci.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/firewire/firewire-sbp2.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/firewire/firewire-sbp2.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/firewire/firewire-ohci.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/firewire/firewire-ohci.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/drivers/firewire/firewire-sbp2.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-124-generic/kernel/drivers/firewire/firewire-sbp2.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-124-generic/kernel/fs/nls/nls_utf8.ko’: No such file or directory
E: /usr/share/initramfs-tools/hooks/casper failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-124-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-124-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Removing linux-image-extra-4.4.0-127-generic (4.4.0-127.153~14.04.1) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-127-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-127-generic /boot/vmlinuz-4.4.0-127-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-127-generic /boot/vmlinuz-4.4.0-127-generic
Error! echo
Your kernel headers for kernel 4.4.0-127-generic cannot be found at
/lib/modules/4.4.0-127-generic/build or /lib/modules/4.4.0-127-generic/source.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-127-generic /boot/vmlinuz-4.4.0-127-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-127-generic
grep: /boot/config-4.4.0-127-generic: No such file or directory
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-apple.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-apple.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-cherry.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-cherry.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-logitech.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-logitech.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-logitech-dj.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-logitech-dj.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-microsoft.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-microsoft.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-a4tech.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-a4tech.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-belkin.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-belkin.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-chicony.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-chicony.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-cypress.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-cypress.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-ezkey.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-ezkey.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-gyration.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-gyration.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-monterey.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-monterey.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-petalynx.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-petalynx.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-pl.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-pl.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-samsung.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-samsung.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-sony.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-sony.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-sunplus.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-sunplus.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-tmff.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-tmff.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-zpff.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/hid/hid-zpff.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/fs/jfs/jfs.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/fs/jfs/jfs.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/fs/reiserfs/reiserfs.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/fs/reiserfs/reiserfs.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/firewire/firewire-ohci.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/firewire/firewire-ohci.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/firewire/firewire-sbp2.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/firewire/firewire-sbp2.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/firewire/firewire-ohci.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/firewire/firewire-ohci.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/drivers/firewire/firewire-sbp2.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-127-generic/kernel/drivers/firewire/firewire-sbp2.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-127-generic/kernel/fs/nls/nls_utf8.ko’: No such file or directory
E: /usr/share/initramfs-tools/hooks/casper failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-127-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-127-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-4.4.0-124-generic
 linux-image-extra-4.4.0-127-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

gm10
Level 13
Level 13
Posts: 4581
Joined: Thu Jun 21, 2018 5:11 pm

Re: Help! Can't update software with update manager

Post by gm10 » Fri Sep 14, 2018 1:11 pm

I forgot to ask for a

Code: Select all

df -h /boot
to see if the first script worked as expected. Also I'd say despite the long list of messages the second command ran through ok, so as long as the above command no longer shows 100% in use then run the third command as well and you should be fine then

aletave
Level 1
Level 1
Posts: 37
Joined: Thu Sep 13, 2018 12:12 pm

Re: Help! Can't update software with update manager

Post by aletave » Tue Sep 18, 2018 7:53 am

Thanks GM10 it seems it work for the making of space in the disk, however still can't update software it come with the below errors. Do you have any ideas?

E: linux-image-extra-4.4.0-124-generic: subprocess installed post-removal script returned error exit status 1
E: linux-image-extra-4.4.0-127-generic: subprocess installed post-removal script returned error exit status 1

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

dpkg: error processing package linux-image-extra-4.4.0-119-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-4.4.0-112-generic
linux-image-4.4.0-116-generic
linux-image-4.4.0-121-generic
linux-image-4.4.0-119-generic
linux-image-extra-4.4.0-112-generic
linux-image-extra-4.4.0-116-generic
linux-image-extra-4.4.0-121-generic
linux-image-extra-4.4.0-119-generic

gm10
Level 13
Level 13
Posts: 4581
Joined: Thu Jun 21, 2018 5:11 pm

Re: Help! Can't update software with update manager

Post by gm10 » Tue Sep 18, 2018 8:03 am

Remind me, did you run the third script yet like I said?

Code: Select all

dpkg-query -W -f '${Version}\n' 'linux-image-[^g]*'|sort -u|sed -e '/^$/d' -e 's/\~[^~]*$//' -e 's/\.[^.]*$//' -e "/$(uname -r|sed 's/-generic//')/d" -e 's/.*/linux-*-&*/'|tr '\n' ' '|xargs -r sudo apt-get remove --purge -y

aletave
Level 1
Level 1
Posts: 37
Joined: Thu Sep 13, 2018 12:12 pm

Re: Help! Can't update software with update manager

Post by aletave » Tue Sep 18, 2018 9:24 am

yes it comes with the below

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-*-3.16.0-38*
E: Couldn't find any package by regex 'linux-*-3.16.0-38*'
E: Unable to locate package linux-*-3.19.0-32*
E: Couldn't find any package by regex 'linux-*-3.19.0-32*'
E: Unable to locate package linux-*-4.4.0-109*
E: Couldn't find any package by regex 'linux-*-4.4.0-109*'
E: Unable to locate package linux-*-4.4.0-112*
E: Couldn't find any package by regex 'linux-*-4.4.0-112*'
E: Unable to locate package linux-*-4.4.0-116*
E: Couldn't find any package by regex 'linux-*-4.4.0-116*'
E: Unable to locate package linux-*-4.4.0-119*
E: Couldn't find any package by regex 'linux-*-4.4.0-119*'
E: Unable to locate package linux-*-4.4.0-121*
E: Couldn't find any package by regex 'linux-*-4.4.0-121*'
E: Unable to locate package linux-*-4.4.0-124*
E: Couldn't find any package by regex 'linux-*-4.4.0-124*'
E: Unable to locate package linux-*-4.4.0-127*
E: Couldn't find any package by regex 'linux-*-4.4.0-127*'

gm10
Level 13
Level 13
Posts: 4581
Joined: Thu Jun 21, 2018 5:11 pm

Re: Help! Can't update software with update manager

Post by gm10 » Tue Sep 18, 2018 9:35 am

Oh wow, that has to be a bug in Mint 17. How about this:

Code: Select all

sudo apt-get autoremove --purge -y linux-image-3.16.0-38-generic linux-image-3.19.0-32-generic linux-image-4.4.0-109-generic linux-image-4.4.0-112-generic linux-image-4.4.0-116-generic linux-image-4.4.0-119-generic linux-image-4.4.0-121-generic linux-image-4.4.0-124-generic linux-image-4.4.0-127-generic linux-image-extra-3.16.0-38-generic linux-image-extra-3.19.0-32-generic linux-image-extra-4.4.0-109-generic linux-image-extra-4.4.0-112-generic linux-image-extra-4.4.0-116-generic linux-image-extra-4.4.0-119-generic linux-image-extra-4.4.0-121-generic linux-image-extra-4.4.0-124-generic linux-image-extra-4.4.0-127-generic 

aletave
Level 1
Level 1
Posts: 37
Joined: Thu Sep 13, 2018 12:12 pm

Re: Help! Can't update software with update manager

Post by aletave » Tue Sep 18, 2018 12:49 pm

oh dear seems more like an infestation lol

Errors were encountered while processing:
linux-image-extra-4.4.0-112-generic
linux-image-extra-4.4.0-116-generic
linux-image-extra-4.4.0-119-generic
linux-image-extra-4.4.0-121-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

gm10
Level 13
Level 13
Posts: 4581
Joined: Thu Jun 21, 2018 5:11 pm

Re: Help! Can't update software with update manager

Post by gm10 » Tue Sep 18, 2018 1:13 pm

Were those the only ones it threw errors on? Because the list was much longer.

Anyway, let's get rid of those 4 then:

Code: Select all

sudo dpkg --remove --force-remove-reinstreq --force-depends linux-image-extra-4.4.0-112-generic linux-image-extra-4.4.0-116-generic linux-image-extra-4.4.0-119-generic linux-image-extra-4.4.0-121-generic
If that goes through, do this afterwards:

Code: Select all

sudo apt-get install -f -y

aletave
Level 1
Level 1
Posts: 37
Joined: Thu Sep 13, 2018 12:12 pm

Re: Help! Can't update software with update manager

Post by aletave » Tue Sep 18, 2018 5:05 pm

it doesnt show the whole list i think its too long

cony.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-cypress.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-cypress.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-ezkey.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-ezkey.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-gyration.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-gyration.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-monterey.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-monterey.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-petalynx.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-petalynx.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-pl.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-pl.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-samsung.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-samsung.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-sony.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-sony.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-sunplus.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-sunplus.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-tmff.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-tmff.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-zpff.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/hid/hid-zpff.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/fs/jfs/jfs.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/fs/jfs/jfs.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/fs/reiserfs/reiserfs.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/fs/reiserfs/reiserfs.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/firewire/firewire-ohci.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/firewire/firewire-ohci.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/firewire/firewire-sbp2.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/firewire/firewire-sbp2.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/firewire/firewire-ohci.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/firewire/firewire-ohci.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/drivers/firewire/firewire-sbp2.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-116-generic/kernel/drivers/firewire/firewire-sbp2.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-116-generic/kernel/fs/nls/nls_utf8.ko’: No such file or directory
E: /usr/share/initramfs-tools/hooks/casper failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-116-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-116-generic (--purge):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-4.4.0-116-generic (4.4.0-116.140~14.04.1) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 4.4.0-116-generic /boot/vmlinuz-4.4.0-116-generic
dkms: removing: virtualbox-guest 4.3.36 (4.4.0-116-generic) (x86_64)

-------- Uninstall Beginning --------
Module: virtualbox-guest
Version: 4.3.36
Kernel: 4.4.0-116-generic (x86_64)
-------------------------------------

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

vboxguest.ko:
- Uninstallation
- Deleting from: /lib/modules/4.4.0-116-generic/
rmdir: failed to remove ‘’: No such file or directory
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


vboxsf.ko:
- Uninstallation
- Deleting from: /lib/modules/4.4.0-116-generic/
rmdir: failed to remove ‘’: No such file or directory
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


vboxvideo.ko:
- Uninstallation
- Deleting from: /lib/modules/4.4.0-116-generic/
rmdir: failed to remove ‘’: No such file or directory
- 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.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-116-generic /boot/vmlinuz-4.4.0-116-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-116-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-116-generic /boot/vmlinuz-4.4.0-116-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-111-generic
Found initrd image: /boot/initrd.img-4.4.0-111-generic
Adding boot menu entry for EFI firmware configuration
done
Purging configuration files for linux-image-4.4.0-116-generic (4.4.0-116.140~14.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-116-generic /boot/vmlinuz-4.4.0-116-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-116-generic /boot/vmlinuz-4.4.0-116-generic
Removing linux-image-extra-4.4.0-119-generic (4.4.0-119.143~14.04.1) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-119-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
Error! Bad return status for module build on kernel: 4.4.0-119-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-119-generic
grep: /boot/config-4.4.0-119-generic: No such file or directory
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-apple.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-apple.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-cherry.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-cherry.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-logitech.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-logitech.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-logitech-dj.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-logitech-dj.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-microsoft.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-microsoft.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-a4tech.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-a4tech.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-belkin.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-belkin.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-chicony.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-chicony.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-cypress.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-cypress.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-ezkey.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-ezkey.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-gyration.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-gyration.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-monterey.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-monterey.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-petalynx.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-petalynx.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-pl.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-pl.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-samsung.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-samsung.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-sony.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-sony.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-sunplus.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-sunplus.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-tmff.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-tmff.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-zpff.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/hid/hid-zpff.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/fs/jfs/jfs.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/fs/jfs/jfs.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/fs/reiserfs/reiserfs.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/fs/reiserfs/reiserfs.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/firewire/firewire-ohci.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/firewire/firewire-ohci.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/firewire/firewire-sbp2.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/firewire/firewire-sbp2.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/firewire/firewire-ohci.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/firewire/firewire-ohci.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/drivers/firewire/firewire-sbp2.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-119-generic/kernel/drivers/firewire/firewire-sbp2.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-119-generic/kernel/fs/nls/nls_utf8.ko’: No such file or directory
E: /usr/share/initramfs-tools/hooks/casper failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-119-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-119-generic (--purge):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-4.4.0-119-generic (4.4.0-119.143~14.04.1) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
dkms: removing: virtualbox-guest 4.3.36 (4.4.0-119-generic) (x86_64)

-------- Uninstall Beginning --------
Module: virtualbox-guest
Version: 4.3.36
Kernel: 4.4.0-119-generic (x86_64)
-------------------------------------

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

vboxguest.ko:
- Uninstallation
- Deleting from: /lib/modules/4.4.0-119-generic/
rmdir: failed to remove ‘’: No such file or directory
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


vboxsf.ko:
- Uninstallation
- Deleting from: /lib/modules/4.4.0-119-generic/
rmdir: failed to remove ‘’: No such file or directory
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


vboxvideo.ko:
- Uninstallation
- Deleting from: /lib/modules/4.4.0-119-generic/
rmdir: failed to remove ‘’: No such file or directory
- 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.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-119-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-111-generic
Found initrd image: /boot/initrd.img-4.4.0-111-generic
Adding boot menu entry for EFI firmware configuration
done
Purging configuration files for linux-image-4.4.0-119-generic (4.4.0-119.143~14.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
Removing linux-image-extra-4.4.0-121-generic (4.4.0-121.145~14.04.1) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-121-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
Error! Bad return status for module build on kernel: 4.4.0-121-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-121-generic
grep: /boot/config-4.4.0-121-generic: No such file or directory
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-apple.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-apple.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-cherry.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-cherry.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-logitech.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-logitech.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-logitech-dj.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-logitech-dj.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-microsoft.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-microsoft.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-a4tech.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-a4tech.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-belkin.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-belkin.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-chicony.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-chicony.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-cypress.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-cypress.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-ezkey.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-ezkey.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-gyration.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-gyration.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-monterey.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-monterey.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-petalynx.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-petalynx.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-pl.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-pl.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-samsung.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-samsung.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-sony.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-sony.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-sunplus.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-sunplus.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-tmff.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-tmff.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-zpff.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/hid/hid-zpff.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/fs/jfs/jfs.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/fs/jfs/jfs.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/fs/reiserfs/reiserfs.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/fs/reiserfs/reiserfs.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/firewire/firewire-ohci.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/firewire/firewire-ohci.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/firewire/firewire-sbp2.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/firewire/firewire-sbp2.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/firewire/firewire-ohci.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/firewire/firewire-ohci.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/drivers/firewire/firewire-sbp2.ko’: No such file or directory
modinfo: ERROR: Module /lib/modules/4.4.0-121-generic/kernel/drivers/firewire/firewire-sbp2.ko not found.
cp: cannot stat ‘/lib/modules/4.4.0-121-generic/kernel/fs/nls/nls_utf8.ko’: No such file or directory
E: /usr/share/initramfs-tools/hooks/casper failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-121-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-121-generic (--purge):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-4.4.0-121-generic (4.4.0-121.145~14.04.1) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
dkms: removing: virtualbox-guest 4.3.36 (4.4.0-121-generic) (x86_64)

-------- Uninstall Beginning --------
Module: virtualbox-guest
Version: 4.3.36
Kernel: 4.4.0-121-generic (x86_64)
-------------------------------------

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

vboxguest.ko:
- Uninstallation
- Deleting from: /lib/modules/4.4.0-121-generic/
rmdir: failed to remove ‘’: No such file or directory
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


vboxsf.ko:
- Uninstallation
- Deleting from: /lib/modules/4.4.0-121-generic/
rmdir: failed to remove ‘’: No such file or directory
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


vboxvideo.ko:
- Uninstallation
- Deleting from: /lib/modules/4.4.0-121-generic/
rmdir: failed to remove ‘’: No such file or directory
- 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.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-121-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-111-generic
Found initrd image: /boot/initrd.img-4.4.0-111-generic
Adding boot menu entry for EFI firmware configuration
done
Purging configuration files for linux-image-4.4.0-121-generic (4.4.0-121.145~14.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
Errors were encountered while processing:
linux-image-extra-4.4.0-112-generic
linux-image-extra-4.4.0-116-generic
linux-image-extra-4.4.0-119-generic
linux-image-extra-4.4.0-121-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

aletave
Level 1
Level 1
Posts: 37
Joined: Thu Sep 13, 2018 12:12 pm

Re: Help! Can't update software with update manager

Post by aletave » Tue Sep 18, 2018 5:15 pm

I’m not sure if it went through OK or not

(Reading database ... 395752 files and directories currently installed.)
Removing linux-image-extra-4.4.0-112-generic (4.4.0-112.135~14.04.1) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-112-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
Error! Bad return status for module build on kernel: 4.4.0-112-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-112-generic
grep: /boot/config-4.4.0-112-generic: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_aPbS9y/lib/modules/4.4.0-112-generic/modules.order: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_aPbS9y/lib/modules/4.4.0-112-generic/modules.builtin: No such file or directory
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-111-generic
Found initrd image: /boot/initrd.img-4.4.0-111-generic
Adding boot menu entry for EFI firmware configuration
done
Removing linux-image-extra-4.4.0-116-generic (4.4.0-116.140~14.04.1) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-116-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-116-generic /boot/vmlinuz-4.4.0-116-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-116-generic /boot/vmlinuz-4.4.0-116-generic
Error! Bad return status for module build on kernel: 4.4.0-116-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-116-generic /boot/vmlinuz-4.4.0-116-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-116-generic
grep: /boot/config-4.4.0-116-generic: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_eMwJr9/lib/modules/4.4.0-116-generic/modules.order: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_eMwJr9/lib/modules/4.4.0-116-generic/modules.builtin: No such file or directory
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-116-generic /boot/vmlinuz-4.4.0-116-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-116-generic /boot/vmlinuz-4.4.0-116-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-111-generic
Found initrd image: /boot/initrd.img-4.4.0-111-generic
Adding boot menu entry for EFI firmware configuration
done
Removing linux-image-extra-4.4.0-119-generic (4.4.0-119.143~14.04.1) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-119-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
Error! Bad return status for module build on kernel: 4.4.0-119-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-119-generic
grep: /boot/config-4.4.0-119-generic: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_yEP2I6/lib/modules/4.4.0-119-generic/modules.order: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_yEP2I6/lib/modules/4.4.0-119-generic/modules.builtin: No such file or directory
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-111-generic
Found initrd image: /boot/initrd.img-4.4.0-111-generic
Adding boot menu entry for EFI firmware configuration
done
Removing linux-image-extra-4.4.0-121-generic (4.4.0-121.145~14.04.1) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-121-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
Error! Bad return status for module build on kernel: 4.4.0-121-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-121-generic
grep: /boot/config-4.4.0-121-generic: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_iwNN2n/lib/modules/4.4.0-121-generic/modules.order: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_iwNN2n/lib/modules/4.4.0-121-generic/modules.builtin: No such file or directory
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-111-generic
Found initrd image: /boot/initrd.img-4.4.0-111-generic
Adding boot menu entry for EFI firmware configuration
done

gm10
Level 13
Level 13
Posts: 4581
Joined: Thu Jun 21, 2018 5:11 pm

Re: Help! Can't update software with update manager

Post by gm10 » Tue Sep 18, 2018 5:37 pm

Yep, that looks good. Run this to clean out some left-over modules directories, if any (you don't need to post the output of this):

Code: Select all

cd /lib/modules
LISTFILE=/tmp/clean_module_dirs.txt
dpkg-query -W -f '${Version}\n' 'linux-image-[^g]*'|sort|uniq -u|sed -e 's/\~[^~]*$//' -e 's/\.[^.]*$/-generic/'> $LISTFILE
comm -2 -3 <(ls) <(sort $LISTFILE) | xargs -r sudo rm -rv
rm -v $LISTFILE
and finally, to see what's still there (some header packages probably) - of this I'd like to see the output:

Code: Select all

apt list --installed "linux-*"
Last edited by gm10 on Tue Sep 18, 2018 5:40 pm, edited 1 time in total.

aletave
Level 1
Level 1
Posts: 37
Joined: Thu Sep 13, 2018 12:12 pm

Re: Help! Can't update software with update manager

Post by aletave » Tue Sep 18, 2018 5:40 pm

thanks

Usage: apt command [options]
apt help command [options]

Commands:
add-repository - Add entries to apt sources.list
autoclean - Erase old downloaded archive files
autoremove - Remove automatically all unused packages
build - Build binary or source packages from sources
build-dep - Configure build-dependencies for source packages
changelog - View a package's changelog
check - Verify that there are no broken dependencies
clean - Erase downloaded archive files
contains - List packages containing a file
content - List files contained in a package
deb - Install a .deb package
depends - Show raw dependency information for a package
dist-upgrade - Perform an upgrade, possibly installing and removing packages
download - Download the .deb file for a package
dselect-upgrade - Follow dselect selections
held - List all held packages
help - Show help for a command
hold - Hold a package
install - Install/upgrade packages
policy - Show policy settings
purge - Remove packages and their configuration files
recommends - List missing recommended packages for a particular package
rdepends - Show reverse dependency information for a package
reinstall - Download and (possibly) reinstall a currently installed package
remove - Remove packages
search - Search for a package by name and/or expression
show - Display detailed information about a package
source - Download source archives
sources - Edit /etc/apt/sources.list with nano
unhold - Unhold a package
update - Download lists of new/upgradable packages
upgrade - Perform a safe upgrade
version - Show the installed version of a package
This apt has Super Cow Powers

gm10
Level 13
Level 13
Posts: 4581
Joined: Thu Jun 21, 2018 5:11 pm

Re: Help! Can't update software with update manager

Post by gm10 » Tue Sep 18, 2018 5:46 pm

Oh, sry, I never used Mint 17, guess you only get an early version of the apt wrapper. This should work

Code: Select all

dpkg-query -W -f '${Package}\n' | grep "^linux-"

aletave
Level 1
Level 1
Posts: 37
Joined: Thu Sep 13, 2018 12:12 pm

Re: Help! Can't update software with update manager

Post by aletave » Tue Sep 18, 2018 5:47 pm

linux-firmware
linux-headers-3.16.0-38
linux-headers-3.16.0-38-generic
linux-headers-3.19.0-32
linux-headers-3.19.0-32-generic
linux-headers-4.4.0-109
linux-headers-4.4.0-109-generic
linux-headers-4.4.0-111
linux-headers-4.4.0-111-generic
linux-headers-4.4.0-112
linux-headers-4.4.0-112-generic
linux-headers-4.4.0-116
linux-headers-4.4.0-116-generic
linux-headers-4.4.0-119
linux-headers-4.4.0-119-generic
linux-headers-4.4.0-121
linux-headers-4.4.0-121-generic
linux-headers-4.4.0-124
linux-headers-4.4.0-124-generic
linux-image-3.16.0-38-generic
linux-image-3.19.0-32-generic
linux-image-4.4.0-109-generic
linux-image-4.4.0-111-generic
linux-image-extra-3.16.0-38-generic
linux-image-extra-3.19.0-32-generic
linux-image-extra-4.4.0-109-generic
linux-image-extra-4.4.0-111-generic
linux-image-extra-4.4.0-112-generic
linux-image-extra-4.4.0-116-generic
linux-image-extra-4.4.0-119-generic
linux-image-extra-4.4.0-121-generic
linux-image-extra-4.4.0-124-generic
linux-image-extra-4.4.0-127-generic
linux-libc-dev
linux-sound-base

gm10
Level 13
Level 13
Posts: 4581
Joined: Thu Jun 21, 2018 5:11 pm

Re: Help! Can't update software with update manager

Post by gm10 » Tue Sep 18, 2018 5:54 pm

What the hell? That list keeps growing. Bear with me, let's force those 4 packages that kept coming up in the error messages finally off your system:

Code: Select all

sudo rm -fv /var/lib/dpkg/info/linux-image-extra-4.4.0-112-generic.* /var/lib/dpkg/info/linux-image-extra-4.4.0-116-generic.* /var/lib/dpkg/info/linux-image-extra-4.4.0-119-generic.* /var/lib/dpkg/info/linux-image-extra-4.4.0-121-generic.*
and

Code: Select all

sudo dpkg --remove --force-remove-reinstreq --force-depends linux-image-extra-4.4.0-112-generic linux-image-extra-4.4.0-116-generic linux-image-extra-4.4.0-119-generic linux-image-extra-4.4.0-121-generic
and

Code: Select all

sudo apt-get install -f -y
sudo apt-get autoremove --purge -y
and last but not least, please tell me they're finally gone::

Code: Select all

dpkg-query -W -f '${Package}\n' | grep "^linux-image-extra"

aletave
Level 1
Level 1
Posts: 37
Joined: Thu Sep 13, 2018 12:12 pm

Re: Help! Can't update software with update manager

Post by aletave » Tue Sep 18, 2018 6:03 pm

linux-image-extra-3.16.0-38-generic
linux-image-extra-3.19.0-32-generic
linux-image-extra-4.4.0-109-generic
linux-image-extra-4.4.0-111-generic
linux-image-extra-4.4.0-112-generic
linux-image-extra-4.4.0-116-generic
linux-image-extra-4.4.0-119-generic
linux-image-extra-4.4.0-121-generic
linux-image-extra-4.4.0-124-generic
linux-image-extra-4.4.0-127-generic

Post Reply

Return to “Newbie Questions”