Stretch update : apt-key ?

Bonjour,
Je viens d’installer “stretch”.
Mais voulant voir les maj/update j’ai les messages suivants!
Que dois-je faire pour débloquer?
Merci d’avance
Note: en regardant dans l’historique de “synaptic” du 29 juillet, les mises à jour ont bien fonctionnées (date de l’installation). Que s’est-il passé ensuite? Car je n’ai fait que des installations conventionnelles.
J’ai quand même eu un problème avec le téléchargement de"digikam-data " que j’ai repris le lendemain avec succès puis installation finale de “digikam”.

bernard@la-vouivre:~$ apt-get update
Lecture des listes de paquets… Fait
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Opération non permise)
E: Impossible d’ouvrir le fichier verrou /var/lib/apt/lists/lock - open (13: Permission non accordée)
E: Impossible de verrouiller le répertoire /var/lib/apt/lists/
W: Problème de suppression du lien /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission non accordée)
W: Problème de suppression du lien /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission non accordée)
****>>>> en root, voir plus bas

avec “synaptic”:
The repository ‘cdrom://[Debian GNU/Linux 9.1.0 Stretch - Official amd64 DVD Binary-1 20170722-11:31] stretch Release’ does not have a Release file.Updating from such a repository can’t be done securely, and is therefore disabled by default.See apt-secure(8) manpage for repository creation and user configuration details.http://security.debian.org/debian-security/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.http://ftp2.fr.debian.org/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.http://deb.debian.org/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.

console "root"
bernard@la-vouivre:~$ su -
Mot de passe :
root@la-vouivre:~# apt-get update
Ign:1 cdrom://[Debian GNU/Linux 9.1.0 Stretch - Official amd64 DVD Binary-1 20170722-11:31] stretch InRelease
Ign:2 cdrom://[Debian GNU/Linux 9.1.0 Stretch - Official amd64 DVD Binary-1 20170722-11:31] stretch Release
.
.
.
Atteint:22 http://deb.debian.org/debian stretch-updates InRelease
Atteint:23 http://security.debian.org/debian-security stretch/updates InRelease
Atteint:24 http://ftp2.fr.debian.org/debian stretch Release
Lecture des listes de paquets… Fait
W: The repository ‘cdrom://[Debian GNU/Linux 9.1.0 Stretch - Official amd64 DVD Binary-1 20170722-11:31] stretch Release’ does not have a Release file.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: http://deb.debian.org/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.
W: http://security.debian.org/debian-security/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.
W: http://ftp2.fr.debian.org/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.
root@la-vouivre:~#

21 août 2017
Bonjour,
J’ai complètement re installé STRETCH et dans “sources.list” j’ai mis “#” =comment pour le dvd.

28 aout 2017:
Si la première mise à jour se passe correctement jusqu’ après l’installation initiale, ensuite “apt-get update” me retourne:
root@la-vouivre:~# apt-get update
Ign:1 http://ftp2.fr.debian.org/debian stretch InRelease
Atteint:2 http://deb.debian.org/debian stretch-updates InRelease
Atteint:3 http://security.debian.org/debian-security stretch/updates InRelease
Atteint:4 http://ftp2.fr.debian.org/debian stretch Release
Lecture des listes de paquets… Fait
W: http://deb.debian.org/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.
W: http://security.debian.org/debian-security/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.
W: http://ftp2.fr.debian.org/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.

Quel est le problème avec “/etc/apt/trusted.gpg”? Et que faudrait il faire?
Merci d’avance.

tu n’étais pas en en root

Bonjour,
En mode console j’ai dut oublié “su -” OK, mais pour “synaptic” c’est obligatoire d’être en mode administrateur, donc en root.
Ainsi j’ai toujours le problème.

Re bonjour,
Maintenant en console "root"
bernard@la-vouivre:~$ su -
Mot de passe :
root@la-vouivre:~# apt-get update
Ign:1 cdrom://[Debian GNU/Linux 9.1.0 Stretch - Official amd64 DVD Binary-1 20170722-11:31] stretch InRelease
Ign:2 cdrom://[Debian GNU/Linux 9.1.0 Stretch - Official amd64 DVD Binary-1 20170722-11:31] stretch Release
.
.
.
Atteint:22 http://deb.debian.org/debian stretch-updates InRelease
Atteint:23 http://security.debian.org/debian-security stretch/updates InRelease
Atteint:24 http://ftp2.fr.debian.org/debian stretch Release
Lecture des listes de paquets… Fait
W: The repository ‘cdrom://[Debian GNU/Linux 9.1.0 Stretch - Official amd64 DVD Binary-1 20170722-11:31] stretch Release’ does not have a Release file.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: http://deb.debian.org/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.
W: http://security.debian.org/debian-security/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.
W: http://ftp2.fr.debian.org/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.
root@la-vouivre:~#

