#1 Le 01/04/2020, à 17:46
- helenou
[Résolu] Erreur MAJ - sources.list en cause
Bonjour,
Sauf erreur de ma part, mes soucis de mise à jour d'Ubuntu 18.04.4 Lts sont liés à de multiples repos.
Voici les erreurs quand je lance l'update :
https://i.ibb.co/VDTwHs7/sourceslst2020 … -33-01.png
Problème lié aussi je n'arrive plus à ouvrir le terminal intégré gnome (par click comme par Ctrl+Alt+Tab).
Désolé je n'arrive pas à faire de copier coller avec le terminal alternatif.
Je me demande si mes MAJ n'ont pas été interrompues avec mon laptop qui s'éteignait pour la batterie une fois.
Y a-t-il de fixer ces multiples références automatiquement ou bien il faut reprendre les sources ligne par ligne?
Merci de vos réponses !
Dernière modification par helenou (Le 05/04/2020, à 17:38)
Hors ligne
#2 Le 01/04/2020, à 17:54
- nany
Re : [Résolu] Erreur MAJ - sources.list en cause
Bonjour,
À brûle-pourpoint je commencerais par supprimer la ligne 52 du sources.list.
Donne le retour de :
sudo sed -i '52d' /etc/apt/sources.list && find /etc/apt -type f -name '*.list*' -exec bash -c 'echo -e "\n$1\n"; [[ $1 = *".list" ]] && nl -ba "$1"' _ '{}' \;
Attention à ne pas faire d’erreur en recopiant.
Hors ligne
#3 Le 01/04/2020, à 17:56
- nany
Re : [Résolu] Erreur MAJ - sources.list en cause
Problème lié aussi je n'arrive plus à ouvrir le terminal intégré gnome (par click comme par Ctrl+Alt+Tab).
Tu peux peut-être utiliser xterm.
Hors ligne
#4 Le 01/04/2020, à 18:30
- helenou
Re : [Résolu] Erreur MAJ - sources.list en cause
J'utilise déjà uxterm..
https://i.ibb.co/mCkDh5D/Capture-d-cran … -19-41.png
https://i.ibb.co/SPbgh5W/Capture-d-cran … -25-50.png
Modération : merci d'utiliser des images de petite taille (300x300) ou des miniatures pointant sur ces images (Des hébergeurs comme Toile Libre ou TDCT'Pix le permettent).
Dernière modification par cqfd93 (Le 01/04/2020, à 18:54)
Hors ligne
#5 Le 01/04/2020, à 18:38
- nany
Re : [Résolu] Erreur MAJ - sources.list en cause
Bien. Redonne le retour de :
sudo apt update
Hors ligne
#6 Le 01/04/2020, à 18:53
- cqfd93
Re : [Résolu] Erreur MAJ - sources.list en cause
Modération
Il faut donner les retours sous forme de texte entre balises code (explications ici).
− cqfd93 −
Hors ligne
#7 Le 01/04/2020, à 19:02
- nany
Re : [Résolu] Erreur MAJ - sources.list en cause
@cqfd93 : connais-tu une technique pour faire des copier/coller avec uxterm ?
Hors ligne
#8 Le 01/04/2020, à 19:42
- cqfd93
Re : [Résolu] Erreur MAJ - sources.list en cause
@cqfd93 : connais-tu une technique pour faire des copier/coller avec uxterm ?
Oui :
sélection à la souris
collage par clic molette
Ça marche parfaitement chez moi (Ubuntu 16.04 Unity)
− cqfd93 −
Hors ligne
#9 Le 01/04/2020, à 19:50
- nany
Re : [Résolu] Erreur MAJ - sources.list en cause
Merci beaucoup.
Ça marche aussi avec 18.04.
Hors ligne
#10 Le 01/04/2020, à 20:00
- helenou
Re : [Résolu] Erreur MAJ - sources.list en cause
Bien. Redonne le retour de :
sudo apt update
Désolé, je sais que c'est pas top les copies d'écran. Je n'y arrivais pas avec Xterm ni Uxterm, passé sur Sakura..
Voila le retour:
Atteint :1 http://fr.archive.ubuntu.com/ubuntu bionic InRelease
Atteint :2 http://packages.microsoft.com/repos/vscode stable InRelease
Atteint :3 http://repo.mysql.com/apt/ubuntu bionic InRelease
Atteint :4 http://ppa.launchpad.net/fossfreedom/rhythmbox-plugins/ubuntu bionic InRelease
Réception de :5 http://fr.archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]
Atteint :6 https://deb.nodesource.com/node_13.x bionic InRelease
Atteint :7 http://ppa.launchpad.net/sylvain-pineau/kazam/ubuntu bionic InRelease
Réception de :8 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Réception de :9 http://fr.archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
Atteint :10 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu bionic InRelease
Atteint :11 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Réception de :12 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [662 kB]
Réception de :13 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38,5 kB]
Réception de :12 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [662 kB]
Réception de :13 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38,5 kB]
Réception de :14 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [17,6 kB]
Réception de :15 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [41,4 kB]
Réception de :16 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42,1 kB]
Réception de :17 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [897 kB]
Réception de :18 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [16,4 kB]
Réception de :19 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [106 kB]
Réception de :20 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2464 B]
Réception de :21 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [307 kB]
Réception de :22 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [73,8 kB]
Réception de :23 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [140 kB]
Réception de :24 http://fr.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1012 kB]
Réception de :25 http://fr.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1061 kB]
Réception de :26 http://fr.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [273 kB]
Réception de :27 http://fr.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [209 kB]
Réception de :28 http://fr.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [475 kB]
Réception de :29 http://fr.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2468 B]
Réception de :30 http://fr.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7976 B]
5375 ko réceptionnés en 38s (142 ko/s)
sh: 1: /usr/lib/cnf-update-db: not found
Lecture des listes de paquets... Fait
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
Hors ligne
#11 Le 01/04/2020, à 20:10
- helenou
Re : [Résolu] Erreur MAJ - sources.list en cause
ça ne marche pas chez moi, j'ai tenté d'améliorer ma config mais entre xterm et uxterm impossible. D'habitude, ça marche avec gnome-terminal
J'ai cherché un autre terminal en attendant de réparer.
nany a écrit :@cqfd93 : connais-tu une technique pour faire des copier/coller avec uxterm ?
Oui :
sélection à la souris
collage par clic molette
Ça marche parfaitement chez moi (Ubuntu 16.04 Unity)
Hors ligne
#12 Le 01/04/2020, à 20:17
- nany
Re : [Résolu] Erreur MAJ - sources.list en cause
Bon, on va essayer de réinstaller ubuntu-desktop.
Donne le retour de :
sudo apt install -y --reinstall --install-recommends ubuntu-desktop
Hors ligne
#13 Le 01/04/2020, à 20:39
- helenou
Re : [Résolu] Erreur MAJ - sources.list en cause
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 6 non mis à jour.
Il est nécessaire de prendre 3664 o dans les archives.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Réception de :1 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ubuntu-desktop amd64 1.417.4 [3664 B]
3664 o réceptionnés en 0s (17,0 ko/s)
(Lecture de la base de données... 202042 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../ubuntu-desktop_1.417.4_amd64.deb ...
Dépaquetage de ubuntu-desktop (1.417.4) sur (1.417.4) ...
Paramétrage de ubuntu-desktop (1.417.4) ...
Hors ligne
#14 Le 01/04/2020, à 20:44
- nany
Re : [Résolu] Erreur MAJ - sources.list en cause
Bon, y a rien concernant gnome-terminal, dommage.
Donne le retour de :
ls -la /usr/bin/python
Hors ligne
#15 Le 01/04/2020, à 20:45
- helenou
Re : [Résolu] Erreur MAJ - sources.list en cause
$ ls -la /usr/bin/python
lrwxrwxrwx 1 root root 18 avril 1 15:21 /usr/bin/python -> /usr/bin/python2.7
A noter que j'ai Python 2.7 (systeme), 3.6 et 3.7
J'ai donc apparemment tout cela:
python
python2
python2.7
python 3m
python3.6 et 3.7
Dernière modification par helenou (Le 01/04/2020, à 20:55)
Hors ligne
#16 Le 01/04/2020, à 20:48
- helenou
Re : [Résolu] Erreur MAJ - sources.list en cause
Au début de l'erreur j'avais simplement un sens interdit pour me signifier erreur pour retrouver les MAJ. D'ou la piste sources.list mais elle est super longue
Hors ligne
#17 Le 01/04/2020, à 20:57
- nany
Re : [Résolu] Erreur MAJ - sources.list en cause
Ça pointe bien vers python2.7, c’est normal :
Donne les retours de :
sudo apt install --reinstall python-apt
sudo apt update
Hors ligne
#18 Le 01/04/2020, à 21:07
- nany
Re : [Résolu] Erreur MAJ - sources.list en cause
Au début de l'erreur j'avais simplement un sens interdit pour me signifier erreur pour retrouver les MAJ. D'ou la piste sources.list mais elle est super longue
Pour le sources.list, c’est corrigé. Mais tu as une autre erreur que j’essaie de résoudre.
Ensuite, on verra pour gnome-terminal.
Hors ligne
#19 Le 01/04/2020, à 21:17
- helenou
Re : [Résolu] Erreur MAJ - sources.list en cause
I'm running them. Meanwhile I do notice that I have a ppa for Java 8 (webup8team) that is discontinued I'd have to remove ppa and add a new one, is there a replace function otherwise ?
found this to remove ppa
Je ne suis pas sûre que Java8 sera correctement associé si je ne mets pas le nouveau ppa avant, explication bienvenue
Dernière modification par helenou (Le 01/04/2020, à 21:29)
Hors ligne
#20 Le 01/04/2020, à 21:20
- helenou
Re : [Résolu] Erreur MAJ - sources.list en cause
J'ai switcher en anglais sorry, j'étais en train de chercher le bon ppa.
Voilà l'output:
sudo apt install --reinstall python-apt
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Paquets suggérés :
python-apt-dbg python-apt-doc
Les NOUVEAUX paquets suivants seront installés :
python-apt
0 mis à jour, 1 nouvellement installés, 0 à enlever et 6 non mis à jour.
Il est nécessaire de prendre 151 ko dans les archives.
Après cette opération, 693 ko d'espace disque supplémentaires seront utilisés.
Réception de :1 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python-apt amd64 1.6.5ubuntu0.2 [151 kB]
151 ko réceptionnés en 0s (392 ko/s)
Sélection du paquet python-apt précédemment désélectionné.
(Lecture de la base de données... 202042 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../python-apt_1.6.5ubuntu0.2_amd64.deb ...
Dépaquetage de python-apt (1.6.5ubuntu0.2) ...
Paramétrage de python-apt (1.6.5ubuntu0.2) ...
sudo apt update
Atteint :1 http://fr.archive.ubuntu.com/ubuntu bionic InRelease
Atteint :2 http://fr.archive.ubuntu.com/ubuntu bionic-updates InRelease
Atteint :3 http://fr.archive.ubuntu.com/ubuntu bionic-backports InRelease
Réception de :4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Atteint :5 http://ppa.launchpad.net/fossfreedom/rhythmbox-plugins/ubuntu bionic InRelease
Atteint :6 http://repo.mysql.com/apt/ubuntu bionic InRelease
Atteint :7 http://packages.microsoft.com/repos/vscode stable InRelease
Atteint :8 http://ppa.launchpad.net/sylvain-pineau/kazam/ubuntu bionic InRelease
Atteint :9 https://deb.nodesource.com/node_13.x bionic InRelease
Atteint :10 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu bionic InRelease
Atteint :11 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Réception de :12 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38,5 kB]
Réception de :13 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [17,6 kB]
Réception de :14 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [41,5 kB]
Réception de :15 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42,1 kB]
Réception de :16 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [108 kB]
Réception de :17 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2464 B]
Réception de :17 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2464 B]
338 ko réceptionnés en 44s (7648 o/s)
sh: 1: /usr/lib/cnf-update-db: not found
Lecture des listes de paquets... Fait
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
Hors ligne
#21 Le 01/04/2020, à 21:29
- nany
Re : [Résolu] Erreur MAJ - sources.list en cause
Bon alors essayons avec python3.
Donne les retours de :
sudo apt install --reinstall -y python3-apt
sudo apt update
sudo apt autoremove --purge -y
Hors ligne
#22 Le 01/04/2020, à 21:30
- helenou
Re : [Résolu] Erreur MAJ - sources.list en cause
Déjà une erreur à la première commande:
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Paquets suggérés :
python-apt-dbg python-apt-doc
Les NOUVEAUX paquets suivants seront installés :
python-apt
0 mis à jour, 1 nouvellement installés, 0 à enlever et 6 non mis à jour.
Il est nécessaire de prendre 151 ko dans les archives.
Après cette opération, 693 ko d'espace disque supplémentaires seront utilisés.
Réception de :1 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python-apt amd64 1.6.5ubuntu0.2 [151 kB]
151 ko réceptionnés en 0s (392 ko/s)
Sélection du paquet python-apt précédemment désélectionné.
(Lecture de la base de données... 202042 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../python-apt_1.6.5ubuntu0.2_amd64.deb ...
Dépaquetage de python-apt (1.6.5ubuntu0.2) ...
Paramétrage de python-apt (1.6.5ubuntu0.2) ...
helene@helene-LDLC:~$ sudo apt update
Atteint :1 http://fr.archive.ubuntu.com/ubuntu bionic InRelease
Atteint :2 http://fr.archive.ubuntu.com/ubuntu bionic-updates InRelease
Atteint :3 http://fr.archive.ubuntu.com/ubuntu bionic-backports InRelease
Réception de :4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Atteint :5 http://ppa.launchpad.net/fossfreedom/rhythmbox-plugins/ubuntu bionic InRelease
Atteint :6 http://repo.mysql.com/apt/ubuntu bionic InRelease
Atteint :7 http://packages.microsoft.com/repos/vscode stable InRelease
Atteint :8 http://ppa.launchpad.net/sylvain-pineau/kazam/ubuntu bionic InRelease
Atteint :9 https://deb.nodesource.com/node_13.x bionic InRelease
Atteint :10 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu bionic InRelease
Atteint :11 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Réception de :12 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38,5 kB]
Réception de :13 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [17,6 kB]
Réception de :14 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [41,5 kB]
Réception de :15 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42,1 kB]
Réception de :16 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [108 kB]
Réception de :17 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2464 B]
Réception de :17 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2464 B]
338 ko réceptionnés en 44s (7648 o/s)
sh: 1: /usr/lib/cnf-update-db: not found
Lecture des listes de paquets... Fait
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
helene@helene-LDLC:~$
helene@helene-LDLC:~$ sudo apt install --reinstall -y python3-apt
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 6 non mis à jour.
Il est nécessaire de prendre 149 ko dans les archives.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Réception de :1 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-apt amd64 1.6.5ubuntu0.2 [149 kB]
149 ko réceptionnés en 0s (391 ko/s)
(Lecture de la base de données... 202071 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../python3-apt_1.6.5ubuntu0.2_amd64.deb ...
/var/lib/dpkg/info/python3-apt.prerm: 6: /var/lib/dpkg/info/python3-apt.prerm: py3clean: not found
dpkg: avertissement: old python3-apt package pre-removal script subprocess returned error exit status 127
dpkg: tentative d'exécution du script du nouveau paquet à la place...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: erreur de traitement de l'archive /var/cache/apt/archives/python3-apt_1.6.5ubuntu0.2_amd64.deb (--unpack) :
new python3-apt package pre-removal script subprocess returned error exit status 127
/var/lib/dpkg/info/python3-apt.postinst: 6: /var/lib/dpkg/info/python3-apt.postinst: py3compile: not found
dpkg : error while cleaning up:
installed python3-apt package post-installation script subprocess returned error exit status 127
Des erreurs ont été rencontrées pendant l'exécution :
/var/cache/apt/archives/python3-apt_1.6.5ubuntu0.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Hors ligne
#23 Le 01/04/2020, à 21:32
- helenou
Re : [Résolu] Erreur MAJ - sources.list en cause
sudo apt update :
Atteint :1 http://fr.archive.ubuntu.com/ubuntu bionic InRelease
Atteint :2 http://fr.archive.ubuntu.com/ubuntu bionic-updates InRelease
Atteint :3 http://fr.archive.ubuntu.com/ubuntu bionic-backports InRelease
Atteint :4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Atteint :5 http://ppa.launchpad.net/fossfreedom/rhythmbox-plugins/ubuntu bionic InRelease
Atteint :6 http://repo.mysql.com/apt/ubuntu bionic InRelease
Atteint :7 http://packages.microsoft.com/repos/vscode stable InRelease
Atteint :8 https://deb.nodesource.com/node_13.x bionic InRelease
Atteint :9 http://ppa.launchpad.net/sylvain-pineau/kazam/ubuntu bionic InRelease
Atteint :10 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu bionic InRelease
Atteint :11 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
sh: 1: /usr/lib/cnf-update-db: not found
Lecture des listes de paquets... Fait
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
Hors ligne
#24 Le 01/04/2020, à 21:35
- helenou
Re : [Résolu] Erreur MAJ - sources.list en cause
et la derniere:
sudo apt autoremove --purge -y
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 6 non mis à jour.
1 partiellement installés ou enlevés.
Il est nécessaire de prendre 0 o/149 ko dans les archives.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
dpkg: erreur de traitement du paquet python3-apt (--configure) :
le paquet est dans un état vraiment incohérent; vous devriez
le réinstaller avant de tenter de le configurer.
Des erreurs ont été rencontrées pendant l'exécution :
python3-apt
E: Sub-process /usr/bin/dpkg returned an error code (1)
Hors ligne
#25 Le 01/04/2020, à 21:43
- nany
Re : [Résolu] Erreur MAJ - sources.list en cause
OK. Donne le retour de :
ls -ld /usr/lib/python3/dist-packages/apt*
Hors ligne