root@debian:/# apt install alsa-utils=1.1.3-1 |more
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
ark : Depends: kio but it is not going to be installed
Depends: libkf5completion5 (>= 4.97.0) but it is not going to be installed
Depends: libkf5configcore5 (>= 4.98.0) but it is not going to be installed
Depends: libkf5configgui5 (>= 4.97.0) but it is not going to be installed
Depends: libkf5configwidgets5 (>= 4.96.0) but it is not going to be installed
Depends: libkf5crash5 (>= 5.15.0) but it is not going to be installed
Depends: libkf5dbusaddons5 (>= 4.97.0) but it is not going to be installed
Depends: libkf5i18n5 (>= 4.97.0) but it is not going to be installed
Depends: libkf5iconthemes5 (>= 4.96.0) but it is not going to be installed
Depends: libkf5jobwidgets5 (>= 4.96.0) but it is not going to be installed
Depends: libkf5kiocore5 (>= 4.96.0) but it is not going to be installed
Depends: libkf5kiofilewidgets5 (>= 4.96.0) but it is not going to be installed
Depends: libkf5kiowidgets5 (>= 5.5.0+git20150101.0309+15.04) but it is not going
to be installed
Depends: libkf5parts5 (>= 4.96.0) but it is not going to be installed
Depends: libkf5service-bin but it is not going to be installed
Depends: libkf5service5 (>= 4.99.0) but it is not going to be installed
Depends: libkf5widgetsaddons5 (>= 5.16.0) but it is not going to be installed
Depends: libkf5xmlgui5 (>= 4.98.0) but it is not going to be installed
brave-keyring : Depends: gnupg
dragonplayer : Depends: kio but it is not going to be installed
Depends: libkf5configcore5 (>= 4.97.0) but it is not going to be install
ed
--More--E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Mouais, ce n’est pas très convaincant.
Ça va être compliqué (même si pas impossible) de donner à apt l’instruction complète qui va le débloquer, et ce serait vraiment long (même si efficace) de corriger tous ces paquets à coup de wget + dpkg.
Je propose de voir avec aptitude si son résolveur de dépendances plus complet peut proposer une meilleure solution :
aptitude install -f
Je n’ai pas aptitude
est-il possible de l’installer -( je suis sur un debian 10 live USB) ?
root@debian:/# apt-get install aptitude | more
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
alsa-utils : Depends: libc6 (>= 2.29) but 2.24-11+deb9u4 is to be installed
aptitude : Depends: aptitude-common (= 0.8.7-1) but it is not going to be installed
Depends: libcwidget3v5 but it is not going to be installed
Recommends: libparse-debianchangelog-perl but it is not going to be installed
ark : Depends: kio but it is not going to be installed
Depends: libkf5completion5 (>= 4.97.0) but it is not going to be installed
Depends: libkf5configcore5 (>= 4.98.0) but it is not going to be installed
Vu que APT galère encore, il vaut mieux passer une fois de plus par wget + dpkg :
wget http://ftp.fr.debian.org/debian/pool/main/c/cwidget/libcwidget3v5_0.5.17-4+b1_amd64.deb
wget http://ftp.fr.debian.org/debian/pool/main/a/aptitude/aptitude-common_0.8.7-1_all.deb
wget http://ftp.fr.debian.org/debian/pool/main/a/aptitude/aptitude_0.8.7-1_amd64.deb
dpkg -i ./libcwidget3v5_0.5.17-4+b1_amd64.deb ./aptitude-common_0.8.7-1_all.deb ./aptitude_0.8.7-1_amd64.deb
dpkg --configure -a
Tu auras peut-être des erreurs ensuite si des dépendances de aptitude ou aptitude-common sont manquantes ou présentes mais dans des versions incompatibles. Qu’il faudra donc corriger avant que aptitude soit utilisable.
Bonsoir,
Merci de ta patience.
Cette fois
est très verbeux, il me demande n confirmations où j’ai tapé ‹ y › en serrant les fesses.
J’ai dû remplacer les https par des http dans le sources.list
Ca semblait bien par parti, mais après avoir machiné pendant un certain temps (install et remove packages) nous en arrivons à :
Setting up libkf5webkit5:amd64 (5.28.0-1) ...
Setting up libkf5quickaddons5:amd64 (5.28.0-1) ...
Setting up libkf5kcmutils5:amd64 (5.28.0-2) ...
Setting up libkf5libkdepim5:amd64 (4:16.04.2-3) ...
Setting up libkf5libkdepim-plugins:amd64 (4:16.04.2-3) ...
Setting up libkf5pimcommon5:amd64 (4:16.04.2-2) ...
Setting up libkf5pimcommon-plugins:amd64 (4:16.04.2-2) ...
Setting up libkf5messageviewer5:amd64 (4:16.04.3-3~deb9u1) ...
Processing triggers for libc-bin:i386 (2.24-11+deb9u4) ...
[ ERR] Reading state information
E: Could not open lock file /var/lock/aptitude - open (2: No such file or directory)
E: Could not initialize dependency cache
Current status: 0 (-212) broken, 15 (-4) upgradable.
W: Could not lock the cache file; this usually means that dpkg or another apt tool is already installing packages. Opening in read-only mode; any changes you make to the states of packages will NOT be preserved!
root@debian:/# aptitude install -f
Warning: Invalid locale (please review locale settings, this might lead to problems later):
locale::facet::_S_create_c_locale name not valid
[ ERR] Reading state information
E: Could not open lock file /var/lock/aptitude - open (2: No such file or directory)
E: Could not initialize dependency cache
W: Could not lock the cache file; this usually means that dpkg or another apt tool is already installing packages. Opening in read-only mode; any changes you make to the states of packages will NOT be preserved!
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 853 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)
[ ERR] Reading state information
E: Could not open lock file /var/lock/aptitude - open (2: No such file or directory)
E: Could not initialize dependency cache
W: Could not lock the cache file; this usually means that dpkg or another apt tool is already installing packages. Opening in read-only mode; any changes you make to the states of packages will NOT be preserved!
root@debian:/# ls /var/
backups cache ftp games lib local lock log mail opt run spool tmp www
root@debian:/# ls /var/lock
/var/lock
root@debian:/# ls -l /var/lock
lrwxrwxrwx 1 root root 9 Aug 15 2019 /var/lock -> /run/lock
root@debian:/# ls -l /run/lock
ls: cannot access ‹ /run/lock ›: No such file or directory
Par contre apt recommence a marcher.
j’ai essayé apt full-upgrade -s, ca a l’air OK
allez, je lance
apt full-upgrade
Allons bon, voilà autre chose !
unless you know exactly what you are doing!
Si je savais ce que je faisais, je n’en serais pas là !..
Heeeeeeeeeeeeeeeeelp !
Pourtant, j’ai installé manuellement ce libc-bin:i386 en 2.24-11 deb9u4 en i386 il n’y a pas longtemps - Pourquoi veut il le désinstaller ? je n’ai rien demandé !
Et en quoi est-ce critique ?
wireless-regdb wireless-tools x11-common xauth xbitmaps xdg-user-dirs xdg-utils xml-core xmms2 xmms2-icon xorg-docs-core
xorg-sgml-doctools xplanet-images xserver-common xtrans-dev xxd xz-utils yelp-xsl zip zlib1g zlib1g:i386 zlib1g-dev
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
libc-bin:i386
23 upgraded, 4 newly installed, 826 downgraded, 7 to remove and 12 not upgraded.
Need to get 1130 MB/1132 MB of archives.
After this operation, 932 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?]
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
libc-bin:i386
Tu peux demander à APT de ne pas supprimer ce paquet en le donnant en argument à la commande de « mise-à-jour » :
apt full-upgrade libc-bin:i386+
(le + final indique que le paquet doit être installé/conservé)
En tous cas, le résumé suivant est plutôt encourageant :
23 upgraded, 4 newly installed, 826 downgraded, 7 to remove and 12 not upgraded.
Si cette opération est complétée avec succès, tu seras presque sur une Stretch de nouveau en pleine forme, prête pour une mise-à-jour beaucoup moins chaotique vers Buster.
root@debian:/# apt full-upgrade
13 upgraded, 3 newly installed, 718 downgraded, 0 to remove and 12 not upgraded.
Need to get 0 B/1064 MB of archives.
After this operation, 925 MB disk space will be freed.
Do you want to continue? [Y/n] y
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
Reading changelogs... Done
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Extracting templates from packages: 100%
Preconfiguring packages ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)
dpkg: warning: downgrading bash-completion from 1:2.11-2 to 1:2.1-4.3
(Reading database ... 270342 files and directories currently installed.)
Preparing to unpack .../bash-completion_1%3a2.1-4.3_all.deb ...
Unpacking bash-completion (1:2.1-4.3) over (1:2.11-2) ...
dpkg: error processing archive /var/cache/apt/archives/bash-completion_1%3a2.1-4.3_all.deb (--unpack):
trying to overwrite '/usr/share/bash-completion/completions/eject', which is also in package eject 2.36.1-7
dpkg: warning: downgrading libacl1:amd64 from 2.2.53-10 to 2.2.52-3+b1
Preparing to unpack .../libacl1_2.2.52-3+b1_amd64.deb ...
Unpacking libacl1:amd64 (2.2.52-3+b1) over (2.2.53-10) ...
Errors were encountered while processing:
/var/cache/apt/archives/bash-completion_1%3a2.1-4.3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@debian:/#
Oups, mon precedent post est celui que j’ai maintenant.
Voici ci apres le resultat de mes 2 premieres commandes
root@debian:/# apt full-upgrade
[ une heure de travail download, unpack et puis …]
dpkg: warning: downgrading libgarcon-1-0:amd64 from 4.16.1-1 to 0.4.0-2
Preparing to unpack .../20-libgarcon-1-0_0.4.0-2_amd64.deb ...
Unpacking libgarcon-1-0 (0.4.0-2) over (4.16.1-1) ...
dpkg: warning: downgrading libxfce4util7:amd64 from 4.16.0-1 to 4.12.1-3
Preparing to unpack .../21-libxfce4util7_4.12.1-3_amd64.deb ...
Unpacking libxfce4util7:amd64 (4.12.1-3) over (4.16.0-1) ...
dpkg: warning: downgrading libgarcon-common from 4.16.1-1 to 0.4.0-2
Preparing to unpack .../22-libgarcon-common_0.4.0-2_all.deb ...
Unpacking libgarcon-common (0.4.0-2) over (4.16.1-1) ...
dpkg: warning: downgrading libglade2-0:amd64 from 1:2.6.4-2.3 to 1:2.6.4-2
Preparing to unpack .../23-libglade2-0_1%3a2.6.4-2_amd64.deb ...
Unpacking libglade2-0:amd64 (1:2.6.4-2) over (1:2.6.4-2.3) ...
dpkg: warning: downgrading liblqr-1-0:amd64 from 0.4.2-2.1 to 0.4.2-2+b2
Preparing to unpack .../24-liblqr-1-0_0.4.2-2+b2_amd64.deb ...
Unpacking liblqr-1-0:amd64 (0.4.2-2+b2) over (0.4.2-2.1) ...
dpkg: warning: downgrading imagemagick-6-common from 8:6.9.11.60+dfsg-1 to 8:6.9.7.4+dfsg-11+deb9u12
Preparing to unpack .../25-imagemagick-6-common_8%3a6.9.7.4+dfsg-11+deb9u12_all.deb ...
Unpacking imagemagick-6-common (8:6.9.7.4+dfsg-11+deb9u12) over (8:6.9.11.60+dfsg-1) ...
dpkg: warning: downgrading libbz2-dev:amd64 from 1.0.8-4 to 1.0.6-8.1
Preparing to unpack .../26-libbz2-dev_1.0.6-8.1_amd64.deb ...
Unpacking libbz2-dev:amd64 (1.0.6-8.1) over (1.0.8-4) .......................................................................]
dpkg: warning: downgrading bzip2 from 1.0.8-4 to 1.0.6-8.1
Preparing to unpack .../27-bzip2_1.0.6-8.1_amd64.deb ...
Unpacking bzip2 (1.0.6-8.1) over (1.0.8-4) ...
dpkg: warning: downgrading libbz2-1.0:amd64 from 1.0.8-4 to 1.0.6-8.1
Preparing to unpack .../28-libbz2-1.0_1.0.6-8.1_amd64.deb ...
Unpacking libbz2-1.0:amd64 (1.0.6-8.1) over (1.0.8-4) ...
Errors were encountered while processing:
/tmp/apt-dpkg-install-trNJT3/07-bash-completion_1%3a2.1-4.3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@debian:/#
en relancant
```text
root@debian:/# apt full-upgrade
Unpacking sgml-base (1.29) over (1.30) ...
dpkg: warning: downgrading libxcb-render-util0:amd64 from 0.3.9-1+b1 to 0.3.9-1
Preparing to unpack .../55-libxcb-render-util0_0.3.9-1_amd64.deb ...
Unpacking libxcb-render-util0:amd64 (0.3.9-1) over (0.3.9-1+b1) ...
dpkg: warning: downgrading libxcb-shm0:amd64 from 1.14-3 to 1.12-1
Preparing to unpack .../56-libxcb-shm0_1.12-1_amd64.deb ...
De-configuring libxcb-shm0:i386 (1.14-3) ...
Unpacking libxcb-shm0:amd64 (1.12-1) over (1.14-3) ...
dpkg: warning: downgrading libxcb-shm0:i386 from 1.14-3 to 1.12-1
Preparing to unpack .../57-libxcb-shm0_1.12-1_i386.deb ...
Unpacking libxcb-shm0:i386 (1.12-1) over (1.14-3) ...
dpkg: warning: downgrading libxcb-cursor0:amd64 from 0.1.1-4 to 0.1.1-3
Preparing to unpack .../58-libxcb-cursor0_0.1.1-3_amd64.deb ...
Unpacking libxcb-cursor0:amd64 (0.1.1-3) over (0.1.1-4) ...
dpkg: warning: downgrading libxcb-icccm4:amd64 from 0.4.1-1.1 to 0.4.1-1
Preparing to unpack .../59-libxcb-icccm4_0.4.1-1_amd64.deb ...
Unpacking libxcb-icccm4:amd64 (0.4.1-1) over (0.4.1-1.1) ...
dpkg: warning: downgrading manpages from 5.10-1 to 4.10-2
Preparing to unpack .../60-manpages_4.10-2_all.deb ...
Unpacking manpages (4.10-2) over (5.10-1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-NdbcY3/60-manpages_4.10-2_all.deb (--unpack):
trying to overwrite '/usr/share/man/man4/console_ioctl.4.gz', which is also in package manpages-dev 5.10-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
dpkg: warning: downgrading manpages-dev from 5.10-1 to 4.10-2
Preparing to unpack .../61-manpages-dev_4.10-2_all.deb ...
Unpacking manpages-dev (4.10-2) over (5.10-1) ...
Replaced by files in installed package manpages (5.10-1) ...
dpkg: warning: downgrading attr from 1:2.4.48-6 to 1:2.4.47-2+b2
Preparing to unpack .../62-attr_1%3a2.4.47-2+b2_amd64.deb ...
Unpacking attr (1:2.4.47-2+b2) over (1:2.4.48-6) ...
dpkg: warning: downgrading libattr1:amd64 from 1:2.4.48-6 to 1:2.4.47-2+b2
Preparing to unpack .../63-libattr1_1%3a2.4.47-2+b2_amd64.deb ...
Unpacking libattr1:amd64 (1:2.4.47-2+b2) over (1:2.4.48-6) ...
Errors were encountered while processing:
/tmp/apt-dpkg-install-NdbcY3/00-bash-completion_1%3a2.1-4.3_all.deb
/tmp/apt-dpkg-install-NdbcY3/60-manpages_4.10-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@debian:/#
apres quoi j’ai fait un apt fix broken install SANS ERREUR !!!
de plus /etc/osversion donnait bien un stretch
J’ai donc rebooté sur ma partition apparemment réparée : mais j’arrive sur un
il faut faire un fdisk sur ma partition stretch
(initramfs)
Reboot sur ma clé USB et
et voila : post 56
Pour etre tout a fait clair sur le boot sur ma partition /dev/sda4 (où j’ai eu un jour, un debian stretch opérationnel…) voici précisément ce que j’obtiens après être passé dans grub où j’ai choisi l’option habituelle :
fsck.ext4 : error while loading shared library : libcom_err.so.2 : cannot open shared object file : no such file…
fsck exited with status 127
The root filesystem on /dev/sda4 requires a manual fsck
Busybox v1.22.1 (Debian 1:1.22.0_19+deb9u1) build in shell (ash)
enter help…
(initramfs)
Apparemment il reste encore quelques paquets dans des états incohérents, dont celui en charge du contrôle de l’intégrité des partitions :
fsck.ext4 : error while loading shared library : libcom_err.so.2 : cannot open shared object file : no such file…
Ça devrait pouvoir être réglé par :
apt install {e2fsprogs,e2fslibs,libcomerr2}=1.43.4-2+deb9u2
apt install -f
(toujours à lancer depuis un chroot)
Merci vv222
J’avais eu un peu la même idée en installant libcomerr2 en version amd64
J’ai vu que dans /lib/x86_64 il n’y était pas alors qu’il y etait dans /lib/i386
(cette install n’a rien donné de plus)
Pas plus que la commande suivante :
root@debian:/# apt install {e2fsprogs,e2fslibs,libcomerr2}=1.43.4-2+deb9u2
Reading package lists... Done
Building dependency tree
Reading state information... Done
e2fslibs is already the newest version (1.43.4-2+deb9u2).
e2fsprogs is already the newest version (1.43.4-2+deb9u2).
libcomerr2 is already the newest version (1.43.4-2+deb9u2).
The following packages were automatically installed and are no longer required:
libglvnd0 linux-image-4.9.0-11-amd64 linux-image-4.9.0-12-amd64
linux-image-4.9.0-13-amd64 linux-image-4.9.0-6-amd64 linux-image-4.9.0-9-amd64
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 740 not upgraded.
root@debian:/#
Pour une raison qui m’échappe, le paquet semble installé mais la bibliothèque est manquante, ce qui devrait être confirmé par une erreur « No such file or directory » renvoyée par la commande suivante :
ls /lib/x86_64-linux-gnu/libcom_err.so.2
Si c’est bien le cas, en forcer la réinstallation devrait rétablir la bibliothèque manquante :
apt install --reinstall {e2fsprogs,e2fslibs,libcomerr2}=1.43.4-2+deb9u2
Il y était bien, mais j’ai lancé la reinstall et ca a débloqué la situation :
Maintenant le boot se passe sans erreur jusqu’à une console tty1.
On a 6 consoles mais on reste dans tty1 :
On n’a pas eu de demarrage du login manager (kddm je crois) et, par ailleurs,
kstart5 plasmashell rend une « commande introuvable »
Sans aucun doute des paquets manquants.
Je ne connais pas bien KDE, mais je pense que l’installation du paquet task-kde-desktop devrait permettre de s’assurer que l’environnement de bureau complet est bien disponible.
Incroyable, je me retrouve presque dans l’état antérieur !
SDDM et KDE marchent bien.
Je verifie les details
L’install Buster, je la garde pour un peu plus tard. Lundi.
La migration de ma 2eme machine - je n’ai plus envie…
Déjà un grand bravo et merci à toi, pour ta patience.
63 messages - et 19 jours de travail, c’est un record d’emmerdement maximum, NON ?
Je te tiens au courant.
Beau boulot !
En suivant ces instructions, ça devrait pouvoir se faire sans douleur : Mises à niveau depuis Debian 9 (Stretch)
Ce n’était clairement pas une situation évidente pour un dépannage par forum interposé. Je pense qu’en face à face ça n’aurait été l’affaire que de quelques heures, une après-midi tout au plus.
À côté de ça, la mise-à-jour vers Buster va être une promenade de santé