#1 Le 09/12/2018, à 19:23
- acleade
Doublons dans sources list (Résolu)
Bonjour,
j'ai un rapport de Bug m'indiquant que j'ai des doublons dans mes sources list.
je pourrais poster ici le détail mais c'est peut-être superflu pour l'instant.
je souhaitait installer mono, pour faire tourner Hubic, solution qui fonctionne bien sur mon autre poste avec 16.04 (je l'avais installé sous une version précédente)
j'ai trouvé la commande pour avoir le détail des sources de dépôt sur cette discussion, mais ce qu'on doit faire du résultat n'est pas très clair pour moi, même s'il s'agit du même problème.
le terminal ci dessous reprend donc mes manips pour installer le dépot de mono, (j'avais essayé sous la version précédente de ce poste 16.04 mais sans succès), puis le résultat de la commande pour le fichiers des sources.
Si quelqu'un peut m'aider dans l'étape suivante (comment supprimer les lignes en trop, dont je peux poster la liste si nécessaire...) ça me serait d'un grand secours
jean-paul@HP-UB:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
[sudo] Mot de passe de jean-paul :
Executing: /tmp/apt-key-gpghome.LOJ5aDggBl/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
gpg: key A6A19B38D3D831EF: 2 signatures not checked due to missing keys
gpg: clef A6A19B38D3D831EF : « Xamarin Public Jenkins (auto-signing) <releng@xamarin.com> » n'est pas modifiée
gpg: Quantité totale traitée : 1
gpg: non modifiées : 1
jean-paul@HP-UB:~$ echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
deb https://download.mono-project.com/repo/ubuntu stable-bionic main
jean-paul@HP-UB:~$
jean-paul@HP-UB:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
jean-paul@HP-UB:~$ echo $DESKTOP_SESSION
ubuntu
jean-paul@HP-UB:~$ cat /etc/apt/sources.list | egrep -v "(^#.*|^$)"
deb http://archive.ubuntu.com/ubuntu/ bionic restricted main multiverse universe
deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse universe restricted main
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse universe restricted main
deb http://archive.canonical.com/ bionic partner
deb-src http://archive.canonical.com/ saucy partner
deb http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ bionic universe
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://fr.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ bionic partner
deb-src http://archive.canonical.com/ubuntu/ bionic partner
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted
deb http://security.ubuntu.com/ubuntu/ bionic-security universe
deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse
jean-paul@HP-UB:~$ sudo apt update^C
jean-paul@HP-UB:~$ ^C
jean-paul@HP-UB:~$
Dernière modification par acleade (Le 11/12/2018, à 22:11)
16.04 LTS sur AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ × 2 - GeForce 7050 PV / nForce 630a/integrated/SSE2
18.04 LTS sur HP Intel® Core™ i7 CPU 870 @ 2.93GHz × 8 - GeForce 405/PCIe/SSE2
Xubuntu 14.04 sur eee pc1005HA
Hors ligne
#2 Le 09/12/2018, à 19:47
- cqfd93
Re : Doublons dans sources list (Résolu)
Bonjour,
Pour avoir une vue d'ensemble des sources, je préfère cette commande :
find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; nl -ba "$1"' _ '{}' \;
Astuce pour copier / coller cette ligne ésotérique :
triple clic gauche pour sélectionner et copier une ligne entière
clic molette pour coller dans le terminal
− cqfd93 −
Hors ligne
#3 Le 09/12/2018, à 20:26
- acleade
Re : Doublons dans sources list (Résolu)
Hello,
voici :
jean-paul@HP-UB:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; nl -ba "$1"' _ '{}' \;
/etc/apt/sources.list
1 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
2 ## See sources.list(5) for more information, especialy
3 # Remember that you can only use http, ftp or file URIs
4 deb http://archive.ubuntu.com/ubuntu/ bionic restricted main multiverse universe
5 deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse universe restricted main
6 deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse universe restricted main
7 # CDROMs are managed through the apt-cdrom tool.
8 deb http://archive.canonical.com/ bionic partner
9 deb-src http://archive.canonical.com/ saucy partner
10 #désactivé pour la mise à niveau vers trusty
11 # deb http://www.mediahuman.com/packages/ubuntu/ bionic main # désactivé pour la mise à niveau vers bionic
12 # deb-src http://www.mediahuman.com/packages/ubuntu/ bionic main # désactivé pour la mise à niveau vers bionic
13 # deb http://liveusb.info/multisystem/depot/ all main
14 # deb-src http://liveusb.info/multisystem/depot/ all main
15
16
17 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
18 # newer versions of the distribution.
19 deb http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted
20 # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted
21
22 ## Major bug fix updates produced after the final release of the
23 ## distribution.
24 deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
25 # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
26
27 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
28 ## team, and may not be under a free licence. Please satisfy yourself as to
29 ## your rights to use the software. Also, please note that software in
30 ## universe WILL NOT receive any review or updates from the Ubuntu security
31 ## team.
32 deb http://fr.archive.ubuntu.com/ubuntu/ bionic universe
33 # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial universe
34 deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe
35 # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe
36
37 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
38 ## team, and may not be under a free licence. Please satisfy yourself as to
39 ## your rights to use the software. Also, please note that software in
40 ## multiverse WILL NOT receive any review or updates from the Ubuntu
41 ## security team.
42 deb http://fr.archive.ubuntu.com/ubuntu/ bionic multiverse
43 # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial multiverse
44 deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
45 # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
46
47 ## N.B. software from this repository may not have been tested as
48 ## extensively as that contained in the main release, although it includes
49 ## newer versions of some applications which may provide useful features.
50 ## Also, please note that software in backports WILL NOT receive any review
51 ## or updates from the Ubuntu security team.
52 deb http://fr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
53 # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
54
55 ## Uncomment the following two lines to add software from Canonical's
56 ## 'partner' repository.
57 ## This software is not part of Ubuntu, but is offered by Canonical and the
58 ## respective vendors as a service to Ubuntu users.
59 deb http://archive.canonical.com/ubuntu/ bionic partner
60 deb-src http://archive.canonical.com/ubuntu/ bionic partner
61
62 deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted
63 # deb-src http://security.ubuntu.com/ubuntu/ xenial-security main restricted
64 deb http://security.ubuntu.com/ubuntu/ bionic-security universe
65 # deb-src http://security.ubuntu.com/ubuntu/ xenial-security universe
66 deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse
67 # deb-src http://security.ubuntu.com/ubuntu/ xenial-security multiverse
68
/etc/apt/sources.list.d/mono-official.list
1
2 # deb http://download.mono-project.com/repo/ubuntu/ bionic main # désactivé pour la mise à niveau vers bionic
3
4
/etc/apt/sources.list.d/mono-official-stable.list
1 deb https://download.mono-project.com/repo/ubuntu stable-bionic main
jean-paul@HP-UB:~$
16.04 LTS sur AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ × 2 - GeForce 7050 PV / nForce 630a/integrated/SSE2
18.04 LTS sur HP Intel® Core™ i7 CPU 870 @ 2.93GHz × 8 - GeForce 405/PCIe/SSE2
Xubuntu 14.04 sur eee pc1005HA
Hors ligne
#4 Le 09/12/2018, à 22:06
- cqfd93
Re : Doublons dans sources list (Résolu)
Y'a à boire et à manger dans tes sources
On va refaire un sources.list tout propre avec juste ce qu'il faut (donne les retours complets) :
sudo mv -v /etc/apt/sources.list /etc/apt/sources.list.old
curl https://repogen.simplylinux.ch/txt/bionic/sources_c9c5abd57562ae85a90bbf7645346a64b0537be5.txt | sudo tee /etc/apt/sources.list
curl https://repogen.simplylinux.ch/txt/bionic/gpg_c9c5abd57562ae85a90bbf7645346a64b0537be5.txt | sudo tee /etc/apt/gpg_keys.txt
echo 'deb http://archive.canonical.com/ubuntu bionic partner' | sudo tee --append /etc/apt/sources.list
On peut aussi supprimer un fichier vide :
sudo rm -v /etc/apt/sources.list.d/mono-official.list
Après ça, les mises à jour devraient passer :
sudo apt update
sudo apt full-upgrade
− cqfd93 −
Hors ligne
#5 Le 10/12/2018, à 22:51
- acleade
Re : Doublons dans sources list (Résolu)
Merci beaucoup, cqfd93, pour ton aide. voici à quoi ça ressemble maintenant :
jean-paul@HP-UB:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; nl -ba "$1"' _ '{}' \;
/etc/apt/sources.list.d/mono-official-stable.list
1 deb https://download.mono-project.com/repo/ubuntu stable-bionic main
jean-paul@HP-UB:~$
je vais continuer d'essayer d'installer mon hubiC, et clorai le sujet ensuite (j'espère )
16.04 LTS sur AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ × 2 - GeForce 7050 PV / nForce 630a/integrated/SSE2
18.04 LTS sur HP Intel® Core™ i7 CPU 870 @ 2.93GHz × 8 - GeForce 405/PCIe/SSE2
Xubuntu 14.04 sur eee pc1005HA
Hors ligne
#6 Le 10/12/2018, à 23:19
- cqfd93
Re : Doublons dans sources list (Résolu)
Les mises à jour passent bien ?
− cqfd93 −
Hors ligne
#7 Le 11/12/2018, à 22:10
- acleade
Re : Doublons dans sources list (Résolu)
Hello,
Les logiciels sont à jour, donc ça m'a l'air de fonctionner comme il faut. Juste pas pu synchroniser hubiC pour l'instant mais je ne désespère pas
bonne soirée
16.04 LTS sur AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ × 2 - GeForce 7050 PV / nForce 630a/integrated/SSE2
18.04 LTS sur HP Intel® Core™ i7 CPU 870 @ 2.93GHz × 8 - GeForce 405/PCIe/SSE2
Xubuntu 14.04 sur eee pc1005HA
Hors ligne
#8 Le 11/12/2018, à 22:31
- cqfd93
Re : Doublons dans sources list (Résolu)
Bonjour,
Pour hubiC il faudra peut-être ouvrir une nouvelle discussion.
Bonne soirée à toi aussi !
− cqfd93 −
Hors ligne