[SOLVED] initramfs unpacking failed: Decoding failed

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
gungosh
Level 1
Level 1
Posts: 3
Joined: Sat Jan 09, 2021 8:24 am

Re: initramfs unpacking failed: Decoding failed

Post by gungosh »

Kadaitcha Man wrote:
Mon Jun 29, 2020 3:35 am
Change COMPRESS=lz4 to COMPRESS=gzip
Thank you.

I'd like to add that I also can confirm this bug comment on my notebook
- change to gzip
- update
- don't boot
- change back to lz4
- update
- boot
- no error message
dpbe
Level 1
Level 1
Posts: 5
Joined: Sun Jan 10, 2021 11:46 am

Re: [SOLVED] initramfs unpacking failed: Decoding failed

Post by dpbe »

Tried all the solutions but after regenerating iniramfs I get this error:

Code: Select all

update-initramfs: Generating /boot/initrd.img-5.4.0-60-generic
cp: cannot stat '/var/lib/acpi-override/*': No such file or directory
E: /usr/share/initramfs-tools/hooks/acpi-override failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-60-generic with 1.
User avatar
LanceM
Level 11
Level 11
Posts: 3526
Joined: Sun Jul 08, 2018 11:50 pm

Re: [SOLVED] initramfs unpacking failed: Decoding failed

Post by LanceM »

dpbe wrote:
Tue Jan 12, 2021 3:12 pm
Tried all the solutions but after regenerating iniramfs I get this error:

Code: Select all

update-initramfs: Generating /boot/initrd.img-5.4.0-60-generic
cp: cannot stat '/var/lib/acpi-override/*': No such file or directory
E: /usr/share/initramfs-tools/hooks/acpi-override failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-60-generic with 1.
Did you do the update with

Code: Select all

sudo update-initramfs -u
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
dpbe
Level 1
Level 1
Posts: 5
Joined: Sun Jan 10, 2021 11:46 am

Re: [SOLVED] initramfs unpacking failed: Decoding failed

Post by dpbe »

LanceM wrote:
Tue Jan 12, 2021 3:58 pm
Did you do the update with

Code: Select all

sudo update-initramfs -u
Yes, the error messages occur when updating initramfs...
User avatar
LanceM
Level 11
Level 11
Posts: 3526
Joined: Sun Jul 08, 2018 11:50 pm

Re: [SOLVED] initramfs unpacking failed: Decoding failed

Post by LanceM »

dpbe wrote:
Tue Jan 12, 2021 4:30 pm
LanceM wrote:
Tue Jan 12, 2021 3:58 pm
Did you do the update with

Code: Select all

sudo update-initramfs -u
Yes, the error messages occur when updating initramfs...
You might try one or both of the suggestions here: viewtopic.php?t=230967
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
dpbe
Level 1
Level 1
Posts: 5
Joined: Sun Jan 10, 2021 11:46 am

Re: [SOLVED] initramfs unpacking failed: Decoding failed

Post by dpbe »

LanceM wrote:
Tue Jan 12, 2021 5:28 pm
You might try one or both of the suggestions here: viewtopic.php?t=230967
Thanks, but I get the same error... Here is an explanation, but no solution...
https://bugs.launchpad.net/ubuntu/+sour ... ug/1892035
User avatar
LanceM
Level 11
Level 11
Posts: 3526
Joined: Sun Jul 08, 2018 11:50 pm

Re: [SOLVED] initramfs unpacking failed: Decoding failed

Post by LanceM »

dpbe wrote:
Wed Jan 13, 2021 2:02 pm
LanceM wrote:
Tue Jan 12, 2021 5:28 pm
You might try one or both of the suggestions here: viewtopic.php?t=230967
Thanks, but I get the same error... Here is an explanation, but no solution...
https://bugs.launchpad.net/ubuntu/+sour ... ug/1892035
Did you try going back to lz4? Do you have a Timeshift restore snapshot?
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
inot12
Level 1
Level 1
Posts: 1
Joined: Thu Jan 14, 2021 11:55 am

Re: [SOLVED] initramfs unpacking failed: Decoding failed

Post by inot12 »

Solution that worked for me:

Recently installed MATE 20 and the message showed during first boot session. Immediately after that I applied the proprietary graphics driver through Driver Manager. A reboot or two later I noticed that the message was gone.

Today I updated the kernel and the message showed up again. I tried to reapply the proprietary graphics driver and the message was gone:

Apply open source driver.
Reboot.
Reapply proprietary driver.
Reboot.

cat /etc/initramfs-tools/initramfs.conf still shows COMPRESS=lz4.

Hope this helps.
dpbe
Level 1
Level 1
Posts: 5
Joined: Sun Jan 10, 2021 11:46 am

Re: [SOLVED] initramfs unpacking failed: Decoding failed

Post by dpbe »

LanceM wrote:
Wed Jan 13, 2021 2:47 pm
Did you try going back to lz4? Do you have a Timeshift restore snapshot?
Yes, I went back to lz4. I did a fresh install of LM 20 and right after the install the message appeared so I have no snapshot to restore.

I created an empty file and put it at /var/lib/acpi-override/
The error is gone now but I don't know if something is corrupt now. In this bug the submitter says the script tries to copy files from a directory but there is nothing to copy and so the error message will appear. By creating the empty file this error is skipped and the script will finish.
https://bugs.launchpad.net/ubuntu/+sour ... ug/1892035
inot12 wrote:
Thu Jan 14, 2021 12:18 pm
Solution that worked for me:

Apply open source driver.
Reboot.
Reapply proprietary driver.
Reboot.

Hope this helps.
That did not work for me. I am using an Nvidia graphics card which is somehow problematic to install in LM, so I won't touch the video driver anymore.
User avatar
LanceM
Level 11
Level 11
Posts: 3526
Joined: Sun Jul 08, 2018 11:50 pm

Re: [SOLVED] initramfs unpacking failed: Decoding failed

Post by LanceM »

Clean install using Edge iso Mint 20.1 Cinnamon, I am not getting the error even after today's kernel 5.8 updates with lz4.

Code: Select all

sudo cat /etc/initramfs-tools/initramfs.conf
Returns

Code: Select all

# COMPRESS: [ gzip | bzip2 | lz4 | lzma | lzop | xz ]
#

COMPRESS=1z4
And

Code: Select all

lance@LM:~$ dmesg -l emerg,alert,crit,err
lance@LM:~$ 
However both my other systems that were upgraded from Mint 20 to 20.1 have the error with

Code: Select all

 lz4
I may try going with 5.8 kernel on one of them to see.
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
User avatar
LanceM
Level 11
Level 11
Posts: 3526
Joined: Sun Jul 08, 2018 11:50 pm

Re: [SOLVED] initramfs unpacking failed: Decoding failed

Post by LanceM »

I may try going with 5.8 kernel on one of them to see.
Well, I tried it with the newest 5.8 Kernel in Update Manager on the upgraded 20.0 to 20.1 Cinnamon, and with lz4 the error is still there. I put it back with Timeshift to Kernel 5.4 and gzip with Timeshift.
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
Alb673
Level 1
Level 1
Posts: 26
Joined: Thu Dec 24, 2015 10:06 am

Re: [SOLVED] initramfs unpacking failed: Decoding failed

Post by Alb673 »

Had similar issue,. Thanks Kadaitcha Man for the solution :D
Post Reply

Return to “Installation & Boot”