Bonjour,

Si synaptic a été utilisé et les dépôts manipulés depuis synaptic alors il s’agit de ce bug :

#864640 - synaptic: when modifying repository’s a file named trusted.gpg is created in /etc/apt/ - Debian Bug report logs

Une solution : supprimer le fameux fichier /etc/apt/trusted.gpg créé inutilement et éviter de manipuler les dépôts depuis synaptic en attendant un correctif.

Bonjour,
Ha! C’est un bug! Je préfère, car depuis “ETCH” je n’avais pas eu de problèmes avec les dépôts.
Je vais essayer cette solution en attendant.
Note: je viens juste de refaire l’installation mais en “i386” plutôt que “AMD64”.
Retour asap
Merci

En fait, c’est pas vraiment un bug de synaptic mais quand software-properties-gtk est installé le menu des dépôts de synaptic lance ce programme en lieu et place du gestionnaire inclus dans synaptic.

D’ailleurs, un autre bug, correctement attribué à software-properties-gtk est ouvert

#867681 - software-properties-gtk: trusted.gpg file created by this package produces gpg error for ‘apt-get update’ - Debian Bug report logs

EDIT

Il paraît (depuis début juillet), que le bug ne se produit qu’une seule fois.

The real fix is to delete /etc/apt/trusted.gpg and after that point it seems not to be created again (even if running software-properties-gtk).

Re: Problems with apt in a clean stretch install.

Bonjour et merci pour toutes ces précisions.
Le Gardian
14h15
Effectivement en supprimant “trusted.gpg” , apt-get update refonctione, synaptic aussi d’ailleurs.
root@la-vouivre:~# apt-get update
Ign:1 http://ftp2.fr.debian.org/debian stretch InRelease
Atteint:2 http://deb.debian.org/debian stretch-updates InRelease
Atteint:3 http://security.debian.org/debian-security stretch/updates InRelease
Atteint:4 http://ftp2.fr.debian.org/debian stretch Release
Lecture des listes de paquets… Fait
W: http://deb.debian.org/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.
W: http://security.debian.org/debian-security/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.
W: http://ftp2.fr.debian.org/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user ‘_apt’ executing apt-key.

*** iici suppression de "trusted.gpg"
root@la-vouivre:~# apt-get update
Ign:1 http://ftp2.fr.debian.org/debian stretch InRelease
Atteint:2 http://deb.debian.org/debian stretch-updates InRelease
Atteint:3 http://security.debian.org/debian-security stretch/updates InRelease
Atteint:4 http://ftp2.fr.debian.org/debian stretch Release
Lecture des listes de paquets… Fait

Autre remarque:
C’est lors de la maj des 5 paquets ci-dessous que trusted.gpg s’est installé!:
Les paquets suivants ont été mis à jour :
libmagickcore-6.q16-3-extra (8:6.9.7.4+dfsg-11) to 8:6.9.7.4+dfsg-11+deb9u1
libmagickwand-6.q16-3 (8:6.9.7.4+dfsg-11) to 8:6.9.7.4+dfsg-11+deb9u1
libmariadbclient18 (10.1.23-9+deb9u1) to 10.1.26-0+deb9u1
libpq5 (9.6.3-3) to 9.6.4-0+deb9u1
libraw15 (0.17.2-6+b1) to 0.17.2-6+deb9u1

Si cela peut aider…

30 aout 2017:
Je viens d’installer, sur un autre disque, stretch i386.
Curieux: après les maj je n’ai pas eu le bug avec "trusted.gpg"
Est ce que ce serait spécifique à la version “AMD64” ?

31 aout 2017:
Non, i386 n’est pas exempt du problème : en dé commentant “#deb-src http://security.debian.org/debian-security stretch/updates main contrib” “trusted.gpg” est re apparu.