Installed initramfs tools package post installation script subprocess returned error exit status 1

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. Atte...

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:

sudo apt purge *5.0.0-15* *4.18.0-17* *4.13.0-45* 
#check carefully that it's not removing anything you need though, this is a hammer to crack a nut

ls -al /lib/modules 
# which revealed lots of old module folders that I removed with ...
sudo rm -rf /lib/modules/4.* 
# and similarly for the 5.0.0-15 modules

Then I did:

ls -al /usr/src/ 
# which again showed old source trees that I pruned with
sudo rm -rf sudo rm -rf /usr/src/linux-headers-4.*

Then I did:

locate -e 4.13.0 
# which found old kernel files in
ls -al /var/lib/initramfs-tools/ 
# so I removed with
sudo rm -rf /var/lib/initramfs-tools/4*

I have problems with a very tight /boot folder for historical reasons and so removed old kernel files with:

sudo rm -i /boot/**4* 
# and similar for all but my current and next oldest kernels
# -i is interactive mode so you have to answer 'y' to remove
# that's a really useful safety check, 'sudo rm' is a dangerous tool!

Finally I ran:

sudo apt -f install

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:

Start-Date: 2019-07-01  17:59:10
Commandline: /usr/bin/unattended-upgrade
Upgrade: linux-tools-common:amd64 (4.15.0-52.56, 4.15.0-54.58)
End-Date: 2019-07-01  17:59:16

Start-Date: 2019-07-01  17:59:22
Commandline: /usr/bin/unattended-upgrade
Install: linux-image-5.0.0-20-generic:amd64 (5.0.0-20.21~18.04.1, automatic), linux-modules-extra-5.0.0-20-generic:amd64 (5.0.0-20.21~18.04.1, automatic), linux-modules-5.0.0-20-generic:amd64 (5.0.0-20.21~18.04.1, automatic)
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)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2019-07-01  18:00:10

But this may be a false flag as for me the limited /boot space can be the cause of the error code (1).

Содержание

  1. Ошибка initramfs при установке / обновлении
  2. 14 ответов
  3. Linux Mint Forums
  4. [SOLVED] Generic package post-installation script subprocess returned error exit status 1
  5. [SOLVED] Generic package post-installation script subprocess returned error exit status 1
  6. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  7. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  8. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  9. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  10. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  11. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  12. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  13. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  14. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  15. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  16. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  17. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  18. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  19. Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″
  20. [SOLVED] Updating 7.1-3 to 7.1-7 ends with error processing package initramfs-tools (—configure)
  21. bwdavis
  22. Linux Mint Forums
  23. initramfs-tools error
  24. initramfs-tools error
  25. Re: initramfs-tools error
  26. Re: initramfs-tools error
  27. Re: initramfs-tools error
  28. Re: initramfs-tools error
  29. Linux Mint Forums
  30. [SOLVED]initramfs-tools and dpkg error while installing Broadcom driver
  31. [SOLVED]initramfs-tools and dpkg error while installing Broadcom driver
  32. Re: initramfs-tools and dpkg error while installing Broadcom driver
  33. Re: initramfs-tools and dpkg error while installing Broadcom driver

Ошибка initramfs при установке / обновлении

У меня возникла ошибка при обновлении или запуске любого apt Команда на неделю или около того. Обновление до LTS 18.04 не разрешило его и не удалило все старые ядра. Космос тоже не проблема.

Попытка переустановить initramfs не работает Я получаю ошибку:

У кого-нибудь есть идеи относительно того, что я могу сделать?

14 ответов

Запуск автоматического удаления и очистки работал в моей ситуации.

apt-get auto-remove && apt-get clean && apt-get update && apt-get upgrade

Для меня это была проблема с пакетом initramfs-tools

Я только что сделал:

Тогда я больше не получал ошибку

У меня эта ошибка была больше года. Теперь я нашел решение.

Объяснение: /boot находится на другом разделе, на котором недостаточно места для выполнения операции. Решение: выполните обновление на диске, на котором достаточно места, и скопируйте результаты.

Как указал Харальд, проблема заключалась в нехватке места в разделе / ​​boot.

Его решение не сработало для меня, но привело меня непосредственно к тому, что сработало:

cd /boot , тогда ls чтобы посмотреть версии уже имеющихся файлов. затем rm каждый файл, имеющий несколько версий, обязательно удалите все, кроме самой новой, затем sudo apt update

Похожий вопрос имеет такое решение:

Дополнительно убедитесь, что эта команда:

возвращает этот вывод:

Это было для меня решением.

У меня только что была очень похожая проблема, когда я делал sudo apt autoremove и не удалось установить файлы ядра для ядра, которого у меня нет. мой uname -a показывает, что я использую ядро ​​версии 5.0.0-20 и работает ls -al /boot показывает только это и ядро ​​5.0.0-17 установлено. Тем не мение, apt неожиданно обнаружил ошибки и попытался установить файлы в моем /boot для старых ядер, включая 5.0.0-15, 4.18.0-17, 4.13.0-45. Что странно.

Поэтому я полагаю, что каким-то образом они изменили логику dkms (или что-то, связанное с initramfs ) и проверяет некоторые другие местоположения, чтобы увидеть, могут ли быть установлены ядра, а затем выполняет обновления этих ядер и заменяет отсутствующие файлы.

Я не уверен, что именно это исправить, но я сделал:

У меня проблемы с очень туго /boot папка по историческим причинам и поэтому удалила старые файлы ядра с:

Наконец я побежал:

Что закончилось, как ожидалось, и вернуло систему в ожидаемое состояние, не пытаясь установить посторонние ядра. Я не проверял, как я пошел, поэтому не могу гарантировать, какая часть исправила это, но это не было вредным, чтобы очистить эти старые файлы из AFAICT.

Помимо проверки моего /var/log/apt/history.log файл, это, кажется, начало этой конкретной ошибки:

Но это может быть ложным флагом, так как для меня ограниченное / загрузочное пространство может быть причиной error code (1) ,

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

[SOLVED] Generic package post-installation script subprocess returned error exit status 1

[SOLVED] Generic package post-installation script subprocess returned error exit status 1

Post by hedgehoggy » Tue Oct 19, 2021 11:34 am

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by sleeper12 » Tue Oct 19, 2021 12:07 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by hedgehoggy » Tue Oct 19, 2021 12:16 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by sleeper12 » Tue Oct 19, 2021 12:22 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by hedgehoggy » Tue Oct 19, 2021 12:24 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by sleeper12 » Tue Oct 19, 2021 12:31 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by hedgehoggy » Tue Oct 19, 2021 12:33 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by rene » Tue Oct 19, 2021 12:47 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by hedgehoggy » Tue Oct 19, 2021 12:49 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by sleeper12 » Tue Oct 19, 2021 12:56 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by rene » Tue Oct 19, 2021 1:00 pm

Well, no, that would not be better. And, arr, crap, yes, it would have that issue; that reinstall triggers the very same postinst. And as far as I can quickly find you can’t in fact skip that postinst either. Typically apt.

It was in any case not likely and especially given your equal CRC32. Err, arr, let me think.

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by hedgehoggy » Tue Oct 19, 2021 1:00 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by hedgehoggy » Tue Oct 19, 2021 1:01 pm

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by rene » Tue Oct 19, 2021 1:11 pm

Plymouth is the splash screen, and it fails to install onto the initramfs. But what type exactly.

It’s going to be the set -e in /usr/share/initramfs-tools/hooks/plymouth that has the script exit after «something else» bugs out but unfortunately we don’t get t see what said something else in fact is, making this hard to pin down non-locally.

Are you at all script-savvy? If I’d have had this issue I’d start instrumenting /usr/share/initramfs-tools/hooks/plymouth by e.g. putting «echo 1» (and 2,3,4, . so on) statements before every if, for and case statement to see where it fails.

Re: Update problem: » . . . generic package post-installation script subprocess returned error exit status 1″

Post by hedgehoggy » Tue Oct 19, 2021 1:18 pm

Источник

[SOLVED] Updating 7.1-3 to 7.1-7 ends with error processing package initramfs-tools (—configure)

bwdavis

Member

I can’t get the upgrade to finish, it ends:

Setting up initramfs-tools (0.140) .
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.140) .
update-initramfs: Generating /boot/initrd.img-5.13.19-6-pve
/etc/initramfs/post-update.d//proxmox-boot-sync: 10: /usr/sbin/proxmox-boot-tool: not found
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 127
dpkg: error processing package initramfs-tools (—configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is not a proxmox image installation, it is a package installation running on a linode VM.

Can anyone help me? I have two other nodes but do not want to proceed until this is working.
Thanks
Bruce

OK additional information: My other two nodes both updated without error. The node that will not finish the upgrade command, we installed PMG from packages and so it is not exactly the same as the two on-site nodes, see below:

Installed from Proxmox image:
master node : Kernel Version Linux 5.15.53-1-pve #1 SMP PVE 5.15.53-1 (Fri, 26 Aug 2022 16:53:52 +0200)
slave node 1 : Kernel Version Linux 5.15.53-1-pve #1 SMP PVE 5.15.53-1 (Fri, 26 Aug 2022 16:53:52 +0200)

Installed from Packages:
Kernel Version Linux 5.13.19-6-pve #1 SMP PVE 5.13.19-15 (Tue, 29 Mar 2022 15:59:50 +0200)

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

initramfs-tools error

Post by FKC » Sat Aug 04, 2018 6:16 pm

Hello everyone!
I’m using mint 19 for some weeks by now and recently an error is occurring whenever I install or uninstall a package:
E: initramfs-tools: installed initramfs-tools package post-installation script subprocess returned error exit status 1

Does anyone know how to fix this?

Re: initramfs-tools error

Post by FKC » Fri Aug 10, 2018 11:50 pm

Re: initramfs-tools error

Post by Sir Charles » Sat Aug 11, 2018 4:07 am

Re: initramfs-tools error

Post by FKC » Sat Aug 11, 2018 1:31 pm

Re: initramfs-tools error

Post by Sir Charles » Sat Aug 11, 2018 2:29 pm

As I suspected, your boot partition is rather full. You would need to remove some of the older unused kernels from your system. Open Update Manager > View > Linux kernels. Click on 4.15.0-20 and then on the remove button. Repeat this for 4.15.0-24. Keep 4.15.0-29 to have one in reserve.This should free some space in your /boot.

Next, try installing the package you wanted to install before and see if it works now.

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

[SOLVED]initramfs-tools and dpkg error while installing Broadcom driver

Post by scusa » Tue Nov 24, 2020 3:34 am

Apologies if I have chosen the wrong section to post this query, as you can see, I am very new to Linux environment and the Linux Mint forums. I finally made the jump to Linux Mint from Windows 10 about 3 weeks back and I regret not having done it earlier. All was good and I was learning with usage till last night when I got a prompt from ‘Update Centre’ and upgraded some components including the Kernel. The Broadcom wireless drivers stopped working this morning(first boot after upgrade) and I tried everything to fix it but to no avail.

1) During graphical install of BCM43142 using ‘ Driver Manager‘, I run into this every time:

pk-client-error-quark: Error while installing package: installed bcmwl-kernel-source package post-installation script subprocess returned error exit status 10 (313)

2) Tried running: dpkg —configure -a

5) Finally, I tried installing initramfs-tools itself.

Any help in resolving the issue will be highly appreciated. Thank you for taking the time out to go through the issue I posted.

P.S: Tried dpkg —configure -a —force-depends as well, not fixing the issue.

Re: initramfs-tools and dpkg error while installing Broadcom driver

Post by sleeper12 » Tue Nov 24, 2020 12:38 pm

Re: initramfs-tools and dpkg error while installing Broadcom driver

Post by scusa » Wed Nov 25, 2020 2:50 am

Hi Sleeper12, thank you very much for replying. I did run it with sudo, just forgot to mention that here. BTW, managed to solve it. Turns out that the issue was wrt free space available in /boot partition. The free space available was autoremove and autoclean:

«sudo apt purge linux-headers-* linux-headers-*-generic linux-image-*-generic linux-image-extra-*-generic linux-signed-image-*-generic» — where * is the version number. So, if the kernel is 5.4.0-26, then the command will look like- sudo apt purge linux-headers-5.4.0-26 linux-headers-5.4.0-26-generic linux-image-5.4.0-26-generic linux-image-extra-5.4.0-26-generic linux-signed-image-5.4.0-26-generic

I know it’s not a good idea to tamper with it manually, but it was the only way I could free up some space and solve the issue. All dpkg and initramfs-tools related issues resolved after this. However, «pk-client-error-quark: Error while installing package: installed bcmwl-kernel-source package post-installation script subprocess returned error exit status 10 (313)» this error continued during graphical install. Here’s what I did: —

(a) sudo apt purge *broadcom*
(b) sudo apt purge *bcmwl*
(c) sudo apt install broadcom-sta-dkms
(d) Restart system

Solved the issue of BCM43142 wireless adapter not functioning in my Mint system.

Источник

Lot of output here, not sure if it’s all relevant. Still appear to be getting error message:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'plymouth-theme-sabily' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-mate-text' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-budgie-text' for glob 'plymouth-*'
Note, selecting 'plymouth-themes' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-kubuntu-text' for glob 'plymouth-*'
Note, selecting 'plymouth-theme' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-lubuntu-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-label' for glob 'plymouth-*'
Note, selecting 'plymouth-themes-script' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-lubuntu-next-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-xubuntu-text' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-text' for glob 'plymouth-*'
Note, selecting 'plymouth-themes-spinfinity' for glob 'plymouth-*'
Note, selecting 'plymouth-themes-solar' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-gnome-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-dev' for glob 'plymouth-*'
Note, selecting 'plymouth-drm' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-mate-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-budgie-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-themes-all' for glob 'plymouth-*'
Note, selecting 'plymouth-themes-glow' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-edubuntu' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-spinner' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-hamara' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-kubuntu-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-lubuntu-text' for glob 'plymouth-*'
Note, selecting 'plymouth-themes-fade-in' for glob 'plymouth-*'
Note, selecting 'plymouth-disabler' for glob 'plymouth-*'
Note, selecting 'plymouth-themes-spinner' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntustudio' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-lubuntu-next-text' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-breeze' for glob 'plymouth-*'
Note, selecting 'plymouth-x11' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-xubuntu-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-gnome-text' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-sabily-text' for glob 'plymouth-*'
Note, selecting 'plymouth-themes' instead of 'plymouth-themes-all'
Note, selecting 'plymouth-themes' instead of 'plymouth-themes-fade-in'
Note, selecting 'plymouth-themes' instead of 'plymouth-themes-glow'
Note, selecting 'plymouth-themes' instead of 'plymouth-themes-script'
Note, selecting 'plymouth-themes' instead of 'plymouth-themes-solar'
Note, selecting 'plymouth-themes' instead of 'plymouth-themes-spinfinity'
Note, selecting 'plymouth-themes' instead of 'plymouth-themes-spinner'
The following additional packages will be installed:
  grub2-themes-ubuntustudio
Suggested packages:
  gdm
The following NEW packages will be installed:
  grub2-themes-ubuntustudio plymouth-disabler plymouth-theme-breeze plymouth-theme-edubuntu plymouth-theme-hamara plymouth-theme-kubuntu-logo plymouth-theme-kubuntu-text
  plymouth-theme-lubuntu-logo plymouth-theme-lubuntu-text plymouth-theme-sabily plymouth-theme-sabily-text plymouth-theme-spinner plymouth-theme-ubuntu-budgie-logo
  plymouth-theme-ubuntu-budgie-text plymouth-theme-ubuntu-gnome-logo plymouth-theme-ubuntu-gnome-text plymouth-theme-ubuntu-logo plymouth-theme-ubuntu-mate-logo
  plymouth-theme-ubuntu-mate-text plymouth-theme-ubuntustudio plymouth-theme-xubuntu-logo plymouth-theme-xubuntu-text plymouth-themes plymouth-x11
0 upgraded, 24 newly installed, 2 reinstalled, 0 to remove and 8 not upgraded.
2 not fully installed or removed.
Need to get 4,573 kB of archives.
After this operation, 8,160 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://packages.linuxmint.com uma/upstream amd64 plymouth-label amd64 0.9.4+mint2+ulyssa [42.9 kB]
Get:2 http://ubuntu.mirror.constant.com focal/universe amd64 grub2-themes-ubuntustudio all 0.3 [21.2 kB]
Get:3 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-disabler all 0.1 [3,098 B]
Get:4 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-breeze amd64 5.18.4.1-0ubuntu1 [71.9 kB]
Get:5 http://packages.linuxmint.com uma/upstream amd64 plymouth-theme-spinner amd64 0.9.4+mint2+ulyssa [203 kB]
Get:6 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-edubuntu all 15.12.1 [43.0 kB]
Get:7 http://packages.linuxmint.com uma/upstream amd64 plymouth-theme-ubuntu-logo amd64 0.9.4+mint2+ulyssa [135 kB]
Get:8 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-hamara all 1.0 [299 kB] 
Get:9 http://packages.linuxmint.com uma/upstream amd64 plymouth-theme-ubuntu-text amd64 0.9.4+mint2+ulyssa [45.9 kB]
Get:10 http://packages.linuxmint.com uma/upstream amd64 plymouth-themes amd64 0.9.4+mint2+ulyssa [666 kB]
Get:11 http://packages.linuxmint.com uma/upstream amd64 plymouth-x11 amd64 0.9.4+mint2+ulyssa [44.7 kB]
Get:12 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-kubuntu-logo all 1:20.04.9 [37.2 kB]
Get:13 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-kubuntu-text all 1:20.04.9 [4,456 B]
Get:14 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-lubuntu-logo all 20.04.3 [26.1 kB]
Get:15 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-lubuntu-text all 20.04.3 [3,712 B]
Get:16 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-sabily all 1.3 [1,760 kB]
Get:17 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-sabily-text all 1.3 [9,776 B]
Get:18 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-ubuntu-budgie-logo all 0.12.3 [33.3 kB]
Get:19 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-ubuntu-budgie-text all 0.12.3 [10.1 kB]
Get:20 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-ubuntu-gnome-logo all 20.04.1 [88.8 kB]
Get:21 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-ubuntu-gnome-text all 20.04.1 [10.0 kB]
Get:22 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-ubuntu-mate-logo all 20.04.2 [38.7 kB]
Get:23 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-ubuntu-mate-text all 20.04.2 [15.3 kB]
Get:24 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-ubuntustudio all 20.04.1 [926 kB]
Get:25 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-xubuntu-logo all 20.04.2 [23.4 kB]
Get:26 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-xubuntu-text all 20.04.2 [10.8 kB]
Fetched 4,573 kB in 1s (3,902 kB/s)                      
Selecting previously unselected package grub2-themes-ubuntustudio.
(Reading database ... 368884 files and directories currently installed.)
Preparing to unpack .../00-grub2-themes-ubuntustudio_0.3_all.deb ...
Unpacking grub2-themes-ubuntustudio (0.3) ...
Selecting previously unselected package plymouth-disabler.
Preparing to unpack .../01-plymouth-disabler_0.1_all.deb ...
Unpacking plymouth-disabler (0.1) ...
Preparing to unpack .../02-plymouth-label_0.9.4+mint2+ulyssa_amd64.deb ...
Unpacking plymouth-label (0.9.4+mint2+ulyssa) over (0.9.4+mint2+ulyssa) ...
Selecting previously unselected package plymouth-theme-breeze.
Preparing to unpack .../03-plymouth-theme-breeze_5.18.4.1-0ubuntu1_amd64.deb ...
Unpacking plymouth-theme-breeze (5.18.4.1-0ubuntu1) ...
Selecting previously unselected package plymouth-theme-edubuntu.
Preparing to unpack .../04-plymouth-theme-edubuntu_15.12.1_all.deb ...
Unpacking plymouth-theme-edubuntu (15.12.1) ...
Selecting previously unselected package plymouth-theme-hamara.
Preparing to unpack .../05-plymouth-theme-hamara_1.0_all.deb ...
Unpacking plymouth-theme-hamara (1.0) ...
Selecting previously unselected package plymouth-theme-kubuntu-logo.
Preparing to unpack .../06-plymouth-theme-kubuntu-logo_1%3a20.04.9_all.deb ...
Unpacking plymouth-theme-kubuntu-logo (1:20.04.9) ...
Selecting previously unselected package plymouth-theme-kubuntu-text.
Preparing to unpack .../07-plymouth-theme-kubuntu-text_1%3a20.04.9_all.deb ...
Unpacking plymouth-theme-kubuntu-text (1:20.04.9) ...
Selecting previously unselected package plymouth-theme-lubuntu-logo.
Preparing to unpack .../08-plymouth-theme-lubuntu-logo_20.04.3_all.deb ...
Unpacking plymouth-theme-lubuntu-logo (20.04.3) ...
Selecting previously unselected package plymouth-theme-lubuntu-text.
Preparing to unpack .../09-plymouth-theme-lubuntu-text_20.04.3_all.deb ...
Unpacking plymouth-theme-lubuntu-text (20.04.3) ...
Selecting previously unselected package plymouth-theme-sabily.
Preparing to unpack .../10-plymouth-theme-sabily_1.3_all.deb ...
Unpacking plymouth-theme-sabily (1.3) ...
Selecting previously unselected package plymouth-theme-sabily-text.
Preparing to unpack .../11-plymouth-theme-sabily-text_1.3_all.deb ...
Unpacking plymouth-theme-sabily-text (1.3) ...
Selecting previously unselected package plymouth-theme-spinner.
Preparing to unpack .../12-plymouth-theme-spinner_0.9.4+mint2+ulyssa_amd64.deb ...
Unpacking plymouth-theme-spinner (0.9.4+mint2+ulyssa) ...
Selecting previously unselected package plymouth-theme-ubuntu-budgie-logo.
Preparing to unpack .../13-plymouth-theme-ubuntu-budgie-logo_0.12.3_all.deb ...
Unpacking plymouth-theme-ubuntu-budgie-logo (0.12.3) ...
Selecting previously unselected package plymouth-theme-ubuntu-budgie-text.
Preparing to unpack .../14-plymouth-theme-ubuntu-budgie-text_0.12.3_all.deb ...
Unpacking plymouth-theme-ubuntu-budgie-text (0.12.3) ...
Selecting previously unselected package plymouth-theme-ubuntu-gnome-logo.
Preparing to unpack .../15-plymouth-theme-ubuntu-gnome-logo_20.04.1_all.deb ...
Unpacking plymouth-theme-ubuntu-gnome-logo (20.04.1) ...
Selecting previously unselected package plymouth-theme-ubuntu-gnome-text.
Preparing to unpack .../16-plymouth-theme-ubuntu-gnome-text_20.04.1_all.deb ...
Unpacking plymouth-theme-ubuntu-gnome-text (20.04.1) ...
Selecting previously unselected package plymouth-theme-ubuntu-logo.
Preparing to unpack .../17-plymouth-theme-ubuntu-logo_0.9.4+mint2+ulyssa_amd64.deb ...
Unpacking plymouth-theme-ubuntu-logo (0.9.4+mint2+ulyssa) ...
Selecting previously unselected package plymouth-theme-ubuntu-mate-logo.
Preparing to unpack .../18-plymouth-theme-ubuntu-mate-logo_20.04.2_all.deb ...
Unpacking plymouth-theme-ubuntu-mate-logo (20.04.2) ...
Selecting previously unselected package plymouth-theme-ubuntu-mate-text.
Preparing to unpack .../19-plymouth-theme-ubuntu-mate-text_20.04.2_all.deb ...
Unpacking plymouth-theme-ubuntu-mate-text (20.04.2) ...
Preparing to unpack .../20-plymouth-theme-ubuntu-text_0.9.4+mint2+ulyssa_amd64.deb ...
Unpacking plymouth-theme-ubuntu-text (0.9.4+mint2+ulyssa) over (0.9.4+mint2+ulyssa) ...
Selecting previously unselected package plymouth-theme-ubuntustudio.
Preparing to unpack .../21-plymouth-theme-ubuntustudio_20.04.1_all.deb ...
Unpacking plymouth-theme-ubuntustudio (20.04.1) ...
Selecting previously unselected package plymouth-theme-xubuntu-logo.
Preparing to unpack .../22-plymouth-theme-xubuntu-logo_20.04.2_all.deb ...
Unpacking plymouth-theme-xubuntu-logo (20.04.2) ...
Selecting previously unselected package plymouth-theme-xubuntu-text.
Preparing to unpack .../23-plymouth-theme-xubuntu-text_20.04.2_all.deb ...
Unpacking plymouth-theme-xubuntu-text (20.04.2) ...
Selecting previously unselected package plymouth-themes.
Preparing to unpack .../24-plymouth-themes_0.9.4+mint2+ulyssa_amd64.deb ...
Unpacking plymouth-themes (0.9.4+mint2+ulyssa) ...
Selecting previously unselected package plymouth-x11.
Preparing to unpack .../25-plymouth-x11_0.9.4+mint2+ulyssa_amd64.deb ...
Unpacking plymouth-x11 (0.9.4+mint2+ulyssa) ...
Setting up plymouth-theme-hamara (1.0) ...
Setting up plymouth-theme-breeze (5.18.4.1-0ubuntu1) ...
Setting up plymouth-disabler (0.1) ...
Setting up initramfs-tools (0.136ubuntu6.6) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-x11 (0.9.4+mint2+ulyssa) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-5.4.0-89-generic (5.4.0-89.100) ...
Setting up grub2-themes-ubuntustudio (0.3) ...
Setting up plymouth-theme-ubuntu-text (0.9.4+mint2+ulyssa) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-ubuntu-mate-text (20.04.2) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-xubuntu-text (20.04.2) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-kubuntu-text (1:20.04.9) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-label (0.9.4+mint2+ulyssa) ...
Setting up plymouth-theme-lubuntu-text (20.04.3) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-kubuntu-logo (1:20.04.9) ...
update-initramfs: deferring update (trigger activated)
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-89-generic
Found linux image: /boot/vmlinuz-5.4.0-88-generic
Found initrd image: /boot/initrd.img-5.4.0-88-generic
Found linux image: /boot/vmlinuz-5.4.0-74-generic
Found initrd image: /boot/initrd.img-5.4.0-74-generic
Adding boot menu entry for UEFI Firmware Settings
done
Setting up plymouth-theme-ubuntu-budgie-text (0.12.3) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-ubuntustudio (20.04.1) ...
update-alternatives: using /usr/share/plymouth/themes/ubuntustudio-logo/ubuntustudio-logo.plymouth to provide /usr/share/plymouth/themes/default.plymouth (default.plymouth) in manual mode
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-ubuntu-mate-logo (20.04.2) ...
FRAMEBUFFER=y
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-edubuntu (15.12.1) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-ubuntu-budgie-logo (0.12.3) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-ubuntu-gnome-text (20.04.1) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-sabily-text (1.3) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-lubuntu-logo (20.04.3) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-xubuntu-logo (20.04.2) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-sabily (1.3) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-ubuntu-logo (0.9.4+mint2+ulyssa) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-ubuntu-gnome-logo (20.04.1) ...
update-initramfs: deferring update (trigger activated)
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-89-generic
Found linux image: /boot/vmlinuz-5.4.0-88-generic
Found initrd image: /boot/initrd.img-5.4.0-88-generic
Found linux image: /boot/vmlinuz-5.4.0-74-generic
Found initrd image: /boot/initrd.img-5.4.0-74-generic
Adding boot menu entry for UEFI Firmware Settings
done
Setting up plymouth-theme-spinner (0.9.4+mint2+ulyssa) ...
update-initramfs: deferring update (trigger activated)
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-89-generic
Found linux image: /boot/vmlinuz-5.4.0-88-generic
Found initrd image: /boot/initrd.img-5.4.0-88-generic
Found linux image: /boot/vmlinuz-5.4.0-74-generic
Found initrd image: /boot/initrd.img-5.4.0-74-generic
Adding boot menu entry for UEFI Firmware Settings
done
Setting up plymouth-themes (0.9.4+mint2+ulyssa) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.136ubuntu6.6) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-88-generic
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-88-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.4.0-89-generic (5.4.0-89.100) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.0-89-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-89-generic
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-89-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.4.0-89-generic (--configure):
 installed linux-image-5.4.0-89-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
 linux-image-5.4.0-89-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

  • #1

I can’t get the upgrade to finish, it ends:

Setting up initramfs-tools (0.140) …
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.140) …
update-initramfs: Generating /boot/initrd.img-5.13.19-6-pve
/etc/initramfs/post-update.d//proxmox-boot-sync: 10: /usr/sbin/proxmox-boot-tool: not found
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 127
dpkg: error processing package initramfs-tools (—configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is not a proxmox image installation, it is a package installation running on a linode VM.

Can anyone help me? I have two other nodes but do not want to proceed until this is working.
Thanks
Bruce

OK additional information: My other two nodes both updated without error. The node that will not finish the upgrade command, we installed PMG from packages and so it is not exactly the same as the two on-site nodes, see below:

Installed from Proxmox image:
master node : Kernel Version Linux 5.15.53-1-pve #1 SMP PVE 5.15.53-1 (Fri, 26 Aug 2022 16:53:52 +0200)
slave node 1 : Kernel Version Linux 5.15.53-1-pve #1 SMP PVE 5.15.53-1 (Fri, 26 Aug 2022 16:53:52 +0200)

Installed from Packages:
Kernel Version Linux 5.13.19-6-pve #1 SMP PVE 5.13.19-15 (Tue, 29 Mar 2022 15:59:50 +0200)

The PVE 5.13.19-15 Version is installed on a Linode VM out on the internet, but I don’t think that is the problem. The problems seems to be proxmox-boot-tool: not found or run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 127. The nodes are all upgraded now, and they are all showing synched and running. I am afraid that this version will not be able to upgrade further until I get this failure corrected. I don’t really know where to look.

Thanks
Bruce

Last edited: Oct 3, 2022

fiona

fiona

Proxmox Staff Member


  • #2

Hi,
the pve-kernel-helper package contains the proxmox-boot-tool binary. Please ensure that it is installed correctly. It is a dependency of the proxmox-mailgateway package. You might want to install that to make sure all dependencies for Proxmox Mail Gateway are pulled in automatically.

  • #3

Hi,
the pve-kernel-helper package contains the proxmox-boot-tool binary. Please ensure that it is installed correctly. It is a dependency of the proxmox-mailgateway package. You might want to install that to make sure all dependencies for Proxmox Mail Gateway are pulled in automatically.

Problem resolved. Installed pve-kernel-helper and upgrade completed cleanly. Many thanks.

Sincerely
Bruce

paxmark1

Posts: 49
Joined: 2008-10-23 05:19
Has thanked: 1 time

Solved: Upgrade has initramfs failure.

#1

Post

by paxmark1 » 2020-08-02 01:12

A few weeks prior to Buster went stable I did a clean lvm install onto a new ssd. /home and all that stayed on the spinning rust on /DATA I have read the info on Planet Debian about the recent point release and also saw the caution for grub2 that was mentioned on Siduction. (I have an old atom netbook on debian sid running wayland and sway.)

Quiet year on Debian stable. The most recent upgrade spit out

[code
p…@dbnbuster:~$ sudo dpkg —configure -a
Setting up initramfs-tools (0.133+deb10u1) …
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.133+deb10u1) …
update-initramfs: Generating /boot/initrd.img-4.19.0-10-amd64

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.19.0-10-amd64 with 1.
dpkg: error processing package initramfs-tools (—configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
[/code]

Code: Select all

df
Filesystem                     1K-blocks      Used Available Use% Mounted on
udev                             5843788         0   5843788   0% /dev
tmpfs                            1174468      1116   1173352   1% /run
/dev/mapper/dbnbuster--vg-root  28703652   9340024  17882516  35% /
tmpfs                            5872332    245880   5626452   5% /dev/shm
tmpfs                               5120         4      5116   1% /run/lock
tmpfs                            5872332         0   5872332   0% /sys/fs/cgroup
/dev/sda1                         240972    197909     30622  87% /boot
/dev/mapper/dbnbuster--vg-home 438705664  83713752 332637176  21% /home
/dev/mapper/raunes--vg-home    336341160  99359728 219873260  32% /home2
/dev/mapper/raunes--vg-DATA    950152924 424762436 477055640  48% /DATA
tmpfs                            1174464        32   1174432   1% /run/user/1000
/dev/sdd1                       15835080        32  15835048   1% /media/paxmark/USB20FD

I did do journalctl —vacuum-size=0.6G and apt autolclean — all via sudo. after this happened.

I could review how to scroll backwards in tmux to get the original error message.

Pretty dull repos and not utilizing backports much. Virtuabox and Spideroak. I also use the binary from expressvpn.

Code: Select all

inxi -br
System:    Host: dbnbuster Kernel: 4.19.0-9-amd64 x86_64 bits: 64 Desktop: LXQt 0.14.1 Distro: Debian GNU/Linux 10 (buster) 
Machine:   Type: Desktop System: Gigabyte product: H81M-S2H GSM v: N/A serial: <root required> 
           Mobo: Gigabyte model: H81M-S2H GSM v: x.x serial: <root required> BIOS: American Megatrends v: F2 date: 08/11/2015 
CPU:       Dual Core: Intel Core i3-4170 type: MT MCP speed: 798 MHz min/max: 800/3700 MHz 
Graphics:  Device-1: Intel 4th Generation Core Processor Family Integrated Graphics driver: i915 v: kernel 
           Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel Haswell v: 4.5 Mesa 18.3.6 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           Device-2: Ralink RT5372 Wireless Adapter type: USB driver: rt2800usb 
Drives:    Local Storage: total: 2.30 TiB used: 588.90 GiB (25.0%) 
Repos:     Active apt repos in: /etc/apt/sources.list 
           1: deb http://debian.mirror.rafal.ca/debian/ buster main non-free contrib
           2: deb-src http://debian.mirror.rafal.ca/debian/ buster main non-free contrib
           3: deb http://security.debian.org/debian-security buster/updates main contrib non-free
           4: deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
           5: deb http://download.virtualbox.org/virtualbox/debian bionic contrib
           Active apt repos in: /etc/apt/sources.list.d/spideroakone.list 
           1: deb https://apt.spideroak.com/ubuntu/ release restricted
Info:      Processes: 232 Uptime: 12d 10h 20m Memory: 11.20 GiB used: 3.19 GiB (28.5%) Shell: bash inxi: 3.0.32 

I did look at BTS for initrmafs Only semi-recent thing that caught my eye was #962509 — but does not look like my problem.

TIA

Last edited by paxmark1 on 2020-08-03 02:26, edited 1 time in total.



Dai_trying

Posts: 1013
Joined: 2016-01-07 12:25
Has thanked: 2 times
Been thanked: 5 times

Re: Upgrade has initramfs failure.

#3

Post

by Dai_trying » 2020-08-02 07:53

I notice you do not have a lot of space in /boot/ which might be a cause as my initrd.img files are 62Mb (which are in /boot/ and maybe there is not enough room to put another one there. You could try removing your oldest kernel(s) to see if that clears it up.




p.H

Section Moderator
Section Moderator
Posts: 3015
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 122 times

Re: Upgrade has initramfs failure.

#6

Post

by p.H » 2020-08-02 10:58

Hallvor wrote:apt autoremove fixes the problem.

Not always. It depend whether at least one kernel is eligible for auto-removal, i.e. there are at least 3 kernels installed.

I agree with Dai_trying : it is better to explain why the problem happens and what must be done to correct it (by any means, including but not limited to autoremove) than just throwing a «magic» command without any explanation.


User avatar

Hallvor

Section Moderator
Section Moderator
Posts: 1674
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 82 times
Been thanked: 111 times

Re: Upgrade has initramfs failure.

#7

Post

by Hallvor » 2020-08-02 11:37

And then some users would remove the wrong kernel.

Users asking for help may do it to learn, others just want their system to work.

A user who was interested in learning would perhaps make an effort and find one of the many threads.

A search on Google for «stdout: No space left on device» gave me 2.000.000 hits…

Assuming that the user just wanted a quick fix was not all that far fetched. ;)


p.H

Section Moderator
Section Moderator
Posts: 3015
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 122 times

Re: Upgrade has initramfs failure.

#8

Post

by p.H » 2020-08-02 11:52

Hallvor wrote:And then some users would remove the wrong kernel.

Why would they remove the wrong kernel ?

Hallvor wrote:Users asking for help may do it to learn, others just want their system to work.

Fine, I am not here for the latter. AFAIK this forum is not a help desk.

Hallvor wrote:A search on Google for «stdout: No space left on device» gave me 2.000.000 hits…

So what ? The first answers seem to address the issue (even though for Ubuntu). Add more keywords such as «Debian» and «initramfs» if you want more specific answers.


User avatar

Hallvor

Section Moderator
Section Moderator
Posts: 1674
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 82 times
Been thanked: 111 times

Re: Upgrade has initramfs failure.

#9

Post

by Hallvor » 2020-08-02 12:56

p.H wrote:
Why would they remove the wrong kernel ?

https://duckduckgo.com/?q=why+do+people … fab&ia=web

Fine, I am not here for the latter. AFAIK this forum is not a help desk.

Fine. Then why did you respond to this thread with the «help desk» question? Why not just ignore it and move on?

This forum is what the users make it, and the OP is certainly no help vampire, so I don’t see the problem; and if you do see a problem with me replying, it wouldn’t be any of your business anyway.

So what?

The point is that the OP could have found the answer himself in a few seconds, and telling him to make a Google search makes more sense than trying to school him about Debian.


p.H

Section Moderator
Section Moderator
Posts: 3015
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 122 times

Re: Upgrade has initramfs failure.

#10

Post

by p.H » 2020-08-02 13:50

Hallvor wrote:Then why did you respond to this thread with the «help desk» question?

What «help desk» question ?

Hallvor wrote:if you do see a problem with me replying, it wouldn’t be any of your business anyway.

I see a problem in your reply claiming that «apt autoremove fixes the problem». It fixed the problem for you, but that does not mean that it fixes the problem for every one in every case. In a recent similar thread, it did not fix the problem.

Whether you like it or not, what you post in a public forum is everyone’s business. If I disagree with what you say, I’ll say it.

Hallvor wrote:The point is that the OP could have found the answer himself in a few seconds

Thanks for clarifying, I did not understand it that way.

Hallvor wrote:telling him to make a Google search makes more sense than trying to school him about Debian.

Whatever it means, I was not trying to «school him about Debian».


User avatar

Hallvor

Section Moderator
Section Moderator
Posts: 1674
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 82 times
Been thanked: 111 times

Re: Upgrade has initramfs failure.

#11

Post

by Hallvor » 2020-08-02 14:05

p.H wrote:
What «help desk» question ?

Take a wild guess.

I see a problem in your reply claiming that «apt autoremove fixes the problem».

The worst case scenario is that it won’t work. The worst case scenario if the OP slips up while manually deleting kernels is much more severe.

As for your thread, that was a dist-upgrade, not this specific point upgrade. There is no comparison.

I guess we’ll have to wait and see of the OP replies to see if it works or not.

Whether you like it or not, what you post in a public forum is everyone’s business. If I disagree with what you say, I’ll say it.

Did I post bad advice? No. So STFU.


paxmark1

Posts: 49
Joined: 2008-10-23 05:19
Has thanked: 1 time

Re: Upgrade has initramfs failure.

#12

Post

by paxmark1 » 2020-08-02 19:25

1. apt autoremove fixed the problem. thanks. /boot is presently at 60% from 87% So if the kernel is 27% that would have taken it up too much. Might fiddle with resizing /boot some day. I guess the kernels are getting bigger.

I do use apt autoremove a bit in sid, but I always check very closely before doing so. This is something that I had not seen since 2016 when I started this new computer with stretch testing. Nor in Siduction or #! on on the amdC-50 — rest in peace.

No, not a vampire. I am more of a small fish in a small pond, I reply to posts ( I did anyway) in the SparkyLinux forum and ask the occasional rare question in Siduction for my wayland sway.

Again thanks.



User avatar

sickpig

Posts: 589
Joined: 2019-01-23 10:34

Re: Upgrade has initramfs failure.

#14

Post

by sickpig » 2020-08-03 00:59

p.H wrote:it is better to explain why the problem happens and what must be done to correct it (by any means, including but not limited to autoremove) than just throwing a «magic» command without any explanation.

very true, explanations are quite helpful in making the readers understand how to prevent such issues if they come across them. I have always found it quite useful to search these forums and learn from explanations.


  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • General Help
  • [SOLVED] Issue with initramfs.

  1. Issue with initramfs.

    Hi, I can not upgrade nor autoremove old kernels due to the issue with initramfs. It keeps returning me the following

    Code:

    pawel@V5-591G:~$ sudo apt-get --purge autoremoveReading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 to upgrade, 0 to newly install, 0 to remove and 67 not to upgrade.
    2 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up linux-image-5.13.0-30-generic (5.13.0-30.33~20.04.1) ...
    Setting up initramfs-tools (0.136ubuntu6.6) ...
    update-initramfs: deferring update (trigger activated)
    Processing triggers for linux-image-5.13.0-30-generic (5.13.0-30.33~20.04.1) ...
    /etc/kernel/postinst.d/dkms:
     * dkms: running auto installation service for kernel 5.13.0-30-generic
       ...done.
    /etc/kernel/postinst.d/initramfs-tools:
    update-initramfs: Generating /boot/initrd.img-5.13.0-30-generic
    I: The initramfs will attempt to resume from /dev/dm-1
    I: (/dev/mapper/system-swap)
    I: Set the RESUME variable to override this.
    Error 24 : Write error : cannot write compressed block 
    E: mkinitramfs failure cpio 141 lz4 -9 -l 24
    update-initramfs: failed for /boot/initrd.img-5.13.0-30-generic with 1.
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    dpkg: error processing package linux-image-5.13.0-30-generic (--configure):
     installed linux-image-5.13.0-30-generic package post-installation script subprocess returned error exit status 1
    Processing triggers for initramfs-tools (0.136ubuntu6.6) ...
    update-initramfs: Generating /boot/initrd.img-5.13.0-28-generic
    I: The initramfs will attempt to resume from /dev/dm-1
    I: (/dev/mapper/system-swap)
    I: Set the RESUME variable to override this.
    Error 24 : Write error : cannot write compressed block 
    E: mkinitramfs failure cpio 141 lz4 -9 -l 24
    update-initramfs: failed for /boot/initrd.img-5.13.0-28-generic with 1.
    dpkg: error processing package initramfs-tools (--configure):
     installed initramfs-tools package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
     linux-image-5.13.0-30-generic
     initramfs-tools
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    I tried updateing/removing via Synaptic and it returns the same

    Code:

    E: initramfs-tools: installed initramfs-tools package post-installation script subprocess returned error exit status 1E: linux-image-5.13.0-30-generic: installed linux-image-5.13.0-30-generic package post-installation script subprocess returned error exit status 1

    Can anyone help mw with this issue? I have encrypred boot partition. I run Ubuntu 20.04.4 LTS

    Last edited by pavloos; March 1st, 2022 at 10:50 PM.

    Reason: fixed code tag


  2. Re: Issue with initramfs.

    pavloos; Yukkie

    Not much yet to work with,

    Let’s see what we can discover.

    Disk space ? — while I would expect the kernel to say so will not hurt to check and see what we have:

    And what is the state of the installed kernels:

    Code:

    uname -r
    dpkg -l | grep linux-

    if the kernel is not happy ,,,,


  3. Re: Issue with initramfs.

    Hello,

    thank you for your willingness to look into it. So:

    Code:

    pawel@V5-591G:~$ df -h
    Filesystem               Size  Used Avail Use% Mounted on
    udev                     7,7G     0  7,7G   0% /dev
    tmpfs                    1,6G  2,4M  1,6G   1% /run
    /dev/mapper/system-root   35G   31G  2,4G  93% /
    tmpfs                    7,8G  142M  7,7G   2% /dev/shm
    tmpfs                    5,0M  4,0K  5,0M   1% /run/lock
    tmpfs                    7,8G     0  7,8G   0% /sys/fs/cgroup
    /dev/loop0               128K  128K     0 100% /snap/acrordrdc/62
    /dev/loop2               187M  187M     0 100% /snap/audacity/934
    /dev/loop1               128K  128K     0 100% /snap/acrordrdc/53
    /dev/loop3                56M   56M     0 100% /snap/core18/2253
    /dev/loop4               128K  128K     0 100% /snap/bare/5
    /dev/loop6                56M   56M     0 100% /snap/core18/2284
    /dev/loop7               111M  111M     0 100% /snap/core/12725
    /dev/loop8               278M  278M     0 100% /snap/gimp/380
    /dev/loop9               165M  165M     0 100% /snap/gnome-3-28-1804/161
    /dev/loop10              304M  304M     0 100% /snap/wine-platform-5-stable/16
    /dev/loop11              163M  163M     0 100% /snap/gnome-3-28-1804/145
    /dev/loop12              392M  392M     0 100% /snap/gimp/383
    /dev/loop13              219M  219M     0 100% /snap/gnome-3-34-1804/72
    /dev/loop14               63M   63M     0 100% /snap/okular/108
    /dev/loop15              304M  304M     0 100% /snap/wine-platform-5-stable/18
    /dev/loop16              248M  248M     0 100% /snap/gnome-3-38-2004/87
    /dev/loop17              190M  190M     0 100% /snap/inkscape/9866
    /dev/loop18              3,0M  3,0M     0 100% /snap/ksnip/386
    /dev/loop19              151M  151M     0 100% /snap/okular/109
    /dev/loop20              274M  274M     0 100% /snap/wps-office-multilang/1
    /dev/loop21              256K  256K     0 100% /snap/gtk2-common-themes/13
    /dev/loop22              320M  320M     0 100% /snap/kde-frameworks-5-qt-5-15-3-core20/7
    /dev/loop23               55M   55M     0 100% /snap/snap-store/558
    /dev/loop24              170M  170M     0 100% /snap/digikam/50
    /dev/loop25              347M  347M     0 100% /snap/wine-platform-runtime/286
    /dev/loop26               66M   66M     0 100% /snap/gtk-common-themes/1515
    /dev/loop27               83M   83M     0 100% /snap/scrcpy/371
    /dev/loop28              600M  600M     0 100% /snap/scummvm/5639
    /dev/loop29               62M   62M     0 100% /snap/core20/1328
    /dev/loop30              425M  425M     0 100% /snap/kde-frameworks-5-qt-5-15-3-core20/8
    /dev/loop31              323M  323M     0 100% /snap/wine-platform-6-stable/8
    /dev/loop32               62M   62M     0 100% /snap/core20/1361
    /dev/loop33              145M  145M     0 100% /snap/notepadqq/855
    /dev/loop34               44M   44M     0 100% /snap/snapd/14978
    /dev/loop35              187M  187M     0 100% /snap/inkscape/9711
    /dev/loop36               66M   66M     0 100% /snap/gtk-common-themes/1519
    /dev/loop37              324M  324M     0 100% /snap/kde-frameworks-5-qt-5-15-core20/14
    /dev/loop38              168M  168M     0 100% /snap/spotify/56
    /dev/loop39              249M  249M     0 100% /snap/gnome-3-38-2004/99
    /dev/loop40              112M  112M     0 100% /snap/shutter/27
    /dev/loop41               51M   51M     0 100% /snap/snap-store/547
    /dev/loop42              3,0M  3,0M     0 100% /snap/ksnip/407
    /dev/loop43              323M  323M     0 100% /snap/wine-platform-6-stable/14
    /dev/loop44              600M  600M     0 100% /snap/scummvm/5694
    /dev/loop45              347M  347M     0 100% /snap/wine-platform-runtime/285
    /dev/loop46              261M  261M     0 100% /snap/kde-frameworks-5-core18/32
    /dev/loop47               83M   83M     0 100% /snap/scrcpy/364
    /dev/loop48              219M  219M     0 100% /snap/gnome-3-34-1804/77
    /dev/loop49              169M  169M     0 100% /snap/spotify/57
    /dev/loop50              135M  135M     0 100% /snap/skype/197
    /dev/loop51              135M  135M     0 100% /snap/skype/200
    /dev/loop52              291M  291M     0 100% /snap/kde-frameworks-5-qt-5-14-core18/4
    /dev/loop53              171M  171M     0 100% /snap/digikam/51
    /dev/mapper/system-home  169G  141G   20G  88% /home
    /dev/sda1                235G  146G   77G  66% /mnt/24d8e4bc-b711-4c2e-acb8-81e4a6cc6c72
    /dev/sdb1                472M  363M   85M  82% /boot
    tmpfs                    1,6G   32K  1,6G   1% /run/user/125
    tmpfs                    1,6G  5,4M  1,6G   1% /run/user/1000
    /dev/loop54              187M  187M     0 100% /snap/audacity/971

    The next one:

    Code:

    pawel@V5-591G:~$ uname -r5.13.0-28-generic

    And the last one:

    Code:

    pawel@V5-591G:~$ dpkg -l | grep linux-ii  binutils-x86-64-linux-gnu                     2.34-6ubuntu1.3                            amd64        GNU binary utilities, for x86-64-linux-gnu target
    ii  linux-base                                    4.5ubuntu3.7                               all          Linux image base package
    iF  linux-firmware                                1.187.26                                   all          Firmware for Linux kernel drivers
    ii  linux-generic-hwe-20.04                       5.13.0.30.33~20.04.17                      amd64        Complete Generic Linux kernel and headers
    ii  linux-headers-5.11.0-44-generic               5.11.0-44.48~20.04.2                       amd64        Linux kernel headers for version 5.11.0 on 64 bit x86 SMP
    ii  linux-headers-5.13.0-28-generic               5.13.0-28.31~20.04.1                       amd64        Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
    ii  linux-headers-5.13.0-30-generic               5.13.0-30.33~20.04.1                       amd64        Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
    ii  linux-headers-5.8.0-63-generic                5.8.0-63.71~20.04.1                        amd64        Linux kernel headers for version 5.8.0 on 64 bit x86 SMP
    ii  linux-headers-generic-hwe-20.04               5.13.0.30.33~20.04.17                      amd64        Generic Linux kernel headers
    ii  linux-hwe-5.11-headers-5.11.0-44              5.11.0-44.48~20.04.2                       all          Header files related to Linux kernel version 5.11.0
    ii  linux-hwe-5.13-headers-5.13.0-28              5.13.0-28.31~20.04.1                       all          Header files related to Linux kernel version 5.13.0
    ii  linux-hwe-5.13-headers-5.13.0-30              5.13.0-30.33~20.04.1                       all          Header files related to Linux kernel version 5.13.0
    ii  linux-hwe-5.8-headers-5.8.0-63                5.8.0-63.71~20.04.1                        all          Header files related to Linux kernel version 5.8.0
    rc  linux-image-5.11.0-25-generic                 5.11.0-25.27~20.04.1                       amd64        Signed kernel image generic
    rc  linux-image-5.11.0-27-generic                 5.11.0-27.29~20.04.1                       amd64        Signed kernel image generic
    rc  linux-image-5.11.0-34-generic                 5.11.0-34.36~20.04.1                       amd64        Signed kernel image generic
    rc  linux-image-5.11.0-36-generic                 5.11.0-36.40~20.04.1                       amd64        Signed kernel image generic
    rc  linux-image-5.11.0-37-generic                 5.11.0-37.41~20.04.2                       amd64        Signed kernel image generic
    rc  linux-image-5.11.0-38-generic                 5.11.0-38.42~20.04.1                       amd64        Signed kernel image generic
    rc  linux-image-5.11.0-40-generic                 5.11.0-40.44~20.04.2                       amd64        Signed kernel image generic
    rc  linux-image-5.11.0-41-generic                 5.11.0-41.45~20.04.1                       amd64        Signed kernel image generic
    rc  linux-image-5.11.0-43-generic                 5.11.0-43.47~20.04.2                       amd64        Signed kernel image generic
    ii  linux-image-5.11.0-44-generic                 5.11.0-44.48~20.04.2                       amd64        Signed kernel image generic
    ii  linux-image-5.13.0-28-generic                 5.13.0-28.31~20.04.1                       amd64        Signed kernel image generic
    iF  linux-image-5.13.0-30-generic                 5.13.0-30.33~20.04.1                       amd64        Signed kernel image generic
    rc  linux-image-5.4.0-42-generic                  5.4.0-42.46                                amd64        Signed kernel image generic
    rc  linux-image-5.4.0-45-generic                  5.4.0-45.49                                amd64        Signed kernel image generic
    rc  linux-image-5.4.0-47-generic                  5.4.0-47.51                                amd64        Signed kernel image generic
    rc  linux-image-5.4.0-48-generic                  5.4.0-48.52                                amd64        Signed kernel image generic
    rc  linux-image-5.4.0-52-generic                  5.4.0-52.57                                amd64        Signed kernel image generic
    rc  linux-image-5.4.0-53-generic                  5.4.0-53.59                                amd64        Signed kernel image generic
    rc  linux-image-5.4.0-54-generic                  5.4.0-54.60                                amd64        Signed kernel image generic
    rc  linux-image-5.4.0-56-generic                  5.4.0-56.62                                amd64        Signed kernel image generic
    rc  linux-image-5.4.0-58-generic                  5.4.0-58.64                                amd64        Signed kernel image generic
    rc  linux-image-5.8.0-38-generic                  5.8.0-38.43~20.04.1                        amd64        Signed kernel image generic
    rc  linux-image-5.8.0-41-generic                  5.8.0-41.46~20.04.1                        amd64        Signed kernel image generic
    rc  linux-image-5.8.0-43-generic                  5.8.0-43.49~20.04.1                        amd64        Signed kernel image generic
    rc  linux-image-5.8.0-44-generic                  5.8.0-44.50~20.04.1                        amd64        Signed kernel image generic
    rc  linux-image-5.8.0-45-generic                  5.8.0-45.51~20.04.1+1                      amd64        Signed kernel image generic
    rc  linux-image-5.8.0-48-generic                  5.8.0-48.54~20.04.1                        amd64        Signed kernel image generic
    rc  linux-image-5.8.0-50-generic                  5.8.0-50.56~20.04.1                        amd64        Signed kernel image generic
    rc  linux-image-5.8.0-53-generic                  5.8.0-53.60~20.04.1                        amd64        Signed kernel image generic
    rc  linux-image-5.8.0-55-generic                  5.8.0-55.62~20.04.1                        amd64        Signed kernel image generic
    rc  linux-image-5.8.0-59-generic                  5.8.0-59.66~20.04.1                        amd64        Signed kernel image generic
    rc  linux-image-5.8.0-63-generic                  5.8.0-63.71~20.04.1                        amd64        Signed kernel image generic
    ii  linux-image-generic-hwe-20.04                 5.13.0.30.33~20.04.17                      amd64        Generic Linux kernel image
    rc  linux-image-unsigned-5.8.0-36-generic         5.8.0-36.40~20.04.1                        amd64        Linux kernel image for version 5.8.0 on 64 bit x86 SMP
    ii  linux-libc-dev:amd64                          5.4.0-100.113                              amd64        Linux Kernel Headers for development
    rc  linux-modules-5.11.0-25-generic               5.11.0-25.27~20.04.1                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-5.11.0-27-generic               5.11.0-27.29~20.04.1                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-5.11.0-34-generic               5.11.0-34.36~20.04.1                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-5.11.0-36-generic               5.11.0-36.40~20.04.1                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-5.11.0-37-generic               5.11.0-37.41~20.04.2                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-5.11.0-38-generic               5.11.0-38.42~20.04.1                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-5.11.0-40-generic               5.11.0-40.44~20.04.2                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-5.11.0-41-generic               5.11.0-41.45~20.04.1                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-5.11.0-43-generic               5.11.0-43.47~20.04.2                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    ii  linux-modules-5.11.0-44-generic               5.11.0-44.48~20.04.2                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    ii  linux-modules-5.13.0-28-generic               5.13.0-28.31~20.04.1                       amd64        Linux kernel extra modules for version 5.13.0 on 64 bit x86 SMP
    ii  linux-modules-5.13.0-30-generic               5.13.0-30.33~20.04.1                       amd64        Linux kernel extra modules for version 5.13.0 on 64 bit x86 SMP
    rc  linux-modules-5.4.0-42-generic                5.4.0-42.46                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-5.4.0-45-generic                5.4.0-45.49                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-5.4.0-47-generic                5.4.0-47.51                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-5.4.0-48-generic                5.4.0-48.52                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-5.4.0-52-generic                5.4.0-52.57                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-5.4.0-53-generic                5.4.0-53.59                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-5.4.0-54-generic                5.4.0-54.60                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-5.4.0-56-generic                5.4.0-56.62                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-5.4.0-58-generic                5.4.0-58.64                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-5.4.0-59-generic                5.4.0-59.65                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-5.8.0-38-generic                5.8.0-38.43~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-5.8.0-41-generic                5.8.0-41.46~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-5.8.0-43-generic                5.8.0-43.49~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-5.8.0-44-generic                5.8.0-44.50~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-5.8.0-45-generic                5.8.0-45.51~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-5.8.0-48-generic                5.8.0-48.54~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-5.8.0-50-generic                5.8.0-50.56~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-5.8.0-53-generic                5.8.0-53.60~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-5.8.0-55-generic                5.8.0-55.62~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-5.8.0-59-generic                5.8.0-59.66~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.11.0-25-generic         5.11.0-25.27~20.04.1                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.11.0-27-generic         5.11.0-27.29~20.04.1                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.11.0-34-generic         5.11.0-34.36~20.04.1                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.11.0-36-generic         5.11.0-36.40~20.04.1                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.11.0-37-generic         5.11.0-37.41~20.04.2                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.11.0-38-generic         5.11.0-38.42~20.04.1                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.11.0-40-generic         5.11.0-40.44~20.04.2                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.11.0-41-generic         5.11.0-41.45~20.04.1                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.11.0-43-generic         5.11.0-43.47~20.04.2                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    ii  linux-modules-extra-5.11.0-44-generic         5.11.0-44.48~20.04.2                       amd64        Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
    ii  linux-modules-extra-5.13.0-28-generic         5.13.0-28.31~20.04.1                       amd64        Linux kernel extra modules for version 5.13.0 on 64 bit x86 SMP
    ii  linux-modules-extra-5.13.0-30-generic         5.13.0-30.33~20.04.1                       amd64        Linux kernel extra modules for version 5.13.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.4.0-42-generic          5.4.0-42.46                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.4.0-45-generic          5.4.0-45.49                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.4.0-47-generic          5.4.0-47.51                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.4.0-48-generic          5.4.0-48.52                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.4.0-52-generic          5.4.0-52.57                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.4.0-53-generic          5.4.0-53.59                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.4.0-54-generic          5.4.0-54.60                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.4.0-56-generic          5.4.0-56.62                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.4.0-58-generic          5.4.0-58.64                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.4.0-59-generic          5.4.0-59.65                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.8.0-36-generic          5.8.0-36.40~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.8.0-38-generic          5.8.0-38.43~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.8.0-41-generic          5.8.0-41.46~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.8.0-43-generic          5.8.0-43.49~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.8.0-44-generic          5.8.0-44.50~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.8.0-45-generic          5.8.0-45.51~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.8.0-48-generic          5.8.0-48.54~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.8.0-50-generic          5.8.0-50.56~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.8.0-53-generic          5.8.0-53.60~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.8.0-55-generic          5.8.0-55.62~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.8.0-59-generic          5.8.0-59.66~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    rc  linux-modules-extra-5.8.0-63-generic          5.8.0-63.71~20.04.1                        amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
    ii  linux-sound-base                              1.0.25+dfsg-0ubuntu5                       all          base package for ALSA and OSS sound systems
    ii  syslinux-common                               3:6.04~git20190206.bf6db5b4+dfsg1-2        all          collection of bootloaders (common)
    ii  syslinux-legacy                               2:3.63+dfsg-2ubuntu9                       amd64        Bootloader for Linux/i386 using MS-DOS floppies

    Last edited by pavloos; February 26th, 2022 at 10:48 PM.


  4. Re: Issue with initramfs.

    pavloos; Hey hey —

    Making progress

    We have:

    iF linux-image-5.13.0-30-generic

    inpish release
    where the kernel is installed (i) BUT the status (F) is «halF-conf»-igured.

    How about we start with cleaning up the cruft (rc) where the package has been (r)emoved, but (c)onfig files remain,

    Code:

    dpkg -l | awk '/^rc/{print $2}' | xargs sudo dpkg -P

    Next is to see if the package manager will heal its self — keep this as simple as possible

    Code:

    sudo apt update
    sudo apt full-upgrade
    sudo dpkg --configure -a

    see if that latest linux-image-5.13.0-30-generic will complete installation.

    while we are poking about:
    «iF linux-firmware»
    will also require some TLC


  5. Re: Issue with initramfs.

    HI,

    possible something in the code is a good thing but it still end with informing me that errors were encountered. Below what I receive

    Code:

    pawel@V5-591G:~$ dpkg -l | awk '/^rc/{print $2}' | xargs sudo dpkg -P[sudo] password for pawel: 
    (Reading database ... 335877 files and directories currently installed.)
    Purging configuration files for hplip-gui (3.20.3+dfsg0-2) ...
    Purging configuration files for libnvidia-compute-450:amd64 (460.80-0ubuntu0.20.04.2) ...
    Purging configuration files for libnvidia-compute-460:amd64 (460.91.03-0ubuntu0.20.04.1) ...
    Purging configuration files for libnvidia-compute-495:amd64 (510.47.03-0ubuntu0.20.04.1) ...
    Purging configuration files for libsane-hpaio:amd64 (3.20.3+dfsg0-2) ...
    dpkg: warning: while removing libsane-hpaio:amd64, directory '/usr/share/hplip' not empty so not removed
    Purging configuration files for linux-image-5.11.0-25-generic (5.11.0-25.27~20.04.1) ...
    Purging configuration files for linux-image-5.11.0-27-generic (5.11.0-27.29~20.04.1) ...
    Purging configuration files for linux-image-5.11.0-34-generic (5.11.0-34.36~20.04.1) ...
    Purging configuration files for linux-image-5.11.0-36-generic (5.11.0-36.40~20.04.1) ...
    Purging configuration files for linux-image-5.11.0-37-generic (5.11.0-37.41~20.04.2) ...
    Purging configuration files for linux-image-5.11.0-38-generic (5.11.0-38.42~20.04.1) ...
    Purging configuration files for linux-image-5.11.0-40-generic (5.11.0-40.44~20.04.2) ...
    Purging configuration files for linux-image-5.11.0-41-generic (5.11.0-41.45~20.04.1) ...
    Purging configuration files for linux-image-5.11.0-43-generic (5.11.0-43.47~20.04.2) ...
    Purging configuration files for linux-image-5.4.0-42-generic (5.4.0-42.46) ...
    Purging configuration files for linux-image-5.4.0-45-generic (5.4.0-45.49) ...
    Purging configuration files for linux-image-5.4.0-47-generic (5.4.0-47.51) ...
    Purging configuration files for linux-image-5.4.0-48-generic (5.4.0-48.52) ...
    Purging configuration files for linux-image-5.4.0-52-generic (5.4.0-52.57) ...
    Purging configuration files for linux-image-5.4.0-53-generic (5.4.0-53.59) ...
    Purging configuration files for linux-image-5.4.0-54-generic (5.4.0-54.60) ...
    Purging configuration files for linux-image-5.4.0-56-generic (5.4.0-56.62) ...
    Purging configuration files for linux-image-5.4.0-58-generic (5.4.0-58.64) ...
    Purging configuration files for linux-image-5.8.0-38-generic (5.8.0-38.43~20.04.1) ...
    rmdir: failed to remove '/lib/modules/5.8.0-38-generic': Directory not empty
    Purging configuration files for linux-image-5.8.0-41-generic (5.8.0-41.46~20.04.1) ...
    rmdir: failed to remove '/lib/modules/5.8.0-41-generic': Directory not empty
    Purging configuration files for linux-image-5.8.0-43-generic (5.8.0-43.49~20.04.1) ...
    rmdir: failed to remove '/lib/modules/5.8.0-43-generic': Directory not empty
    Purging configuration files for linux-image-5.8.0-44-generic (5.8.0-44.50~20.04.1) ...
    rmdir: failed to remove '/lib/modules/5.8.0-44-generic': Directory not empty
    Purging configuration files for linux-image-5.8.0-45-generic (5.8.0-45.51~20.04.1+1) ...
    rmdir: failed to remove '/lib/modules/5.8.0-45-generic': Directory not empty
    Purging configuration files for linux-image-5.8.0-48-generic (5.8.0-48.54~20.04.1) ...
    rmdir: failed to remove '/lib/modules/5.8.0-48-generic': Directory not empty
    Purging configuration files for linux-image-5.8.0-50-generic (5.8.0-50.56~20.04.1) ...
    rmdir: failed to remove '/lib/modules/5.8.0-50-generic': Directory not empty
    Purging configuration files for linux-image-5.8.0-53-generic (5.8.0-53.60~20.04.1) ...
    rmdir: failed to remove '/lib/modules/5.8.0-53-generic': Directory not empty
    Purging configuration files for linux-image-5.8.0-55-generic (5.8.0-55.62~20.04.1) ...
    rmdir: failed to remove '/lib/modules/5.8.0-55-generic': Directory not empty
    Purging configuration files for linux-image-5.8.0-59-generic (5.8.0-59.66~20.04.1) ...
    rmdir: failed to remove '/lib/modules/5.8.0-59-generic': Directory not empty
    Purging configuration files for linux-image-5.8.0-63-generic (5.8.0-63.71~20.04.1) ...
    rmdir: failed to remove '/lib/modules/5.8.0-63-generic': Directory not empty
    Purging configuration files for linux-image-unsigned-5.8.0-36-generic (5.8.0-36.40~20.04.1) ...
    rmdir: failed to remove '/lib/modules/5.8.0-36-generic': Directory not empty
    Purging configuration files for linux-modules-5.11.0-25-generic (5.11.0-25.27~20.04.1) ...
    Purging configuration files for linux-modules-5.11.0-27-generic (5.11.0-27.29~20.04.1) ...
    Purging configuration files for linux-modules-5.11.0-34-generic (5.11.0-34.36~20.04.1) ...
    Purging configuration files for linux-modules-5.11.0-36-generic (5.11.0-36.40~20.04.1) ...
    Purging configuration files for linux-modules-5.11.0-37-generic (5.11.0-37.41~20.04.2) ...
    Purging configuration files for linux-modules-5.11.0-38-generic (5.11.0-38.42~20.04.1) ...
    Purging configuration files for linux-modules-5.11.0-40-generic (5.11.0-40.44~20.04.2) ...
    Purging configuration files for linux-modules-5.11.0-41-generic (5.11.0-41.45~20.04.1) ...
    Purging configuration files for linux-modules-5.11.0-43-generic (5.11.0-43.47~20.04.2) ...
    Purging configuration files for linux-modules-5.4.0-42-generic (5.4.0-42.46) ...
    Purging configuration files for linux-modules-5.4.0-45-generic (5.4.0-45.49) ...
    Purging configuration files for linux-modules-5.4.0-47-generic (5.4.0-47.51) ...
    Purging configuration files for linux-modules-5.4.0-48-generic (5.4.0-48.52) ...
    Purging configuration files for linux-modules-5.4.0-52-generic (5.4.0-52.57) ...
    Purging configuration files for linux-modules-5.4.0-53-generic (5.4.0-53.59) ...
    Purging configuration files for linux-modules-5.4.0-54-generic (5.4.0-54.60) ...
    Purging configuration files for linux-modules-5.4.0-56-generic (5.4.0-56.62) ...
    Purging configuration files for linux-modules-5.4.0-58-generic (5.4.0-58.64) ...
    Purging configuration files for linux-modules-5.4.0-59-generic (5.4.0-59.65) ...
    Purging configuration files for linux-modules-5.8.0-38-generic (5.8.0-38.43~20.04.1) ...
    Purging configuration files for linux-modules-5.8.0-41-generic (5.8.0-41.46~20.04.1) ...
    dpkg: warning: while removing linux-modules-5.8.0-41-generic, directory '/lib/modules/5.8.0-41-generic' not empty so not removed
    Purging configuration files for linux-modules-5.8.0-43-generic (5.8.0-43.49~20.04.1) ...
    Purging configuration files for linux-modules-5.8.0-44-generic (5.8.0-44.50~20.04.1) ...
    Purging configuration files for linux-modules-5.8.0-45-generic (5.8.0-45.51~20.04.1) ...
    Purging configuration files for linux-modules-5.8.0-48-generic (5.8.0-48.54~20.04.1) ...
    Purging configuration files for linux-modules-5.8.0-50-generic (5.8.0-50.56~20.04.1) ...
    Purging configuration files for linux-modules-5.8.0-53-generic (5.8.0-53.60~20.04.1) ...
    Purging configuration files for linux-modules-5.8.0-55-generic (5.8.0-55.62~20.04.1) ...
    dpkg: warning: while removing linux-modules-5.8.0-55-generic, directory '/lib/modules/5.8.0-55-generic' not empty so not removed
    Purging configuration files for linux-modules-5.8.0-59-generic (5.8.0-59.66~20.04.1) ...
    dpkg: warning: while removing linux-modules-5.8.0-59-generic, directory '/lib/modules/5.8.0-59-generic' not empty so not removed
    Purging configuration files for linux-modules-extra-5.11.0-25-generic (5.11.0-25.27~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.11.0-27-generic (5.11.0-27.29~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.11.0-34-generic (5.11.0-34.36~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.11.0-36-generic (5.11.0-36.40~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.11.0-37-generic (5.11.0-37.41~20.04.2) ...
    Purging configuration files for linux-modules-extra-5.11.0-38-generic (5.11.0-38.42~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.11.0-40-generic (5.11.0-40.44~20.04.2) ...
    Purging configuration files for linux-modules-extra-5.11.0-41-generic (5.11.0-41.45~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.11.0-43-generic (5.11.0-43.47~20.04.2) ...
    Purging configuration files for linux-modules-extra-5.4.0-42-generic (5.4.0-42.46) ...
    Purging configuration files for linux-modules-extra-5.4.0-45-generic (5.4.0-45.49) ...
    Purging configuration files for linux-modules-extra-5.4.0-47-generic (5.4.0-47.51) ...
    Purging configuration files for linux-modules-extra-5.4.0-48-generic (5.4.0-48.52) ...
    Purging configuration files for linux-modules-extra-5.4.0-52-generic (5.4.0-52.57) ...
    Purging configuration files for linux-modules-extra-5.4.0-53-generic (5.4.0-53.59) ...
    Purging configuration files for linux-modules-extra-5.4.0-54-generic (5.4.0-54.60) ...
    Purging configuration files for linux-modules-extra-5.4.0-56-generic (5.4.0-56.62) ...
    Purging configuration files for linux-modules-extra-5.4.0-58-generic (5.4.0-58.64) ...
    Purging configuration files for linux-modules-extra-5.4.0-59-generic (5.4.0-59.65) ...
    Purging configuration files for linux-modules-extra-5.8.0-36-generic (5.8.0-36.40~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.8.0-38-generic (5.8.0-38.43~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.8.0-41-generic (5.8.0-41.46~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.8.0-43-generic (5.8.0-43.49~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.8.0-44-generic (5.8.0-44.50~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.8.0-45-generic (5.8.0-45.51~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.8.0-48-generic (5.8.0-48.54~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.8.0-50-generic (5.8.0-50.56~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.8.0-53-generic (5.8.0-53.60~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.8.0-55-generic (5.8.0-55.62~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.8.0-59-generic (5.8.0-59.66~20.04.1) ...
    Purging configuration files for linux-modules-extra-5.8.0-63-generic (5.8.0-63.71~20.04.1) ...
    Purging configuration files for nautilus-dropbox (2019.02.14-1ubuntu1) ...
    Purging configuration files for nvidia-compute-utils-460 (460.91.03-0ubuntu0.20.04.1) ...
    userdel: user nvidia-persistenced is currently used by process 1779
    Purging configuration files for nvidia-dkms-460 (460.91.03-0ubuntu0.20.04.1) ...
    update-initramfs: deferring update (trigger activated)
    Purging configuration files for nvidia-kernel-common-460 (460.91.03-0ubuntu0.20.04.1) ...
    update-initramfs: deferring update (trigger activated)
    Purging configuration files for ubuntu-tweak (0.8.7-1~trusty2) ...
    Purging configuration files for virtualbox (6.1.10-dfsg-1~ubuntu1.20.04.1) ...
    Purging configuration files for virtualbox-qt (6.1.10-dfsg-1~ubuntu1.20.04.1) ...
    Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
    Processing triggers for systemd (245.4-4ubuntu3.15) ...

    Code:

    pawel@V5-591G:~$ sudo apt update
    Hit:1 http://ppa.launchpad.net/linrunner/tlp/ubuntu focal InRelease
    Hit:2 http://pl.archive.ubuntu.com/ubuntu focal InRelease                                                                                                                                      
    Hit:3 http://pl.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                                                                              
    Ign:4 http://linux.dropbox.com/ubuntu disco InRelease                                                                                                                                          
    Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                                                        
    Hit:6 http://pl.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                                                     
    Hit:7 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                            
    Hit:8 http://linux.dropbox.com/ubuntu disco Release                                                                                                 
    Ign:9 http://repo.vivaldi.com/stable/deb stable InRelease                                                                     
    Hit:10 http://repo.vivaldi.com/stable/deb stable Release                                                
    Get:11 https://dl.winehq.org/wine-builds/ubuntu focal InRelease [8 041 B]                               
    Get:14 https://dl.winehq.org/wine-builds/ubuntu focal/main i386 Packages [314 kB]
    Get:15 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [40,7 kB]
    Get:16 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [66,3 kB]
    Get:17 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2 464 B]
    Get:18 https://dl.winehq.org/wine-builds/ubuntu focal/main amd64 Packages [312 kB]                                                                                                                                
    Fetched 858 kB in 11s (79,1 kB/s)                                                                                                                                                                                 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    All packages are up-to-date.

    Code:

    pawel@V5-591G:~$ sudo apt full-upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Calculating upgrade... Done
    0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
    3 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Setting up linux-image-5.13.0-30-generic (5.13.0-30.33~20.04.1) ...
    I: /boot/initrd.img is now a symlink to initrd.img-5.13.0-30-generic
    Setting up initramfs-tools (0.136ubuntu6.7) ...
    update-initramfs: deferring update (trigger activated)
    Setting up linux-firmware (1.187.26) ...
    update-initramfs: Generating /boot/initrd.img-5.13.0-28-generic
    I: The initramfs will attempt to resume from /dev/dm-1
    I: (/dev/mapper/system-swap)
    I: Set the RESUME variable to override this.
    Error 24 : Write error : cannot write compressed block 
    E: mkinitramfs failure cpio 141 lz4 -9 -l 24
    update-initramfs: failed for /boot/initrd.img-5.13.0-28-generic with 1.
    dpkg: error processing package linux-firmware (--configure):
     installed linux-firmware package post-installation script subprocess returned error exit status 1
    Processing triggers for linux-image-5.13.0-30-generic (5.13.0-30.33~20.04.1) ...
    /etc/kernel/postinst.d/dkms:
     * dkms: running auto installation service for kernel 5.13.0-30-generic
       ...done.
    /etc/kernel/postinst.d/initramfs-tools:
    update-initramfs: Generating /boot/initrd.img-5.13.0-30-generic
    I: The initramfs will attempt to resume from /dev/dm-1
    I: (/dev/mapper/system-swap)
    I: Set the RESUME variable to override this.
    Error 24 : Write error : cannot write compressed block 
    E: mkinitramfs failure cpio 141 lz4 -9 -l 24
    update-initramfs: failed for /boot/initrd.img-5.13.0-30-generic with 1.
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    dpkg: error processing package linux-image-5.13.0-30-generic (--configure):
     installed linux-image-5.13.0-30-generic package post-installation script subprocess returned error exit status 1
    Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
    update-initramfs: Generating /boot/initrd.img-5.13.0-28-generic
    I: The initramfs will attempt to resume from /dev/dm-1
    I: (/dev/mapper/system-swap)
    I: Set the RESUME variable to override this.
    Error 24 : Write error : cannot write compressed block 
    E: mkinitramfs failure cpio 141 lz4 -9 -l 24
    update-initramfs: failed for /boot/initrd.img-5.13.0-28-generic with 1.
    dpkg: error processing package initramfs-tools (--configure):
     installed initramfs-tools package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
     linux-firmware
     linux-image-5.13.0-30-generic
     initramfs-tools
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Code:

    pawel@V5-591G:~$ sudo dpkg --configure -a
    Setting up linux-image-5.13.0-30-generic (5.13.0-30.33~20.04.1) ...
    Setting up initramfs-tools (0.136ubuntu6.7) ...
    update-initramfs: deferring update (trigger activated)
    Setting up linux-firmware (1.187.26) ...
    update-initramfs: Generating /boot/initrd.img-5.13.0-28-generic
    I: The initramfs will attempt to resume from /dev/dm-1
    I: (/dev/mapper/system-swap)
    I: Set the RESUME variable to override this.
    Error 24 : Write error : cannot write compressed block 
    E: mkinitramfs failure cpio 141 lz4 -9 -l 24
    update-initramfs: failed for /boot/initrd.img-5.13.0-28-generic with 1.
    dpkg: error processing package linux-firmware (--configure):
     installed linux-firmware package post-installation script subprocess returned error exit status 1
    Processing triggers for linux-image-5.13.0-30-generic (5.13.0-30.33~20.04.1) ...
    /etc/kernel/postinst.d/dkms:
     * dkms: running auto installation service for kernel 5.13.0-30-generic
       ...done.
    /etc/kernel/postinst.d/initramfs-tools:
    update-initramfs: Generating /boot/initrd.img-5.13.0-30-generic
    I: The initramfs will attempt to resume from /dev/dm-1
    I: (/dev/mapper/system-swap)
    I: Set the RESUME variable to override this.
    Error 24 : Write error : cannot write compressed block 
    E: mkinitramfs failure cpio 141 lz4 -9 -l 24
    update-initramfs: failed for /boot/initrd.img-5.13.0-30-generic with 1.
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    dpkg: error processing package linux-image-5.13.0-30-generic (--configure):
     installed linux-image-5.13.0-30-generic package post-installation script subprocess returned error exit status 1
    Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
    update-initramfs: Generating /boot/initrd.img-5.13.0-28-generic
    I: The initramfs will attempt to resume from /dev/dm-1
    I: (/dev/mapper/system-swap)
    I: Set the RESUME variable to override this.
    Error 24 : Write error : cannot write compressed block 
    E: mkinitramfs failure cpio 141 lz4 -9 -l 24
    update-initramfs: failed for /boot/initrd.img-5.13.0-28-generic with 1.
    dpkg: error processing package initramfs-tools (--configure):
     installed initramfs-tools package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
     linux-firmware
     linux-image-5.13.0-30-generic
     initramfs-tools

    Best,
    Pawel


  6. Re: Issue with initramfs.

    pavloos; Oh Boy —

    Let’s go deeper.

    Looking at «initramfs-tools» :

    Code:

    apt show initramfs-tools

    seems a good candidate that affects installs.

    What results with terminal command:

    Code:

    sudo apt install --reinstall initramfs-tools

    a poke to give some guidance


  7. Re: Issue with initramfs.

    Quote Originally Posted by pavloos
    View Post

    Hello,

    thank you for your willingness to look into it. So:

    Code:

    pawel@V5-591G:~$ df -h
    Filesystem               Size  Used Avail Use% Mounted on
    /dev/mapper/system-root   35G   31G  2,4G  93% /
    /dev/mapper/system-home  169G  141G   20G  88% /home
    /dev/sdb1                472M  363M   85M  82% /boot

    Your filesystem is almost full. Root, home and boot, but the issue is most likely boot. Try removing the 5.11 kernel first:

    Code:

    sudo dpkg --purge linux-modules-extra-5.11.0-44-generic linux-modules-5.11.0-44-generic linux-image-5.11.0-44-generic

    Using the dpkg command here instead of the higher level apt command as apt may insist on installing the 5.13.0-30 kernel first, which will fail.

    BTW, if you have a separate home partition, getting 31GB in your root partition is a lot. It may have to do with the large number of snaps you have installed.


  8. Re: Issue with initramfs.

    That’s what I see also. Especially for it trying to do a kernel update, trying to generate an intramfs with only 85M free in a limited sized boot partition…
    Yes…
    initrd.img-<version>-generic, about 66MB
    System.map=<version>-generic, about 6MB
    vmlinuz-<version>-generic, about 11MB
    config-<version<-generic, about 0.25MB

    That’s roughly 84MB with just those, after the compression of those files.

    Last edited by MAFoElffen; February 28th, 2022 at 12:37 PM.


  9. Re: Issue with initramfs.

    Thank you for your help. The issue was indeed low space on /boot and I managed to fix it with your suggestions.

    At first, trying purge 5.11 with the suggested command returned

    Code:

    pawel@V5-591G:~$ sudo dpkg --purge linux-modules-extra-5.11.0-44-generic linux-modules-5.11.0-44-generic linux-image-5.11.0-44-genericdpkg: error: dpkg frontend lock is locked by another process

    But I get rid of it using good old Synaptic.


  10. Re: Issue with initramfs.

    The issue is likely to return at the next kernel upgrade. Try and make your /boot partition a bit larger, just a few 100MB extra, although you haven’t much room to shrink the other partitions. Maybe it’s time to remove some junk.


Bookmarks

Bookmarks


Posting Permissions

Понравилась статья? Поделить с друзьями:
  • Installed docker ce package post installation script subprocess returned error exit status 1
  • Installed bbswitch dkms package post installation script subprocess returned error exit status 10
  • Installed apache2 package post installation script subprocess returned error exit status 1
  • Installed amdgpu dkms package post installation script subprocess returned error exit status 10
  • Installed addons can cause problems or crashes anomaly как исправить