nany a écritAlors, pour les dépôts d’Ubuntu, il y a des restes de la version 19.10. C’est un bug de l’outil de migration (je ne sais pas si ce sera corrigé un jour).
Pour remettre d’aplomb ton fichiers sources.list, passe cette commande :
sudo sed -i "s/\(ubuntu\/* \)[a-z]*/\1$(lsb_release -sc)/" /etc/apt/sources.list
Elle ne renvoie rien, c’est normal.
Ensuite, tu as un fichier qui fait doublon pour
Teamviewer et qui affiche aussi les dépôts étranges.
On va le supprimer ainsi que d’autres fichiers inutiles.
Donne le retour de :
cd /etc/apt ; sudo rm -v *.distUpgrade ; cd sources.list.d ; sudo rm -v *.distUpgrade videolan* smathot* balena* tvinternal* ; cd
Enfin, pour réactiver le dépôt de
Teamviewer, il vaut mieux, comme indiqué dans le fichier, exécuter la commande suivante :
teamviewer repo default
Puis, pour vérifier que tout s’est bien passé, redonne le retour de :
find /etc/apt -type f -name '*.list*' -exec bash -c 'echo -e "\n$1\n"; [[ $1 = *".list" ]] && nl -ba "$1"' _ '{}' \;
Ah oui, on voit à tes captures d’écran que ton système n’est pas totalement francisé. Tu devrais lancer
Prise en charge de langues et accepter les installations proposées.
merci pour ton aide.
Donc j'ai bien passé la première commande qui n'a rien retourné, comme convenu.
Voici le retour de la deuxième commande :
marco@marco-N14xWU:~$ cd /etc/apt ; sudo rm -v *.distUpgrade ; cd sources.list.d ; sudo rm -v *.distUpgrade videolan* smathot* balena* tvinternal* ; cd
'sources.list.distUpgrade' supprimé
'balena-etcher.list.distUpgrade' supprimé
'smathot-ubuntu-cogscinl-eoan.list.distUpgrade' supprimé
'teamviewer.list.distUpgrade' supprimé
'tvinternal.list.distUpgrade' supprimé
'videolan.list' supprimé
'videolan.list.save' supprimé
'smathot-ubuntu-cogscinl-eoan.list' supprimé
rm: impossible de supprimer 'smathot-ubuntu-cogscinl-eoan.list.distUpgrade': Aucun fichier ou dossier de ce type
'smathot-ubuntu-cogscinl-eoan.list.save' supprimé
'balena-etcher.list' supprimé
rm: impossible de supprimer 'balena-etcher.list.distUpgrade': Aucun fichier ou dossier de ce type
'balena-etcher.list.save' supprimé
'tvinternal.list' supprimé
rm: impossible de supprimer 'tvinternal.list.distUpgrade': Aucun fichier ou dossier de ce type
'tvinternal.list.save' supprimé
marco@marco-N14xWU:~$
Réactivation des dépôts par defaut de Teamviewer :
marco@marco-N14xWU:~$ sudo teamviewer repo default
Restoring defaults from /opt/teamviewer/tv_bin/script/teamviewer.list ...
Active configuration lines in '/etc/apt/sources.list.d/teamviewer.list':
deb http://linux.teamviewer.com/deb stable main
marco@marco-N14xWU:~$
la vérification
marco@marco-N14xWU:~$ find /etc/apt -type f -name '*.list*' -exec bash -c 'echo -e "\n$1\n"; [[ $1 = *".list" ]] && nl -ba "$1"' _ '{}' \;
/etc/apt/sources.list.d/teamviewer.list.save
/etc/apt/sources.list.d/teamviewer.list
1 ### TeamViewer DEB repository list
2
3 ### NOTE: Manual changes to this file
4 ### - prevent it from being updated by TeamViewer package updates
5 ### - will be lost after using the 'teamviewer repo' command
6 ### The original file can be restored with this command:
7 ### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list
8 ### which has the same effect as 'teamviewer repo default'
9
10 ### NOTE: It is preferred to use the following commands to edit this file:
11 ### teamviewer repo - show current repository configuration
12 ### teamviewer repo default - restore default configuration
13 ### teamviewer repo disable - disable the repository
14 ### teamviewer repo stable - make all regular TeamViewer packages available (default)
15 ### teamviewer repo preview - additionally, make feature preview packages available
16 ### teamviewer repo development - additionally, make the latest development packages available
17
18
19 deb http://linux.teamviewer.com/deb stable main
20
21 # deb http://linux.teamviewer.com/deb preview main
22 # deb http://linux.teamviewer.com/deb development main
/etc/apt/sources.list
1
2 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
3 # newer versions of the distribution.
4 deb http://fr.archive.ubuntu.com/ubuntu/ focal main restricted
5
6 ## Major bug fix updates produced after the final release of the
7 ## distribution.
8 deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates main restricted
9 # deb-src 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 http://fr.archive.ubuntu.com/ubuntu/ focal-updates universe
16
17 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
18 ## team, and may not be under a free licence. Please satisfy yourself as to
19 ## your rights to use the software. Also, please note that software in
20 ## multiverse WILL NOT receive any review or updates from the Ubuntu
21 ## security team.
22 deb http://fr.archive.ubuntu.com/ubuntu/ focal multiverse
23 deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates multiverse
24
25 ## N.B. software from this repository may not have been tested as
26 ## extensively as that contained in the main release, although it includes
27 ## newer versions of some applications which may provide useful features.
28 ## Also, please note that software in backports WILL NOT receive any review
29 ## or updates from the Ubuntu security team.
30 deb http://fr.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
31 # deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
32
33 ## Uncomment the following two lines to add software from Canonical's
34 ## 'partner' repository.
35 ## This software is not part of Ubuntu, but is offered by Canonical and the
36 ## respective vendors as a service to Ubuntu users.
37 # deb http://archive.canonical.com/ubuntu focal partner
38
39 deb http://security.ubuntu.com/ubuntu focal-security main restricted
40 deb http://security.ubuntu.com/ubuntu focal-security universe
41 deb http://security.ubuntu.com/ubuntu focal-security multiverse
42 # deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
43
44 # This system was installed using small removable media
45 # (e.g. netinst, live or single CD). The matching "deb cdrom"
46 # entries were disabled at the end of the installation process.
47 # For information about how to configure apt package sources,
48 # see the sources.list(5) manual.
/etc/apt/sources.list.save
marco@marco-N14xWU:~$
Merci pour ces commandes, mais je me pose une question sur le fichier sources.list. j'ai l'impression qu'il se divise en deux, une première partie de commentaire et une second avec les dépots qu'il doit vérifier, c'est bien ça?
Pourquoi y a t-il besoin de commentaire? et pourquoi certaines lignes sont vides, comme les lignes 1, 10 ,16, 24, 32, 38, 43 ,
comment cela se fait que les dépôts ne s'affichent pas sous forme d'adresse web ? j'ai essayé de rentrer l'adresse internet d'un dépot par exemple celui de la ligne 41
http://security.ubuntu.com/ubuntu focal-security
mais il ne trouve pas la page! Bref j'aimerai bien comprendre tout ça plus en détail, merci de ton aide.