Por que “sudo apt-get install gpsd” retorna com erros?

1

Estou tentando instalar o gpsd em um laptop Unbutu usando sudo apt-get install gpsd . Parecia estar bem quando eu instalei isto em 2 outros laptops Ubuntu. Lá funciona corretamente.

Aqui fiz o mesmo no terceiro laptop que tem o Ubuntu instalado. Aqui recebi esta mensagem:

root@Lab-X230:/home/igor# sudo apt-get install gpsd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-image-extra-4.4.0-64-generic : Depends: linux-image-4.4.0-64-generic but it is not going to be installed
 linux-image-extra-4.4.0-66-generic : Depends: linux-image-4.4.0-66-generic but it is not going to be installed
 linux-image-extra-4.4.0-67-generic : Depends: linux-image-4.4.0-67-generic but it is not going to be installed
 linux-image-generic : Depends: linux-image-4.4.0-67-generic but it is not going to be installed
 linux-signed-image-4.4.0-64-generic : Depends: linux-image-4.4.0-64-generic (= 4.4.0-64.85) but it is not going to be installed
 linux-signed-image-4.4.0-66-generic : Depends: linux-image-4.4.0-66-generic (= 4.4.0-66.87) but it is not going to be installed
 linux-signed-image-4.4.0-67-generic : Depends: linux-image-4.4.0-67-generic (= 4.4.0-67.88) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Eu também experimentei estes comandos:

sudo apt-get -f install
sudo apt-get install gpsd

Ainda retornou essas mensagens de erro.

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-64-generic linux-image-4.4.0-66-generic linux-image-4.4.0-67-generic
Suggested packages:
  fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
The following NEW packages will be installed:
  linux-image-4.4.0-64-generic linux-image-4.4.0-66-generic linux-image-4.4.0-67-generic
0 upgraded, 3 newly installed, 0 to remove and 224 not upgraded.
16 not fully installed or removed.
Need to get 0 B/137 MB of archives.
After this operation, 199 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 588763 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.0-67-generic_4.4.0-67.88_amd64.deb ...
Done.
Unpacking linux-image-4.4.0-67-generic (4.4.0-67.88) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-67-generic_4.4.0-67.88_amd64.deb (--unpack):
cannot copy extracted data for './boot/System.map-4.4.0-67-generic' to '/boot/System.map-4.4.0-67-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-67-generic /boot/vmlinuz-4.4.0-67-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-67-generic /boot/vmlinuz-4.4.0-67-generic
Preparing to unpack .../linux-image-4.4.0-64-generic_4.4.0-64.85_amd64.deb ...
Done.

Unpacking linux-image-4.4.0-64-generic (4.4.0-64.85) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-64-generic_4.4.0-64.85_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.4.0-64-generic' to '/boot/vmlinuz-4.4.0-64-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-64-generic /boot/vmlinuz-4.4.0-64-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
Preparing to unpack .../linux-image-4.4.0-66-generic_4.4.0-66.87_amd64.deb ...
Done.

Unpacking linux-image-4.4.0-66-generic (4.4.0-66.87) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-66-generic_4.4.0-66.87_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.4.0-66-generic' to '/boot/vmlinuz-4.4.0-66-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-66-generic /boot/vmlinuz-4.4.0-66-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-66-generic /boot/vmlinuz-4.4.0-66-generic
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-4.4.0-67-generic_4.4.0-67.88_amd64.deb
 /var/cache/apt/archives/linux-image-4.4.0-64-generic_4.4.0-64.85_amd64.deb
 /var/cache/apt/archives/linux-image-4.4.0-66-generic_4.4.0-66.87_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

A partir deste link: sudo apt-get instale o erro de vapor (porque ele teve o mesmo problema comigo). Mas ninguém ajudou.

Alguém vê esse problema e tem alguma sorte com isso?

    
por Nate Duong 15.03.2017 / 14:44

1 resposta

2

Você não pode instalar nada porque seu disco está cheio.

Trecho da sua pergunta:

...
Unpacking linux-image-4.4.0-67-generic (4.4.0-67.88) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-67-generic_4.4.0-67.88_amd64.deb (--unpack):
cannot copy extracted data for './boot/System.map-4.4.0-67-generic' to '/boot/System.map-4.4.0-67-generic.dpkg-new': failed to write (No space left on device)
...

No final da última linha do trecho, está escrito (No space left on device) Então você precisa liberar algum espaço em disco antes de poder continuar a instalar qualquer coisa.

Use df -h para descobrir qual unidade não tem mais espaço disponível.

Se sua partição de inicialização estiver cheia, você pode excluir imagens antigas do kernel com o seguinte comando:

dpkg --list | grep linux-image | awk '{ print  }' | sort -V | sed -n '/''uname -r''/q;p' | xargs sudo apt-get -y purge

que é copiado de esta resposta .

    
por MadMike 15.03.2017 / 15:27