web-dev-qa-db-fra.com

Pourquoi "Sudo apt-get install gpsd" renvoie-t-il des erreurs?

J'essaie d'installer gpsd sur un ordinateur portable Ubuntu, en utilisant Sudo apt-get install gpsd. Cela semblait aller si j'ai installé ceci sur 2 autres ordinateurs portables Ubuntu. Là ça fonctionne correctement.

Ici, j'ai fait la même chose sur le 3ème ordinateur portable sur lequel Ubuntu est installé. Ici j'ai reçu ce message:

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

J'ai aussi essayé ces commandes:

Sudo apt-get -f install
Sudo apt-get install gpsd

Pourtant, il a renvoyé ces messages d'erreur.

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)

Depuis ce lien: Sudo apt-get install erreur Steam (car il a eu le même problème avec moi). Mais personne n'a aidé.

Est-ce que quelqu'un voit ce problème et a de la chance à ce sujet?

1
Nate Duong

Vous ne pouvez rien installer car votre disque est plein.

Extrait de votre question:

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

À la fin de la dernière ligne de l'extrait, il est écrit (No space left on device) Donc, vous devez libérer de l'espace disque avant de pouvoir continuer à installer quoi que ce soit.

Utilisez df -h pour trouver le lecteur qui n'a plus d'espace disponible.

Si votre partition de démarrage est pleine, vous pouvez supprimer les anciennes images du noyau à l'aide de la commande suivante:

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

qui est copié de cette réponse .

2
MadMike