После того, как Discord получил новое обновление, я попытался установить его с помощью sudo apt-get install discord
и получил это сообщение об ошибке. И как я могу исправить эту ошибку прошивки linux?
roxi@pop-os:~$ sudo apt-get install discord
Setting up linux-firmware (1.197+system76~1620141009~20.10~f54d87c) ...
update-initramfs: Generating /boot/initrd.img-5.11.0-7614-generic
cryptsetup: WARNING: Resume target cryptswap uses a key file
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.11.0-7614-generic with 1.
dpkg: error processing package linux-firmware (--configure):
installed linux-firmware package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-firmware
E: Sub-process /usr/bin/dpkg returned an error code (1)
Тогда я предположил, что есть проблема с прошивкой linux
, и нашел это сообщение:
dpkg: пакет обработки ошибок linux-firmware (- -configure) после обновления ubuntu 18.04 до 20.04.1 и следовал предложениям оттуда.
Для sudo dpkg --configure -a
Я получил:
roxi@pop-os:~$ sudo dpkg --configure -a
Setting up linux-firmware (1.197+system76~1620141009~20.10~f54d87c) ...
update-initramfs: Generating /boot/initrd.img-5.11.0-7614-generic
cryptsetup: WARNING: Resume target cryptswap uses a key file
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.11.0-7614-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 initramfs-tools (0.137ubuntu12.1) ...
update-initramfs: Generating /boot/initrd.img-5.11.0-7614-generic
cryptsetup: WARNING: Resume target cryptswap uses a key file
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.11.0-7614-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
initramfs-tools
Для sudo apt-get install -f
:
roxi@pop-os:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.137ubuntu12.1) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.197+system76~1620141009~20.10~f54d87c) ...
update-initramfs: Generating /boot/initrd.img-5.11.0-7614-generic
cryptsetup: WARNING: Resume target cryptswap uses a key file
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.11.0-7614-generic with 1.
dpkg: error processing package linux-firmware (--configure):
installed linux-firmware package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-firmware
E: Sub-process /usr/bin/dpkg returned an error code (1)
roxi@pop-os:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
2 not fully installed or removed.
Для sudo apt-get install -y linux-firmware
:
У меня появляется всплывающее окно, в котором говорится: На томе "boot" осталось всего 4 МБ дискового пространства.
А затем попробовал sudo apt autoremove
и получил:
roxi@pop-os:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-firmware (1.197+system76~1620141009~20.10~f54d87c) ...
update-initramfs: Generating /boot/initrd.img-5.11.0-7614-generic
cryptsetup: WARNING: Resume target cryptswap uses a key file
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.11.0-7614-generic with 1.
dpkg: error processing package linux-firmware (--configure):
installed linux-firmware package post-installation script subprocess ret
urned error exit status 1
Errors were encountered while processing:
linux-firmware
E: Sub-process /usr/bin/dpkg returned an error code (1)
Для предложенной души sudo apt install --reinstall linux-firmware
получил:
roxi@pop-os:~$ sudo apt install --reinstall linux-firmware
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 23 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for linux-firmware:amd64
Я исправил это путем ручного поиска ядер с помощью sudo dpkg --get-selections | grep linux
и очистив их sudo dpkg --purge