I am new using ubuntu 18.04 and run into problem when doing daily upgrade.
Here is what I got when I ran: sudo apt upgrade
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
linux-image-4.15.0-111-generic : Depends: linux-modules-4.15.0-111-generic but it is not going to be installed
E: Broken packages
Thank you in advance for help
sudo apt update
and thensudo apt -f install
(make sure to review the changes before you accept the changes). Review the changes to make sure the system will not uninstall packages you want to keep. If the changes look fine, you can proceed. – mchid Nov 24 '20 at 07:24Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) /usr/sbin/update-grub-legacy-ec2: line 1101: read: read error: 0: Bad file descriptor run-parts: /etc/kernel/postrm.d/x-grub-legacy-ec2 exited with return code 1 dpkg: error processing package linux-image-4.15.0-111-generic (--remove): installed linux-image-4.15.0-111-generic package post-removal script subprocess returned error exit status 1 Errors were encountered while processing: linux-image-4.15.0-111-generic E: Sub-process /usr/bin/dpkg returned an error code (1) – JIm Liu Nov 24 '20 at 17:23
sudo apt -f install
if it gets stuck again. – mchid Nov 24 '20 at 20:28