Problema de pacote e espaço do Ubuntu 16.04 [duplicado]

1

Recebi inicialmente um aviso de erro e, por favor, execute o gerenciador de pacotes para resolver o problema. A mensagem de erro foi, contagem de erros quebrados > 0 e avisado de pacotes instalados com dependências não atendidas. (Note que eu não pude postar Get: 3, 4, 5,) Eu agradeço muito antecipadamente pela sua ajuda muito necessária.

sudo apt-get install -f

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  cups-filters linux-image-4.4.0-51-generic linux-image-4.4.0-53-generic
Suggested packages:
  antiword docx2txt fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
  linux-headers-4.4.0-53-generic
The following packages will be REMOVED:
  linux-image-extra-4.4.0-52-generic
The following NEW packages will be installed:
  cups-filters linux-image-4.4.0-51-generic linux-image-4.4.0-53-generic
0 upgraded, 3 newly installed, 1 to remove and 114 not upgraded.
6 not fully installed or removed.
Need to get 116 MB of archives.
After this operation, 38.0 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-4.4.0-51-generic amd64 4.4.0-51.72 [19.2 MB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-extra-4.4.0-51-generic amd64 4.4.0-51.72 [38.6 MB]

(Reading database ... 501080 files and directories currently installed.)
Removing linux-image-extra-4.4.0-52-generic (4.4.0-52.73) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-52-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-52-generic /boot/vmlinuz-4.4.0-52-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-52-generic /boot/vmlinuz-4.4.0-52-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-52-generic
WARNING: missing /lib/modules/4.4.0-52-generic
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.4.0-52-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_ptvcbr/lib/modules/4.4.0-52-generic/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_ptvcbr/lib/modules/4.4.0-52-generic/modules.builtin: No such file or directory

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-52-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-52-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-4.4.0-52-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por kevskewl 13.12.2016 / 00:35

1 resposta

0

Antes de mais nada, execute apt-get autoremove depois que executar df -h para verificar seu espaço em disco se o espaço livre em disco for maior que 500 mb, em seguida, executar apt-get update && apt-get upgrade -f este comando resolverá seu problema.

Execute todo o comando como usuário root

    
por Saurabh Srivastava 13.12.2016 / 05:04