Update de mes package mais erreur

Tags: #<Tag:0x00007f2cac8f0c48> #<Tag:0x00007f2cac8fbd50>

Bonjour, j’essaye d’update certains de mes packages et le terminal me réponds que c’est ok.
Mais à la fin, il me marque N: Skipping acquire of configured file... as repository...et je ne comprends pas ! Vous pouvez m’aider please ?

Voici le code au complet :

root@laos:~# apt update
Atteint:1 http://security.debian.org/debian-security stretch/updates InRelease
Atteint:2 http://dl.google.com/linux/chrome/deb stable InRelease               
Ign:3 http://ftp.fr.debian.org/debian stretch InRelease                        
Atteint:4 http://ftp.fr.debian.org/debian stretch-updates InRelease
Atteint:5 https://repo.steampowered.com/steam stable InRelease                 
Atteint:6 https://dl.winehq.org/wine-builds/debian stretch InRelease           
Atteint:7 http://ftp.fr.debian.org/debian stretch-backports InRelease          
Atteint:8 http://ftp.fr.debian.org/debian stretch Release      
Atteint:9 https://download.sublimetext.com apt/stable/ InRelease
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
All packages are up to date.
N: Skipping acquire of configured file 'main/binary-i389/Packages' as repository 'http://security.debian.org/debian-security stretch/updates InRelease' doesn't support architecture 'i389'
N: Skipping acquire of configured file 'contrib/binary-i389/Packages' as repository 'http://security.debian.org/debian-security stretch/updates InRelease' doesn't support architecture 'i389'
N: Skipping acquire of configured file 'non-free/binary-i389/Packages' as repository 'http://security.debian.org/debian-security stretch/updates InRelease' doesn't support architecture 'i389'
N: Skipping acquire of configured file 'main/binary-i389/Packages' as repository 'http://ftp.fr.debian.org/debian stretch-updates InRelease' doesn't support architecture 'i389'
N: Skipping acquire of configured file 'contrib/binary-i389/Packages' as repository 'http://ftp.fr.debian.org/debian stretch-updates InRelease' doesn't support architecture 'i389'
N: Skipping acquire of configured file 'non-free/binary-i389/Packages' as repository 'http://ftp.fr.debian.org/debian stretch-updates InRelease' doesn't support architecture 'i389'
N: Skipping acquire of configured file 'main/binary-i389/Packages' as repository 'https://dl.winehq.org/wine-builds/debian stretch InRelease' doesn't support architecture 'i389'
N: Skipping acquire of configured file 'main/binary-i389/Packages' as repository 'http://ftp.fr.debian.org/debian stretch-backports InRelease' doesn't support architecture 'i389'
N: Skipping acquire of configured file 'contrib/binary-i389/Packages' as repository 'http://ftp.fr.debian.org/debian stretch-backports InRelease' doesn't support architecture 'i389'
N: Skipping acquire of configured file 'non-free/binary-i389/Packages' as repository 'http://ftp.fr.debian.org/debian stretch-backports InRelease' doesn't support architecture 'i389'
N: Skipping acquire of configured file 'main/binary-i389/Packages' as repository 'http://ftp.fr.debian.org/debian stretch InRelease' doesn't support architecture 'i389'
N: Skipping acquire of configured file 'contrib/binary-i389/Packages' as repository 'http://ftp.fr.debian.org/debian stretch InRelease' doesn't support architecture 'i389'
N: Skipping acquire of configured file 'non-free/binary-i389/Packages' as repository 'http://ftp.fr.debian.org/debian stretch InRelease' doesn't support architecture 'i389'

Tu as dû te tromper quand tu as recopié. :slight_smile:

Comment ça ? :thinking:
J’ai rien recopié j’ai juste mis « apt update »

Peux tu faire un cat /etc/apt/sources.list*

