![]() ![]() 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. The other thing they often suggest to purge it via Synaptic or the command line, which also fails.I've been having an error when updating or running any apt command for a week or so. ![]() The apt-get commands all fail with the same error as above and the dpkg command just doesn't help. The commonly suggested fix is to run the following: sudo apt-get clean & sudo apt-get autoremove I have been searching on Google and here on Ask Ubuntu but have not found a working solution. var/lib/dpkg/info/bsnes.postinst: 5: /var/lib/dpkg/info/bsnes.postinst: update-alternatives: not foundĭpkg: error processing bsnes (-configure):Įrrors were encountered while processing:Į: Sub-process /usr/bin/dpkg returned an error code (1) Subprocess installed post-installation script returned error exit status 127 var/lib/dpkg/info/google-chrome-stable.postinst: 124: /var/lib/dpkg/info/google-chrome-stable.postinst: update-alternatives: not foundĭpkg: error processing google-chrome-stable (-configure): The error I get is: Setting up google-chrome-stable (.152-1). Attempting to install a new package also just dooms it to the same fate. Now, I cannot update, install new packages, or do basically any apt-get commands as they all try to process this broken package and fail. I went to install bsnes the other day and, for whatever reason, the installation failed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |