Issue with installing the latest linux image in lubuntu 20.04
Cannot boot normally, I need to use the previous linux image to boot via advanced options. the system returns this when I attempt to update it:
Running post-installation trigger dpkg-exec Preparing installation of memtest86+ Unpacking memtest86+ Installing memtest86+ Configuring linux-image-5.4.0-47-generic Error Resume: Eror Code: error-package-manager-failed Package operation failed The installation or removal of a software package failed. Error Detail: installArchives() failed: Preconfiguring packages . Preconfiguring packages . (Reading database . (Reading database . 5% (Reading database . 10% (Reading database . 15% (Reading database . 20% (Reading database . 25% (Reading database . 30% (Reading database . 35% (Reading database . 40% (Reading database . 45% (Reading database . 50% (Reading database . 55% (Reading database . 60% (Reading database . 65% (Reading database . 70% (Reading database . 75% (Reading database . 80% (Reading database . 85% (Reading database . 90% (Reading database . 95% (Reading database . 100% (Reading database . 276712 files and directories currently installed.) Preparing to unpack . /memtest86+_5.01-3.1ubuntu2.1_amd64.deb . Unpacking memtest86+ (5.01-3.1ubuntu2.1) over (5.01-3.1ubuntu1) . dpkg: error processing archive /var/cache/apt/archives/memtest86+_5.01-3.1ubuntu2.1_amd64.deb (--unpack): unable to make backup link of './boot/memtest86+.bin' before installing new version: Operation not permitted Errors were encountered while processing: /var/cache/apt/archives/memtest86+_5.01-3.1ubuntu2.1_amd64.deb Setting up linux-image-5.4.0-47-generic (5.4.0-47.51) . Failed to create symlink to vmlinuz-5.4.0-42-generic: Operation not permitted at /usr/bin/linux-update-symlinks line 64. dpkg: error processing package linux-image-5.4.0-47-generic (--configure): installed linux-image-5.4.0-47-generic package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-image-generic: linux-image-generic depends on linux-image-5.4.0-47-generic; however: Package linux-image-5.4.0-47-generic is not configured yet. dpkg: error processing package linux-image-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-modules-extra-5.4.0-47-generic: linux-modules-extra-5.4.0-47-generic depends on linux-image-5.4.0-47-generic | linux-image-unsigned-5.4.0-47-generic; however: Package linux-image-5.4.0-47-generic is not configured yet. Package linux-image-unsigned-5.4.0-47-generic is not installed. dpkg: error processing package linux-modules-extra-5.4.0-47-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic (= 5.4.0.47.50); however: Package linux-image-generic is not configured yet. dpkg: error processing package linux-generic (--configure): dependency problems - leaving unconfigured Package operation failed The installation or removal of a software package failed. Eror Code: error-package-manager-failed Package operation failed The installation or removal of a software package failed. Error Detail: installArchives() failed: Preconfiguring packages . Preconfiguring packages . (Reading database . (Reading database . 5% (Reading database . 10% (Reading database . 15% (Reading database . 20% (Reading database . 25% (Reading database . 30% (Reading database . 35% (Reading database . 40% (Reading database . 45% (Reading database . 50% (Reading database . 55% (Reading database . 60% (Reading database . 65% (Reading database . 70% (Reading database . 75% (Reading database . 80% (Reading database . 85% (Reading database . 90% (Reading database . 95% (Reading database . 100% (Reading database . 276712 files and directories currently installed.) Preparing to unpack . /memtest86+_5.01-3.1ubuntu2.1_amd64.deb . Unpacking memtest86+ (5.01-3.1ubuntu2.1) over (5.01-3.1ubuntu1) . dpkg: error processing archive /var/cache/apt/archives/memtest86+_5.01-3.1ubuntu2.1_amd64.deb (--unpack): unable to make backup link of './boot/memtest86+.bin' before installing new version: Operation not permitted Errors were encountered while processing: /var/cache/apt/archives/memtest86+_5.01-3.1ubuntu2.1_amd64.deb Setting up linux-image-5.4.0-47-generic (5.4.0-47.51) . Failed to create symlink to vmlinuz-5.4.0-42-generic: Operation not permitted at /usr/bin/linux-update-symlinks line 64. dpkg: error processing package linux-image-5.4.0-47-generic (--configure): installed linux-image-5.4.0-47-generic package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-image-generic: linux-image-generic depends on linux-image-5.4.0-47-generic; however: Package linux-image-5.4.0-47-generic is not configured yet. dpkg: error processing package linux-image-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-modules-extra-5.4.0-47-generic: linux-modules-extra-5.4.0-47-generic depends on linux-image-5.4.0-47-generic | linux-image-unsigned-5.4.0-47-generic; however: Package linux-image-5.4.0-47-generic is not configured yet. Package linux-image-unsigned-5.4.0-47-generic is not installed. dpkg: error processing package linux-modules-extra-5.4.0-47-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic (= 5.4.0.47.50); however: Package linux-image-generic is not configured yet. dpkg: error processing package linux-generic (--configure): dependency problems - leaving unconfigured Package operation failed The installation or removal of a software package failed.
With this terminal output we only have half of the equation. You didn’t tell us which kernel you are trying to install, how you are trying to install it, which command results in this output, or which kernel you currently have. All of these points of info would be helpful.
dpkg error processing linux-image after upgrade from 16.04 to 18.04
I just upgraded to Ubuntu MATE 18.04 from 16.04. There were some hurdles that I would later describe below, but right now, the upgrade is «complete» except for the following set of errors while dpkg is setting up packages, resulting in failure when trying to update anything.
Bus error (core dumped) dpkg: error processing package linux-image-4.15.0-112-generic (--configure): installed linux-image-4.15.0-112-generic package post-installation script subprocess returned error exit status 135 dpkg: dependency problems prevent configuration of linux-image-generic: linux-image-generic depends on linux-image-4.15.0-112-generic; however: Package linux-image-4.15.0-112-generic is not configured yet. dpkg: error processing package linux-image-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-modules-extra-4.15.0-112-generic: linux-modules-extra-4.15.0-112-generic depends on linux-image-4.15.0-112-generic | linux-image-unsigned-4.15.0-112-generic; however: Package linux-image-4.15.0-112-generic is not configured yet. Package linux-image-unsigned-4.15.0-112-generic is not installed. dpkg: error processing package linux-modules-extra-4.15.0-112-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic (= 4.15.0.112.100); however: Package linux-image-generic is not configured yet. dpkg: error processing package linux-generic (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: linux-image-4.15.0-112-generic linux-image-generic linux-modules-extra-4.15.0-112-generic linux-generic
- I first ran do-release-upgrade at work, but I stopped the download quite early on because the Internet wasn’t stable.
- I noticed my Apache is not working properly, so I tried do-release-upgrade again. I got a warning saying I should upgrade to the latest patch, and I found that it’s «up to date» with around 1500 packages «kept back»
- After a bit of browsing, I ran apt-get install -f . It downloaded around 650mb of packages, and after I restarted, the OS ran but with a broken GUI that looks like Windows 98.
- I ran apt-get dist-upgrade and it downloaded around 1.5gb of packages. After it finished, I rebooted and the OS is working «fine» except the errors above. Though Apache is still not working properly.
I’m sorry if I broke any rule. This is my first post. I’d be really grateful for any help from this community. Right now I’m making a backup of important files in case I end up having to reinstall my Linux, but I really hope I can keep going with this one. Thank you for reading.
Edit: Running uname -r shows 4.4.0-187-generic .
Edit 2: I’ve purged the older kernels too. The same error still happens.
«Package linux-image-generic is not configured yet.» Error
Reading package lists. Done Building dependency tree Reading state information. Done Package 'linux-image-3.13.0-27-generic' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up linux-image-3.13.0-37-generic (3.13.0-37.64) . Running depmod. update-initramfs: deferring update (hook will be called later) Not updating initrd symbolic links since we are being updated/reinstalled (3.13.0-37.64 was configured last, according to dpkg) Not updating image symbolic links since we are being updated/reinstalled (3.13.0-37.64 was configured last, according to dpkg) Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-37-generic /boot/vmlinuz-3.13.0-37-generic run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-37-generic /boot/vmlinuz-3.13.0-37-generic run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-37-generic /boot/vmlinuz-3.13.0-37-generic update-initramfs: Generating /boot/initrd.img-3.13.0-37-generic run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-37-generic /boot/vmlinuz-3.13.0-37-generic run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.13.0-37-generic /boot/vmlinuz-3.13.0-37-generic P: Checking for EXTLINUX directory. found. P: Writing config for /boot/vmlinuz-3.13.0-37-generic. P: Installing debian theme. cp: cannot stat ‘/usr/share/syslinux/themes/debian-wheezy/extlinux/memtest.bin’: No such file or directory run-parts: /etc/kernel/postinst.d/zz-extlinux exited with return code 1 Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-37-generic.postinst line 1025. dpkg: error processing package linux-image-3.13.0-37-generic (--configure): subprocess installed post-installation script returned error exit status 2 dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-37-generic: linux-image-extra-3.13.0-37-generic depends on linux-image-3.13.0-37-generic; however: Package linux-image-3.13.0-37-generic is not configured yet. dpkg: error processing package linux-image-extra-3.13.0-37-generic (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. dpkg: dependency problems prevent configuration of linux-image-generic: linux-image-generic depends on linux-image-3.13.0-37-generic; however: Package linux-image-3.13.0-37-generic is not configured yet. linux-image-generic depends on linux-image-extra-3.13.0-37-generic; however: Package linux-image-extra-3.13.0-37-generic is not configured yet. dpkg: error processing package linux-image-generic (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic (= 3.13.0.37.44); however: Package linux-image-generic is not configured yet. dpkg: error processing package linux-generic (--configure): dependency problems - leaving unconfigured No apport report written because MaxReports is reached already dpkg: dependency problems prevent configuration of linux: linux depends on linux-generic; however: Package linux-generic is not configured yet. dpkg: error processing package linux (--configure): dependency problems - leaving unconfigured No apport report written because MaxReports is reached already E: Sub-process /usr/bin/dpkg returned an error code (1)