The following package was automatically installed and is no longer required: sudo apt install curl # if you haven't already installed curl This should take care also of the matching generic packages.I am running Ubuntu 20.04 focal 64bit on a Dell Precision 7510. You can purge the older linux-headers and linux-image packages by using apt-get purge with care (remember, not to delete the packages associated to the kernel you are using), for instance: sudo apt-get purge linux-image-5.4.0-94 linux-image-5.4.0-96 linux-headers-5.4.0-94 linux-headers-5.4.0-96 This will list all the kernel images and headers currently installed: ~ % kernelver=$(uname -r | sed -r 's/-+//')ĭpkg -l linux-' | grep -ve $kernelver My solution was to remove old kernels in order to free up space, following the steps from Lekensteyn in: So, I was getting errors of initframs compilation when trying to run apt-update. Upgrade: linux-image-generic-hwe-18.04-edge:amd64 (5.0.0.17.73, 5.0.0.20.76), linux-image-extra-virtual-hwe-18.04-edge:amd64 (5.0.0.17.73, 5.0.0.20.76)Įrror: Sub-process /usr/bin/dpkg returned an error code (1)īut this may be a false flag as for me the limited /boot space can be the cause of the error code (1). I did not test as I went along so can not guarantee which part fixed it, but it was not harmful to clear those old files out AFAICT.Īside, checking my /var/log/apt/history.log file, this appears to be the beginning of this particular error: Start-Date: 17:59:10 Which finished as expected and returned the system to the expected state without attempting to install extraneous kernels. # that's a really useful safety check, 'sudo rm' is a dangerous tool! # -i is interactive mode so you have to answer 'y' to remove # and similar for all but my current and next oldest kernels I have problems with a very tight /boot folder for historical reasons and so removed old kernel files with: sudo rm -i /boot/**4* Sudo rm -rf sudo rm -rf /usr/src/linux-headers-4.* # which again showed old source trees that I pruned with # which revealed lots of old module folders that I removed with. #check carefully that it's not removing anything you need though, this is a hammer to crack a nut So I figure that somehow they've altered the logic for dkms (or something related to initramfs) and it checks some other locations to see if kernels might be installed and then does updates on those kernels and replaces missing files. However, apt suddenly turned up errors and attempted to install files in my /boot for old kernels including 5.0.0-15, 4.18.0-17, 4.13.0-45. My uname -a shows I'm using kernel version 5.0.0-20 and running ls -al /boot shows only this and the 5.0.0-17 kernel are installed. I've just had a very similar issue when I did an sudo apt autoremove and it failed attempting to install kernel files for a kernel I don't have. Installed initramfs-tools package post-installation script subprocess returned error exit status 1Įrrors were encountered while processing:Īnyone got any ideas as to what I can do? ĭpkg: error processing package initramfs-tools (-configure): Processing triggers for initramfs-tools (0.130ubuntu3.7). Installed linux-image-4.15.0-47-generic package post-installation script subprocess returned error exit status 1 Run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1ĭpkg: error processing package linux-image-4.15.0-47-generic (-configure): Update-initramfs: failed for /boot/initrd.img-4.15.0-47-generic with 1. Update-initramfs: Generating /boot/initrd.img-4.15.0-47-genericĮ: /usr/share/initramfs-tools/hooks/fsck failed with return 1. Update-initramfs: deferring update (trigger activated) Setting up initramfs-tools (0.130ubuntu3.7). Upgrading to LTS 18.04 hasn't resolved it, nor has removing all old kernels.Īttempting to reinstall initramfs doesn't work.Ġ to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.Īfter this operation, 0 B of additional disk space will be used. I've been having an error when updating or running any apt command for a week or so.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |