Je semble avoir des problèmes pour mettre à jour mon logiciel. Je vais simplement montrer mes entrées et sorties afin que vous puissiez voir ce que je fais face. Il s’agit du processeur Ubuntu 17.04, 64 bits, Intel i7. Toute aide serait appréciée.
~$ Sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu zesty InRelease
(...)
Fetched 508 kB in 1s (479 kB/s)
Reading package lists... Done
~$ Sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
linux-image-extra-4.10.0-28-generic : Depends: linux-image-4.10.0-28-generic but it is not installed
linux-image-generic : Depends: linux-image-4.10.0-28-generic but it is not installed
linux-signed-image-4.10.0-28-generic : Depends: linux-image-4.10.0-28-generic (= 4.10.0-28.32) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
D'accord.
~$ Sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.10.0-21 linux-headers-4.10.0-21-generic linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic linux-image-4.10.0-21-generic linux-image-4.10.0-28-generic
linux-image-extra-4.10.0-21-generic linux-image-extra-4.10.0-28-generic linux-signed-image-4.10.0-21-generic linux-signed-image-4.10.0-28-generic
Use 'Sudo apt autoremove' to remove them.
The following additional packages will be installed:
linux-generic linux-headers-4.10.0-29 linux-headers-4.10.0-29-generic linux-headers-generic linux-image-4.10.0-28-generic linux-image-4.10.0-29-generic linux-image-extra-4.10.0-29-generic
linux-image-generic linux-signed-generic linux-signed-image-4.10.0-29-generic linux-signed-image-generic
Suggested packages:
fdutils linux-doc-4.10.0 | linux-source-4.10.0 linux-tools
The following NEW packages will be installed:
linux-headers-4.10.0-29 linux-headers-4.10.0-29-generic linux-image-4.10.0-28-generic linux-image-4.10.0-29-generic linux-image-extra-4.10.0-29-generic linux-signed-image-4.10.0-29-generic
The following packages will be upgraded:
linux-generic linux-headers-generic linux-image-generic linux-signed-generic linux-signed-image-generic
5 upgraded, 6 newly installed, 0 to remove and 75 not upgraded.
7 not fully installed or removed.
Need to get 0 B/82.7 MB of archives.
After this operation, 378 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package util-linux (--configure):
package util-linux is not ready for configuration
cannot configure (current status 'half-installed')
Errors were encountered while processing:
util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)
J'ai ensuite essayé de réinstaller le paquet util-linux.
~$ Sudo apt-get install --reinstall util-linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
linux-image-extra-4.10.0-28-generic : Depends: linux-image-4.10.0-28-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-4.10.0-28-generic but it is not going to be installed
linux-signed-image-4.10.0-28-generic : Depends: linux-image-4.10.0-28-generic (= 4.10.0-28.32) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
~$ Sudo apt-get install --reinstall linux-image-4.10.0-28-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.10.0-21 linux-headers-4.10.0-21-generic linux-image-4.10.0-21-generic linux-image-extra-4.10.0-21-generic linux-signed-image-4.10.0-21-generic
Use 'Sudo apt autoremove' to remove them.
Suggested packages:
fdutils linux-doc-4.10.0 | linux-source-4.10.0 linux-tools
The following NEW packages will be installed:
linux-image-4.10.0-28-generic
0 upgraded, 1 newly installed, 0 to remove and 80 not upgraded.
7 not fully installed or removed.
Need to get 0 B/21.2 MB of archives.
After this operation, 70.4 MB of additional disk space will be used.
dpkg: error processing package util-linux (--configure):
package util-linux is not ready for configuration
cannot configure (current status 'half-installed')
Errors were encountered while processing:
util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)
Alors maintenant, je suis confus parce que je ne sais pas dans quel sens va la dépendance.
Enfin, je vais inclure mes résultats pour dpgk --configure -a.
~$ Sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of linux-image-extra-4.10.0-28-generic:
linux-image-extra-4.10.0-28-generic depends on linux-image-4.10.0-28-generic; however:
Package linux-image-4.10.0-28-generic is not installed.
dpkg: error processing package linux-image-extra-4.10.0-28-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-image-generic:
linux-signed-image-generic depends on linux-image-extra-4.10.0-28-generic; however:
Package linux-image-extra-4.10.0-28-generic is not configured yet.
dpkg: error processing package linux-signed-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-image-4.10.0-28-generic:
linux-signed-image-4.10.0-28-generic depends on linux-image-4.10.0-28-generic (= 4.10.0-28.32); however:
Package linux-image-4.10.0-28-generic is not installed.
dpkg: error processing package linux-signed-image-4.10.0-28-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent processing triggers for systemd:
systemd depends on util-linux (>= 2.27.1); however:
Package util-linux is not installed.
dpkg: error processing package systemd (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-4.10.0-28-generic; however:
Package linux-image-4.10.0-28-generic is not installed.
linux-image-generic depends on linux-image-extra-4.10.0-28-generic; however:
Package linux-image-extra-4.10.0-28-generic is not configured yet.
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-generic:
linux-signed-generic depends on linux-signed-image-generic (= 4.10.0.28.29); however:
Package linux-signed-image-generic is not configured yet.
dpkg: error processing package linux-signed-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 4.10.0.28.29); however:
Package linux-image-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-extra-4.10.0-28-generic
linux-signed-image-generic
linux-signed-image-4.10.0-28-generic
systemd
linux-image-generic
linux-signed-generic
linux-generic
Je ne veux pas forcer de supprimer util-linux parce que cela semble être un composant essentiel du logiciel. Ubuntu n'est pas content que j'essaye de l'enlever.
J'ai résolu le problème en allant sur le site Web du paquet Ubuntu et en trouvant le paquet util-linux pour ma distribution. Je l'ai téléchargé et ensuite utilisé la commande:
~$ Sudo dpkg -i --force-overwrite /home/me/Downloads/util-linux_2.29-1ubuntu2_AMD64.deb
Cela a réinstallé util-linux et après cela, j'ai pu réparer les dépendances brisées.