Je pense que la commande grep -v "^#" /etc/apt/sources.list{,.d/*} donnera de meilleurs résultats. Je viens de lancer ta commande et ça ne fait pas ce que tu veux, je pense :

┌ (gilles@Thorn + 0) (09/01/21 - 7:11:12) (9.00 - 0%) (~)
└% cat /etc/apt/sources.list*
deb http://fr.archive.ubuntu.com/ubuntu focal main universe
deb http://security.ubuntu.com/ubuntu/ focal-security universe main
deb http://fr.archive.ubuntu.com/ubuntu focal-updates universe main
cat: /etc/apt/sources.list.d: Is a directory
deb http://fr.archive.ubuntu.com/ubuntu focal main universe
deb http://security.ubuntu.com/ubuntu/ focal-security universe main
┌ (gilles@Thorn + 1) (09/01/21 - 7:11:20) (8.92 - 0%) (~)
└%

Il nous faudrait aussi les retours des commandes suivantes :

  • dpkg --print-architecture
  • dpkg --print-foreign-architectures
  • uname -m

Ça m’étonnerait. :wink:
Qui connaît l’architecture i389 ? Pas moi.
C’est i386, pas i389.

1 J'aime

Bonjour

Je dirais même mieux :

grep -Env "^#|^$" /etc/apt/sources.list{,.d/*.list}

ce qui permettra d’éviter d’avoir dans le retour de commandes
les lignes vides contenues dans les fichiers
et le contenu des fichiers du répertoire /etc/apt/sources.list.d/
qui aurait un nom d’extenion différent de .list
et permettra aussi de connaître le numéro de chaque ligne dans le fichier.

1 J'aime

Ok, voila le résultat qu’il me donne :

root@laos:~# grep -Env "^#|^$" /etc/apt/sources.list{,.d/*.list}
/etc/apt/sources.list:7:deb http://ftp.fr.debian.org/debian/ stretch main contrib non-free
/etc/apt/sources.list:8:deb-src http://ftp.fr.debian.org/debian/ stretch main contrib non-free
/etc/apt/sources.list:10:deb http://security.debian.org/debian-security stretch/updates main contrib non-free
/etc/apt/sources.list:11:deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free
/etc/apt/sources.list:14:deb http://ftp.fr.debian.org/debian/ stretch-updates main contrib non-free
/etc/apt/sources.list:15:deb-src http://ftp.fr.debian.org/debian/ stretch-updates main contrib non-free
/etc/apt/sources.list:18:deb http://ftp.fr.debian.org/debian stretch main contrib non-free
/etc/apt/sources.list:20:deb https://dl.winehq.org/wine-builds/debian/ stretch main
/etc/apt/sources.list:23:deb http://ftp.de.debian.org/debian stretch main
/etc/apt/sources.list.d/google-chrome.list:3:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/steam.list:1:deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
/etc/apt/sources.list.d/steam.list:2:deb-src [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
/etc/apt/sources.list.d/sublime-text.list:1:deb https://download.sublimetext.com/ apt/stable/

Pour ce qui est des autres commandes concernant l’architecture, les voici :

root@laos:~# dpkg --print-architecture
amd64
root@laos:~# dpkg --print-foreign-architectures
i389
i386
root@laos:~# uname -m
x86_64

Bonjour

Il te faudrait lancer, avec les privilèges du compte root
la ligne de commande suivante :

dpkg --remove-architecture i389

Je vois mais avant je voudrais savoir quel est mon problème et en quoi la ligne de commande va arrangé quelque chose ?

Ben, en fait, tu retires la configuration de apt qui lui demandes de récupérer les listes de paquets pour l’architecture i389 qui n’existe pas, supprimant au passage toutes les erreurs relatives à cette action.

Ah je vois ! Donc j’imagine que l’erreur doit venir de moi quand j’ai essayé de mettre de nouvelle source de packet.

Ça marche ! Et en essayant un nouveau update j’obtiens ceci :

root@laos:~# apt update
Atteint:1 http://security.debian.org/debian-security stretch/updates InRelease
Atteint:2 http://dl.google.com/linux/chrome/deb stable InRelease                                      
Ign:3 http://ftp.fr.debian.org/debian stretch InRelease                                               
Atteint:4 https://repo.steampowered.com/steam stable InRelease                                 
Atteint:5 http://ftp.fr.debian.org/debian stretch-updates InRelease                                                  
Ign:6 http://ftp.de.debian.org/debian stretch InRelease                                                              
Atteint:7 http://ftp.fr.debian.org/debian stretch Release                                        
Atteint:8 http://ftp.de.debian.org/debian stretch Release                                        
Atteint:9 https://dl.winehq.org/wine-builds/debian stretch InRelease
Atteint:10 https://download.sublimetext.com apt/stable/ InRelease
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
All packages are up to date.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (main/i18n/Translation-fr_FR) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (main/i18n/Translation-fr) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (contrib/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (contrib/i18n/Translation-fr_FR) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (contrib/i18n/Translation-fr) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (non-free/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (non-free/i18n/Translation-fr_FR) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (non-free/i18n/Translation-fr) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11 (non-free/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11 (non-free/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (main/i18n/Translation-fr_FR) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (main/i18n/Translation-fr) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (contrib/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (contrib/i18n/Translation-fr_FR) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (contrib/i18n/Translation-fr) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (non-free/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (non-free/i18n/Translation-fr_FR) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (non-free/i18n/Translation-fr) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11 (non-free/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11 (non-free/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18
W: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:18

Essaie quand même de retirer les doublons, ça t’évitera les messages d’avertissement.

Il faudrait supprimer les lignes 18 et 23 du fichier /etc/apt/sources.list

Ce qui peut être fait en lançant (une seule et unique fois)
avec les privilèges du compte root
la ligne de commande suivante :

sed -i.sauv '18d;23d' /etc/apt/sources.list

L’exécution de la ligne de commande ci-dessus
va créer une copie de sauvegarde du fichier /etc/apt/sources.list
qui sera nommée /etc/apt/sources.list.sauv
et ensuite, ça va supprimer les lignes 18 et 23 du fichier /etc/apt/sources.list

AH ! Y’a pas de problème si je l’ai exécutée deux fois j’espère…

root@laos:~# sed -i.sauv '18d;23d' /etc/apt/sources.list
root@laos:~# sed -i.sauv '18d;23d' /etc/apt/sources.list
root@laos:~# apt update
Atteint:1 http://security.debian.org/debian-security stretch/updates InRelease
Atteint:2 http://dl.google.com/linux/chrome/deb stable InRelease               
Ign:3 http://ftp.fr.debian.org/debian stretch InRelease                        
Réception de:4 http://ftp.fr.debian.org/debian stretch-updates InRelease [93,6 kB]
Atteint:5 https://dl.winehq.org/wine-builds/debian stretch InRelease
Atteint:6 https://repo.steampowered.com/steam stable InRelease 
Atteint:7 http://ftp.fr.debian.org/debian stretch Release                      
Atteint:8 https://download.sublimetext.com apt/stable/ InRelease               
93,6 ko réceptionnés en 1s (69,3 ko/s)
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
All packages are up to date.

Si tu l’as exécutée deux fois,
la deuxième exécution aura supprimé la ligne 19
et la ligne 25 (si tant est que cette dernière existait)
et le fichier original qui avait été sauvegardé sous le nom /etc/apt/sources.list.sauv
aura été remplacé par le fichier /etc/apt/sources.list qui avait été modifié par la première exécution de la ligne de commande sed

Mais pour cette fois, ça n’est pas grave
parce que les lignes 19 et 25 du fichier original
étaient vides ou ne contenaient que des commentaires.

C’est pour ça que j’avais écrit dans mon message :


Pour réparer ça, il te faudrait
remplacer le contenu du fichier /etc/apt/sources.list
par le contenu du fichier /etc/apt/sources.list.sauv

en lançant, avec les privilèges du compte root
la ligne de commandes suivante :

cp /etc/apt/sources.list{.sauv,} && rm /etc/apt/sources.list.sauv

ok merci beaucoup :sweat_smile:

C’était avec plaisir :slightly_smiling_face: