#1 Le 24/03/2020, à 22:16
- Crestey
[Résolu] commande sudo apt-get update bloquée
Bonjour à tous,
Je suis sous xubuntu 16.04.
depuis quelques temps, je suis bloqué avec la commande sudo apt-get update
sudo apt-get update -y
Atteint :1 http://fr.archive.ubuntu.com/ubuntu xenial InRelease
Réception de :2 http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Réception de :3 http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Réception de :4 http://fr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1 120 kB]
Réception de :5 http://fr.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [907 kB]
Réception de :6 http://fr.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [427 kB]
Réception de :7 http://fr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [322 kB]
Réception de :8 http://fr.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [243 kB]
Réception de :9 http://fr.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [793 kB]
Réception de :10 http://fr.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [719 kB]
Réception de :11 http://fr.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [275 kB]
Réception de :12 http://fr.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [418 kB]
Réception de :13 http://fr.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5 964 B]
Réception de :14 http://fr.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3 328 B]
Réception de :15 http://fr.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5 320 B]
0% [Connexion à security.ubuntu.com (2001:67c:1360:8001::24)] [Connexion à ppa.launchpad.net (2001:67c:1560:8008::15)]
Ça reste bloqué la dessus plusieurs minutes, heures, etc...
Je ne sais pas d'où ça vient. Pourriez m'aider svp
Dominique
Dernière modification par Crestey (Le 25/03/2020, à 00:58)
Merci à tous.
Sous Ubuntu/XFCE depuis 2013. Ça fonctionne vraiment très bien.
Hors ligne
#2 Le 24/03/2020, à 22:23
- xubu1957
Re : [Résolu] commande sudo apt-get update bloquée
Bonjour,
[Connexion à ppa.launchpad.net (2001:67c:1560:8008::15)]
Tu as rajouté des PPA.
Montre le sources.list :
find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; nl -ba "$1"' _ '{}' \;
_ _ _
Ou alors :
Ok, j'ai découvert le problème et j'ai pensé qu'il serait bien de l'ajouter à la discussion ici afin que d'autres personnes puissent le trouver utile.
Le problème était que l'ipv6 n'était pas activé dans mon modem Internet domestique. Je suis donc allé à l'adresse IP de configuration du modem et je l'ai activé et le problème a également été résolu chez moi.
Dans > askubuntu.com/questions/1199285/apt-update-failing-because-it-cant-connect-to-ppa-launchpad-net
(Edit=lien corrigé)
Dernière modification par xubu1957 (Le 24/03/2020, à 22:40)
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
En ligne
#3 Le 24/03/2020, à 22:31
- Crestey
Re : [Résolu] commande sudo apt-get update bloquée
Merci Voili, voilou (le lien askubuntu ne marche pas)
crestey2@pc12:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; nl -ba "$1"' _ '{}' \;
/etc/apt/sources.list.d/apandada1-ubuntu-brightness-controller-xenial.list
/etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list
1 deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu xenial main
2 # deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu xenial main
/etc/apt/sources.list.d/phoerious-ubuntu-keepassxc-xenial.list
1 # deb http://ppa.launchpad.net/phoerious/keepassxc/ubuntu xenial main
2 # deb-src http://ppa.launchpad.net/phoerious/keepassxc/ubuntu xenial main
/etc/apt/sources.list
1 # deb cdrom:[Xubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main multiverse restricted universe
2
3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
4 # newer versions of the distribution.
5 deb http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted
6 # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted
7
8 ## Major bug fix updates produced after the final release of the
9 ## distribution.
10 deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
11 # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
12
13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
14 ## team. Also, please note that software in universe WILL NOT receive any
15 ## review or updates from the Ubuntu security team.
16 deb http://fr.archive.ubuntu.com/ubuntu/ xenial universe
17 # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial universe
18 deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe
19 # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe
20
21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
22 ## team, and may not be under a free licence. Please satisfy yourself as to
23 ## your rights to use the software. Also, please note that software in
24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
25 ## security team.
26 deb http://fr.archive.ubuntu.com/ubuntu/ xenial multiverse
27 # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial multiverse
28 deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
29 # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
30
31 ## N.B. software from this repository may not have been tested as
32 ## extensively as that contained in the main release, although it includes
33 ## newer versions of some applications which may provide useful features.
34 ## Also, please note that software in backports WILL NOT receive any review
35 ## or updates from the Ubuntu security team.
36 deb http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
37 # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
38
39 ## Uncomment the following two lines to add software from Canonical's
40 ## 'partner' repository.
41 ## This software is not part of Ubuntu, but is offered by Canonical and the
42 ## respective vendors as a service to Ubuntu users.
43 # deb http://archive.canonical.com/ubuntu xenial partner
44 # deb-src http://archive.canonical.com/ubuntu xenial partner
45
46 deb http://security.ubuntu.com/ubuntu xenial-security main restricted
47 # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
48 deb http://security.ubuntu.com/ubuntu xenial-security universe
49 # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
50 deb http://security.ubuntu.com/ubuntu xenial-security multiverse
51 # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
crestey2@pc12:~$
Dernière modification par Crestey (Le 24/03/2020, à 22:31)
Merci à tous.
Sous Ubuntu/XFCE depuis 2013. Ça fonctionne vraiment très bien.
Hors ligne
#4 Le 25/03/2020, à 00:12
- Crestey
Re : [Résolu] commande sudo apt-get update bloquée
Je ne m'en sors pas. Aucune commande ne passe en fait. J'y comprends rien.
crestey2@pc12:~$ sudo apt-get install -f
[sudo] Mot de passe de crestey2 :
Lecture des listes de paquets... Erreur !
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: Aucun fichier ou dossier de ce type)
E: Impossible d'ouvrir le fichier - open (2: Aucun fichier ou dossier de ce type)
E: Problem opening
E: Les listes de paquets ou le fichier « status » ne peuvent être analysés ou lus.
crestey2@pc12:~$ sudo dpkg --configure -a
dpkg : erreur : la lecture du fichier « info » « /var/lib/dpkg/status » du paquet a échoué: Aucun fichier ou dossier de ce type
crestey2@pc12:~$
Merci à tous.
Sous Ubuntu/XFCE depuis 2013. Ça fonctionne vraiment très bien.
Hors ligne
#5 Le 25/03/2020, à 00:16
- xubu1957
Re : [Résolu] commande sudo apt-get update bloquée
Cela dépasse mon niveau basique.
Et si tu essayais sur un autre serveur ?
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
En ligne
#6 Le 25/03/2020, à 00:25
- nany
Re : [Résolu] commande sudo apt-get update bloquée
Bonjour,
Ça sent mauvais ton histoire.
Donne le retour de :
ls -l /var/lib/dpkg/status*
Hors ligne
#7 Le 25/03/2020, à 00:32
- Crestey
Re : [Résolu] commande sudo apt-get update bloquée
Pour le #4, c'est résolu en suivant ça : https://superuser.com/questions/1216965 … -file-or-d
crestey2@pc12:~$ sudo apt-get install -f
[sudo] Mot de passe de crestey2 :
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 0 non mis à jour.
crestey2@pc12:~$ sudo dpkg --configure -a
crestey2@pc12:~$
Pour nany
crestey2@pc12:~$ ls -l /var/lib/dpkg/status*
-rw-r--r-- 1 root root 106704 mars 24 23:30 /var/lib/dpkg/status
-rw-r--r-- 1 root root 106704 mars 24 23:21 /var/lib/dpkg/status-old
crestey2@pc12:~$
Et donc ça reste toujours bloqué sur ça :
crestey2@pc12:~$ sudo apt-get update[sudo] Mot de passe de crestey2 :
Atteint :1 http://fr.archive.ubuntu.com/ubuntu xenial InRelease
Atteint :2 http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease
Atteint :3 http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease
0% [Connexion à security.ubuntu.com (2001:67c:1360:8001::24)]
Dernière modification par Crestey (Le 25/03/2020, à 00:34)
Merci à tous.
Sous Ubuntu/XFCE depuis 2013. Ça fonctionne vraiment très bien.
Hors ligne
#8 Le 25/03/2020, à 00:41
- nany
Re : [Résolu] commande sudo apt-get update bloquée
Et avec :
sudo apt clean && sudo apt update
?
Hors ligne
#9 Le 25/03/2020, à 00:50
- Crestey
Re : [Résolu] commande sudo apt-get update bloquée
pas mieux
crestey2@pc12:~$ sudo apt clean && sudo apt update
[sudo] Mot de passe de crestey2 :
0% [Connexion à archive.ubuntu.com (2001:67c:1360:8001::23)]
Dernière modification par Crestey (Le 25/03/2020, à 00:50)
Merci à tous.
Sous Ubuntu/XFCE depuis 2013. Ça fonctionne vraiment très bien.
Hors ligne
#10 Le 25/03/2020, à 00:51
- cqfd93
Re : [Résolu] commande sudo apt-get update bloquée
Bonjour,
Peut-être que forcer apt à utiliser ipv4 résoudrait le problème ?
J'ai trouvé ça.
Il suffirait d'ajouter un fichier 99force-ipv4 dans /etc/apt/apt.conf.d/ contenant Acquire::ForceIPv4 "true";. Avec cette commande :
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
− cqfd93 −
Hors ligne
#11 Le 25/03/2020, à 00:57
- Crestey
Re : [Résolu] commande sudo apt-get update bloquée
@ cqfd93
J'ai rien compris, mais c'est bon. Après cette commande, tout remarche !
Merci à vous !
Merci à tous.
Sous Ubuntu/XFCE depuis 2013. Ça fonctionne vraiment très bien.
Hors ligne
#12 Le 25/03/2020, à 00:58
- nany
Re : [Résolu] commande sudo apt-get update bloquée
0% [Connexion à security.ubuntu.com (2001:67c:1360:8001::24)]
Je viens de tester (avec ping), c’est le serveur security qui semble être dans les choux.
Il faudra réessayer plus tard.
[edit]Ah ben donc c’était un problème avec l’ipV6.[/edit]
Dernière modification par nany (Le 25/03/2020, à 00:59)
Hors ligne
#13 Le 25/03/2020, à 01:06
- Crestey
Re : [Résolu] commande sudo apt-get update bloquée
J'avais le même problème sur un autre pc xubuntu16.04 en 32b plutôt qu'en 64.
Même solution et ça refonctionne aussi.
Merci à tous.
Sous Ubuntu/XFCE depuis 2013. Ça fonctionne vraiment très bien.
Hors ligne
#14 Le 25/03/2020, à 01:13
- cqfd93
Re : [Résolu] commande sudo apt-get update bloquée
J'avais le même problème sur un autre pc xubuntu16.04 en 32b plutôt qu'en 64.
Même solution et ça refonctionne aussi.
Contente pour toi !
− cqfd93 −
Hors ligne
#15 Le 25/03/2020, à 01:20
- Crestey
Re : [Résolu] commande sudo apt-get update bloquée
Merci à toi !
Merci à tous.
Sous Ubuntu/XFCE depuis 2013. Ça fonctionne vraiment très bien.
Hors ligne