#1 Le 12/03/2022, à 10:35
- Appolon
apt ne fonctionne pas
Bonjour
Quand je veux utilisés la commande apt comme: sudo apt-get --purge remove virtualbox-6.1
Le terminal me renvoi :
E: Entrée 54 mal formée dans list fichier /etc/apt/sources.list (Component)
E: La liste des sources ne peut être lue.
E: Entrée 54 mal formée dans list fichier /etc/apt/sources.list (Component)
E: La liste des sources ne peut être lue.
Merci d'avance.
Hors ligne
#2 Le 12/03/2022, à 10:37
- xubu1957
Re : apt ne fonctionne pas
Bonjour,
Montre le sources.list :
find /etc/apt -type f -name '*.list*' -exec bash -c 'echo -e "\n\t$1\n"; [[ $1 = *".list" ]] && cat -n "$1"' _ '{}' \;
en te servant du Retour utilisable de commande.
Astuce pour copier / coller sans erreur :
triple clic gauche pour sélectionner et copier une ligne entière
clic molette pour coller dans le terminal
E: Entrée 54 mal formée dans list fichier /etc/apt/sources.list (Component)
E: La liste des sources ne peut être lue.
E: Entrée 54 mal formée dans list fichier /etc/apt/sources.list (Component)
E: La liste des sources ne peut être lue.
Dernière modification par xubu1957 (Le 12/03/2022, à 10:38)
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
Hors ligne
#3 Le 12/03/2022, à 10:40
- Appolon
Re : apt ne fonctionne pas
Bonjour merci d'avoir répondue si vite
La sortie de cette commande : find /etc/apt -type f -name '*.list*' -exec bash -c 'echo -e "\n\t$1\n"; [[ $1 = *".list" ]] && cat -n "$1"' _ '{}' \;
le terminal me renvoi:
/etc/apt/sources.list.save
/etc/apt/sources.list
1 # deb cdrom:[Ubuntu 20.04.3 LTS _Focal Fossa_ - Release amd64 (20210819)]/ focal main restricted
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/ focal main restricted
6
7 ## Major bug fix updates produced after the final release of the
8 ## distribution.
9 deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates main restricted
10
11 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
12 ## team. Also, please note that software in universe WILL NOT receive any
13 ## review or updates from the Ubuntu security team.
14 deb http://fr.archive.ubuntu.com/ubuntu/ focal universe
15 # deb-src http://fr.archive.ubuntu.com/ubuntu/ focal universe
16 deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates universe
17 # deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-updates universe
18
19 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
20 ## team, and may not be under a free licence. Please satisfy yourself as to
21 ## your rights to use the software. Also, please note that software in
22 ## multiverse WILL NOT receive any review or updates from the Ubuntu
23 ## security team.
24 deb http://fr.archive.ubuntu.com/ubuntu/ focal multiverse
25 # deb-src http://fr.archive.ubuntu.com/ubuntu/ focal multiverse
26 deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates multiverse
27 # deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-updates multiverse
28
29 ## N.B. software from this repository may not have been tested as
30 ## extensively as that contained in the main release, although it includes
31 ## newer versions of some applications which may provide useful features.
32 ## Also, please note that software in backports WILL NOT receive any review
33 ## or updates from the Ubuntu security team.
34 deb http://fr.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
35
36 ## Uncomment the following two lines to add software from Canonical's
37 ## 'partner' repository.
38 ## This software is not part of Ubuntu, but is offered by Canonical and the
39 ## respective vendors as a service to Ubuntu users.
40 # deb http://archive.canonical.com/ubuntu focal partner
41 # deb-src http://archive.canonical.com/ubuntu focal partner
42
43 deb http://security.ubuntu.com/ubuntu focal-security main restricted
44 deb http://security.ubuntu.com/ubuntu focal-security universe
45 # deb-src http://security.ubuntu.com/ubuntu focal-security universe
46 deb http://security.ubuntu.com/ubuntu focal-security multiverse
47 # deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
48
49 # This system was installed using small removable media
50 # (e.g. netinst, live or single CD). The matching "deb cdrom"
51 # entries were disabled at the end of the installation process.
52 # For information about how to configure apt package sources,
53 # see the sources.list(5) manual.
54 deb https://dl.winehq.org/wine-builds/ubuntu/focal main
55 # deb-src https://dl.winehq.org/wine-builds/ubuntu/focal main
56 deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
57 # deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main
/etc/apt/sources.list.d/virtualbox.list.save
/etc/apt/sources.list.d/audacity-team-ubuntu-daily-focal.list.save
/etc/apt/sources.list.d/virtualbox.list
/etc/apt/sources.list.d/audacity-team-ubuntu-daily-focal.list
1 deb http://ppa.launchpad.net/audacity-team/daily/ubuntu focal main
2 # deb-src http://ppa.launchpad.net/audacity-team/daily/ubuntu focal main
Dernière modification par cqfd93 (Le 12/03/2022, à 11:21)
Hors ligne
#4 Le 12/03/2022, à 10:42
- xubu1957
Re : apt ne fonctionne pas
Pour ajouter toi-même les balises code à ton précédent message #3 : Merci
Cliquer sur le lien « Modifier » en bas à droite du message
Sélectionner le texte
Cliquer sur le <> de l'éditeur de message
==============
Il manque une espace devant focal dans :
54 deb https://dl.winehq.org/wine-builds/ubuntu/focal main
55 # deb-src https://dl.winehq.org/wine-builds/ubuntu/focal main
mais on voit que les lignes 56 & 57 seraient correctes.
Dernière modification par xubu1957 (Le 12/03/2022, à 10:55)
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
Hors ligne
#5 Le 12/03/2022, à 10:50
- Appolon
Re : apt ne fonctionne pas
mais comment fait-on pour modifier ce fichier ?
Hors ligne
#6 Le 12/03/2022, à 10:55
- xubu1957
Re : apt ne fonctionne pas
Attends le passage d'aidants experts.
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
Hors ligne
#7 Le 12/03/2022, à 10:57
- Appolon
Re : apt ne fonctionne pas
Merci de m'avoir répondue si vite je vais cherchez autre part pour trouver ma réponse.
Hors ligne
#8 Le 12/03/2022, à 11:26
- cqfd93
Re : apt ne fonctionne pas
Bonjour,
Dans les lignes 54 et 55, il manque une espace entre / et focal. Pour corriger ça, passer cette commande en la copiant / collant dans le terminal, si ça se passe bien elle ne donne aucun retour :
sudo sed -i 's+/f+/ f+' /etc/apt/sources.list
Après ça, les mises à jour devraient passer :
sudo apt update
sudo apt full-upgrade
− cqfd93 −
Hors ligne
#9 Le 12/03/2022, à 11:46
- Appolon
Re : apt ne fonctionne pas
Bonjour désolé mais ne fonctionne pas
la première commande fonctionne (aucun retour)
mais a la deuxième le terminal me renvoi /
E: Entrée 5 mal formée dans list fichier /etc/apt/sources.list (absolute Suite Component)
E: La liste des sources ne peut être lue.
Merci
Hors ligne
#10 Le 12/03/2022, à 12:02
- ylag
Re : apt ne fonctionne pas
@cqfd93 :
Bonjour,
Au message #3, les lignes #54 et 55 font doublon avec les lignes #56 et 57 ?
A+
Hors ligne
#11 Le 12/03/2022, à 12:06
- cqfd93
Re : apt ne fonctionne pas
Donne les retours complets des commandes de mise à jour :
sudo apt update
sudo apt full-upgrade
Un retour complet doit contenir toutes les lignes depuis celle de la commande jusqu'à la ligne attendant la commande suivante, exemple :
moi@lenovo:~$ uname -a
Linux moi-lenovo 5.13.0-30-generic #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
moi@lenovo:~$
− cqfd93 −
Hors ligne
#12 Le 12/03/2022, à 12:12
- Appolon
Re : apt ne fonctionne pas
appolon@SiGau:~$ sudo apt update
[sudo] Mot de passe de appolon :
E: Entrée 5 mal formée dans list fichier /etc/apt/sources.list (absolute Suite Component)
E: La liste des sources ne peut être lue.
appolon@SiGau:~$
Pour la 1er commande
appolon@SiGau:~$ sudo apt full-upgrade
E: Entrée 5 mal formée dans list fichier /etc/apt/sources.list (absolute Suite Component)
E: La liste des sources ne peut être lue.
E: Entrée 5 mal formée dans list fichier /etc/apt/sources.list (absolute Suite Component)
E: La liste des sources ne peut être lue.
appolon@SiGau:~$
Pour la 2ème commande
Hors ligne
#13 Le 12/03/2022, à 12:31
- ylag
Re : apt ne fonctionne pas
Bonjour,
Faudrait revoir le contenu du fichier /etc/apt/sources.list :
cat -n /etc/apt/sources.list
A+
Hors ligne
#14 Le 12/03/2022, à 12:37
- Appolon
Re : apt ne fonctionne pas
Sa rend ça :
appolon@SiGau:~$ cat -n /etc/apt/sources.list
1 # deb cdrom:[Ubuntu 20.04.3 LTS _Focal Fossa_ - Release amd64 (20210819)]/ focal main restricted
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/ focal main restricted
6
7 ## Major bug fix updates produced after the final release of the
8 ## distribution.
9 deb http:// fr.archive.ubuntu.com/ubuntu/ focal-updates main restricted
10
11 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
12 ## team. Also, please note that software in universe WILL NOT receive any
13 ## review or updates from the Ubuntu security team.
14 deb http:// fr.archive.ubuntu.com/ubuntu/ focal universe
15 # deb-src http:// fr.archive.ubuntu.com/ubuntu/ focal universe
16 deb http:// fr.archive.ubuntu.com/ubuntu/ focal-updates universe
17 # deb-src http:// fr.archive.ubuntu.com/ubuntu/ focal-updates universe
18
19 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
20 ## team, and may not be under a free licence. Please satisfy yourself as to
21 ## your rights to use the software. Also, please note that software in
22 ## multiverse WILL NOT receive any review or updates from the Ubuntu
23 ## security team.
24 deb http:// fr.archive.ubuntu.com/ubuntu/ focal multiverse
25 # deb-src http:// fr.archive.ubuntu.com/ubuntu/ focal multiverse
26 deb http:// fr.archive.ubuntu.com/ubuntu/ focal-updates multiverse
27 # deb-src http:// fr.archive.ubuntu.com/ubuntu/ focal-updates multiverse
28
29 ## N.B. software from this repository may not have been tested as
30 ## extensively as that contained in the main release, although it includes
31 ## newer versions of some applications which may provide useful features.
32 ## Also, please note that software in backports WILL NOT receive any review
33 ## or updates from the Ubuntu security team.
34 deb http:// fr.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
35
36 ## Uncomment the following two lines to add software from Canonical's
37 ## 'partner' repository.
38 ## This software is not part of Ubuntu, but is offered by Canonical and the
39 ## respective vendors as a service to Ubuntu users.
40 # deb http://archive.canonical.com/ubuntu focal partner
41 # deb-src http://archive.canonical.com/ubuntu focal partner
42
43 deb http://security.ubuntu.com/ubuntu focal-security main restricted
44 deb http://security.ubuntu.com/ubuntu focal-security universe
45 # deb-src http://security.ubuntu.com/ubuntu focal-security universe
46 deb http://security.ubuntu.com/ubuntu focal-security multiverse
47 # deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
48
49 # This system was installed using small removable media
50 # (e.g. netinst, live or single CD). The matching "deb cdrom"
51 # entries were disabled at the end of the installation process.
52 # For information about how to configure apt package sources,
53 # see the sources.list(5) manual.
54 deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
55 # deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main
56 deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
57 # deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main
appolon@SiGau:~$
Hors ligne
#15 Le 12/03/2022, à 12:39
- cqfd93
Re : apt ne fonctionne pas
Bizarre ce message d'erreur, je ne vois rien qui cloche dans la ligne 5.
On va essayer autre chose :
sauvegarder le fichier sources.list actuel
en recréer un contenant l'essentiel
Sauvegarde du fichier actuel (donne le retour) :
sudo mv -v /etc/apt/sources.list /etc/apt/sources.list.old
Création du nouveau fichier (retour) :
Copie tout le bloc qui suit et colle-le en une seule fois dans le terminal (termine avec Entrée) :sudo tee /etc/apt/sources.list <<EOF deb http://fr.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse deb http://fr.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse deb http://fr.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse deb http://archive.canonical.com/ubuntu focal partner deb https://dl.winehq.org/wine-builds/ubuntu/ focal main EOF
Mises à jour (retour) :
sudo apt update sudo apt full-upgrade
Dernière modification par cqfd93 (Le 12/03/2022, à 12:46)
− cqfd93 −
Hors ligne
#16 Le 12/03/2022, à 12:41
- ylag
Re : apt ne fonctionne pas
Re,
Vu au #14, à la ligne #5 :
deb http:// fr.archive.ubuntu.com/ubuntu/ focal main restricted
...alors qu'il faut :
deb http://fr.archive.ubuntu.com/ubuntu/ focal main restricted
Il y a un espace en trop entre http:// et fr.archive; Cette erreurn semble se répéter à toutes les lignes acives du fichier ?
Il faut suivre la recommendation de @cqfd93 au message #15 pour corriger.
A+
Dernière modification par ylag (Le 12/03/2022, à 12:45)
Hors ligne
#17 Le 12/03/2022, à 12:44
- cqfd93
Re : apt ne fonctionne pas
Bizarre ce message d'erreur, je ne vois rien qui cloche dans la ligne 5.
AH oui !!! C'est de ma faute ! J'ai voulu faire une commande courte et je n'ai pas fait assez attention à son effet, par moments je suis assez nulle ! Désolée !
Tous les "/fr" ont été remplacés par "/ fr" !
Oublie mon précédent message et fais simplement :
sudo sed -i 's/ fr/fr/' /etc/apt/sources.list
Et pour supprimer le doublon winehq :
sudo sed -i '56,57d' /etc/apt/sources.list
sudo apt update
sudo apt full-upgrade
− cqfd93 −
Hors ligne