/ boot completo, mas não pode remover os kernels porque os pacotes têm dependências não atendidas [duplicados]

0

Eu tenho um problema sério e não consigo corrigi-lo. A partição / boot está cheia, então, para limpá-la, corro:

sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')") 

No entanto, o comando não é executado porque diz que existem pacotes de imagem linux com dependências não atendidas. Então eu corro:

sudo apt-get -f install

Mas este comando lança:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  linux-image-4.4.0-89-generic linux-image-4.4.0-91-generic
Suggested packages:
  fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools linux-headers-4.4.0-89-generic
The following NEW packages will be installed:
  linux-image-4.4.0-89-generic linux-image-4.4.0-91-generic
0 upgraded, 2 newly installed, 0 to remove and 266 not upgraded.
8 not fully installed or removed.
Need to get 0 B/79,8 MB of archives.
After this operation, 134 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 532424 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.0-91-generic_4.4.0-91.114_amd64.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.4.0-91- generic /boot/vmlinuz-4.4.0-91-generic
Done.
Unpacking linux-image-4.4.0-91-generic (4.4.0-91.114) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-    4.4.0-91-generic_4.4.0-91.114_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.4.0-91-generic' to   '/boot/vmlinuz-4.4.0-91-generic.dpkg-new': failed to write (No space left   on device)
No apport report written because the error message indicates a disk   full error
                                                                                 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-91-  generic /boot/vmlinuz-4.4.0-91-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-91-   generic /boot/vmlinuz-4.4.0-91-generic
Preparing to unpack .../linux-image-4.4.0-89-generic_4.4.0-  89.112_amd64.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.4.0-89-  generic /boot/vmlinuz-4.4.0-89-generic
Done.
Unpacking linux-image-4.4.0-89-generic (4.4.0-89.112) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-  4.4.0-89-generic_4.4.0-89.112_amd64.deb (--unpack):
 cannot copy extracted data for './boot/System.map-4.4.0-89-generic'   to '/boot/System.map-4.4.0-89-generic.dpkg-new': failed to write (No space  left on device)
No apport report written because the error message indicates a disk   full error
                                                                                 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-89-   generic /boot/vmlinuz-4.4.0-89-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-89-   generic /boot/vmlinuz-4.4.0-89-generic
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-4.4.0-91-generic_4.4.0-  91.114_amd64.deb
 /var/cache/apt/archives/linux-image-4.4.0-89-generic_4.4.0-  89.112_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Então, estou no impasse. Não é possível liberar / boot e não é possível corrigir dependências não atendidas ...

$ll /boot/*
-rw-r--r-- 1 root root  1246311 jun 14 09:24 /boot/abi-4.4.0-81-generic
-rw-r--r-- 1 root root  1246511 jun 26 16:45 /boot/abi-4.4.0-83-generic
-rw-r--r-- 1 root root  1246670 jul 18 12:00 /boot/abi-4.4.0-87-generic
-rw-r--r-- 1 root root   190356 jun 26 16:45 /boot/config-4.4.0-83-generic
-rw-r--r-- 1 root root   190356 jul 18 12:00 /boot/config-4.4.0-87-generic
-rw-r--r-- 1 root root 38967580 jun 21 10:29 /boot/initrd.img-4.4.0-81-generic
-rw-r--r-- 1 root root 38968625 jun 29 10:12 /boot/initrd.img-4.4.0-83-generic
-rw-r--r-- 1 root root   182704 ene 28  2016 /boot/memtest86+.bin
-rw-r--r-- 1 root root   184380 ene 28  2016 /boot/memtest86+.elf
-rw-r--r-- 1 root root   184840 ene 28  2016   /boot/memtest86+_multiboot.bin
-rw------- 1 root root  3883990 mar  3 15:25 /boot/System.map-4.4.0-66-generic
-rw------- 1 root root  3882277 mar 22 13:11 /boot/System.map-4.4.0-70-generic
-rw------- 1 root root  3883391 jun 14 09:24 /boot/System.map-4.4.0-81-generic
-rw------- 1 root root  3883887 jun 26 16:45 /boot/System.map-4.4.0-83-generic
-rw------- 1 root root  3884173 jul 18 12:00 /boot/System.map-4.4.0-87-generic
-rw------- 1 root root  7092784 jun 14 09:24 /boot/vmlinuz-4.4.0-81-generic
-rw------- 1 root root  7092720 jun 26 16:45 /boot/vmlinuz-4.4.0-83-generic
-rw------- 1 root root  7095888 jul 18 12:00 /boot/vmlinuz-4.4.0-87-   generic

/boot/grub:
total 2403
drwxr-xr-x 5 root root    1024 jun 29 10:12 ./
drwxr-xr-x 5 root root    4096 ago 11 11:52 ../
drwxr-xr-x 2 root root    1024 ene 20  2017 fonts/
-rw-r--r-- 1 root root     712 jul 19  2016 gfxblacklist.txt
-r--r--r-- 1 root root   30500 jun 29 10:12 grub.cfg
-rw-rw-r-- 1 root root    1024 ago  7 10:49 grubenv
drwxr-xr-x 2 root root    9216 ene 20  2017 i386-pc/
drwxr-xr-x 2 root root    1024 ene 20  2017 locale/
-rw-r--r-- 1 root root 2398585 ene 20  2017 unicode.pf2
ls: cannot open directory '/boot/lost+found': Permission denied

$ uname -r
4.4.0-83-generic

Alguma correção?

    
por JOAN 11.08.2017 / 16:44

0 respostas