if you are OK with removing the orphaned packages run this command AND IT IS VERY IMPORTANT TO RUN THIS COMMAND MORE THAN ONE TIME rm -rf /lib/modules/*-generic ...
My goal is to build minimal VM image template which utilizes 'cloud-init ... Check that image format is qcow2 and rename it as a base image # qemu-img info ...