- initramfs error when installing / updating
- 11 Answers 11
- Thread: Errors were encountered while processing: linux-image-2.6.35-22-generic
- Errors were encountered while processing: linux-image-2.6.35-22-generic
- Error while updating
- Re: Errors were encountered while processing: linux-image-2.6.35-22-generic
- Thread: Errors ecnountered while processing: linux-firmware
- Errors ecnountered while processing: linux-firmware
- Re: Errors ecnountered while processing: linux-firmware
- Re: Errors ecnountered while processing: linux-firmware
- Re: Errors ecnountered while processing: linux-firmware
- Re: Errors ecnountered while processing: linux-firmware
- Re: Errors ecnountered while processing: linux-firmware
- Re: Errors ecnountered while processing: linux-firmware
- Re: Errors ecnountered while processing: linux-firmware
- 16.04 LTS Update fails — Errors were encountered while processing util-linux
- 1 Answer 1
- Not the answer you’re looking for? Browse other questions tagged 16.04 updates or ask your own question.
- Linked
- Related
- Hot Network Questions
- Subscribe to RSS
- Errors encountered (by APT/dpkg) while processing linux-image-* packages [closed]
- 6 Answers 6
initramfs error when installing / updating
I’ve been having an error when updating or running any apt command for a week or so. Upgrading to LTS 18.04 hasn’t resolved it, nor has removing all old kernels. Space isn’t an issue either.
Attempting to reinstall initramfs doesn’t work. Error I get is:
Anyone got any ideas as to what I can do?
11 Answers 11
Running auto-remove and clean worked for my situation.
apt-get auto-remove && apt-get clean && apt-get update && apt-get upgrade
For me, it was an issue with the initramfs-tools package
Then I no longer received the error
I had this error since more than a year. Now I found a solution.
Explanation: /boot is on a different partition with insufficient space to perform the operation. Solution: do the update on a drive where there is sufficient space and copy back the results.
As pointed out by Harald, the problem was insufficient space on the /boot partition.
His solution didn’t work for me, but led me directly to what did:
cd /boot , then ls to look at the versions of the files already there. Then rm each of the files that have multiple versions, making sure to delete all but the newest, then sudo apt update
A similar question has this solution:
Additionally ensure this command:
returns this output:
This was the solution for me.
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. 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. 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. Which is weird.
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.
I’m not sure exactly what fixed it but I did:
I have problems with a very tight /boot folder for historical reasons and so removed old kernel files with:
Which finished as expected and returned the system to the expected state without attempting to install extraneous kernels. 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.
Aside, checking my /var/log/apt/history.log file, this appears to be the beginning of this particular error:
But this may be a false flag as for me the limited /boot space can be the cause of the error code (1) .
Источник
Thread: Errors were encountered while processing: linux-image-2.6.35-22-generic
Thread Tools
Display
Errors were encountered while processing: linux-image-2.6.35-22-generic
I executed apt-get update/upgrade commands and I get this error constantly and I cant make it go away Any ideas? Thanks in advance!
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up linux-image-2.6.35-22-generic (2.6.35-22.35) .
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-22-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.35-22.34 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.35-22.34 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
/etc/default/grub: 23: Syntax error: newline unexpected
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-22-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-22-generic (—configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-2.6.35-22-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error while updating
I executed apt-get update/upgrade commands and I get this error constantly and I cant make it go away Any ideas? Thanks in advance!
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up linux-image-2.6.35-22-generic (2.6.35-22.35) .
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-22-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.35-22.34 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.35-22.34 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
/etc/default/grub: 23: Syntax error: newline unexpected
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-22-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-22-generic (—configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-2.6.35-22-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Re: Errors were encountered while processing: linux-image-2.6.35-22-generic
Try these commands in the terminal and report any errors:
Источник
Thread: Errors ecnountered while processing: linux-firmware
Thread Tools
Display
Errors ecnountered while processing: linux-firmware
I’m getting an error whenever I try to upgrade my packages. For example:
Last edited by howefield; January 16th, 2017 at 03:06 PM . Reason: changed quote tags to code tags.
Re: Errors ecnountered while processing: linux-firmware
Re: Errors ecnountered while processing: linux-firmware
Re: Errors ecnountered while processing: linux-firmware
Is this an encrypted installation ?
I’d try the easy..
in an attempt to clear some space in /boot, if that doesn’t work then a manual removal of some of the older kernels/images can be done. Let’s see what autoremove can do first though.
Re: Errors ecnountered while processing: linux-firmware
Re: Errors ecnountered while processing: linux-firmware
I have never seen a listing like that before with those old.dkms files which are taking a lot of space but mostly do not relate to installed kernels.
You appear to have only kernel 4.4.0-36 installed, and 4.4.0-38 which is not yet fully installed and configured, hence it does not show in your listing. Have you ever manually removed any system files from /boot using either the file manager or a sudo rm command?
It would be very helpful to also see the output of command
which will tell us the state of all the kernels installed, removed, and unconfigured on your machine, and will help us sort out what needs removing.
Re: Errors ecnountered while processing: linux-firmware
Thanks, ajgreeny. I seem to have to manually remove old kernel images periodically to free up space on /boot (using commands described here). I’ve never had this error before though.
Re: Errors ecnountered while processing: linux-firmware
You do not tell us which of the multitude of commands on that linked askubuntu thread you used so it is difficult to know if you have done something you ought to have avoided.
» characters doing in your shown command?
They should not be there, unless that is something to do with terminal prompts when using zsh which I don’t know at all. However I can not understand why the dpkg command shows no matches as you obviously must have at least one linux-image installed in order for Ubuntu to run.
Источник
16.04 LTS Update fails — Errors were encountered while processing util-linux
Recently any attempt to update my 16.04 installation fails with errors relating to util-linux. I don’t seem to be able to update or install any packages. Here is the commands I tried and the results they returned.
there was no output from this command.
which returned (I’ve removed blocks that repeated many times) .
The next command I ran was.
The next command was.
Any help, suggestions, ideas or guesses would be gratefully accepted.
1 Answer 1
Turns out that the Samsung printer driver I’d loaded to sort out a neighbour’s printer problems was the cause of all my problems. That will teach me for being so helpful 😉
The clue was this line.
which led me to think about printers. For the record, the drivers I downloaded and installed were UnifiedLinuxDriver_1.00.tar.gz which fortunately included an uninstall.sh script.
Not the answer you’re looking for? Browse other questions tagged 16.04 updates or ask your own question.
Linked
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.10.8.40416
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Источник
Errors encountered (by APT/dpkg) while processing linux-image-* packages [closed]
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago .
sudo apt-get upgrade returns:
I saw the related questions but their errors were a little different. I don’t know if that’s significant.
6 Answers 6
For me these two lines helped! Just remove all the linux-extra and linux-extra-image files, which are problematic and old.
For each package:
Then install/update the latest linux image file
I found the problem
It comes from some modifications I had to make to use the Teensy microcontroller
It is perfectly possible to have multiple kernels. Since only one is used to boot from the others are automatically inactive. It is an advantage to have multiple kernels in case one fails. I have 4 kernels. Since in your case all kernels fail I suspect your drive or partition is out of space or has not sufficient space left.
You can hardly work several kernels from single Ubuntu OS, so I recommend that you put obsolete versions «on hold».
Probably you’ll need only the latest kernel linux-image-4.8.0-41-generic and associated linux-firmware.
Having single isolated error you can post and we can more know than brazillion of combinations of errors in dozen variants of kernels.
Источник