0

I am having trouble updating any software on my ubuntu 17.10. It gets stuck here:

$ sudo apt install -f 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  linux-image-extra-4.10.0-42-generic
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 155 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 310513 files and directories currently installed.)
Removing linux-image-extra-4.10.0-42-generic (4.10.0-42.46) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.10.0-42-generic /boot/vmlinuz-4.10.0-42-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.10.0-42-generic /boot/vmlinuz-4.10.0-42-generic

screenshot link

A few things I've tried from googling this problem:

sudo rm -vf /var/lib/apt/lists/*
sudo dpkg --configure -a
sudo apt install -f 

Any suggestions?

  • Same here. Workaround I've found is to uninstall all nvidia drivers - go back to using Nouvo drivers - then reinstall/uninstall kernels and reinstall nvidia drivers. Tedious as it is I can't find any better way to solve it. – srfrnk Feb 14 '18 at 11:39
  • Why do you think it's stuck? How long have you waited? – fkraiem Feb 14 '18 at 12:07

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.