Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 26/11/2016, à 20:16

Kowalski07

Erreur mise à jour Xenial

Bonsoir la communauté,

J'ai un message d'erreur du logiciel de mise à jour qui me dit "the update information is outdated".

Si je lance un sudo apt update dans la console, j'obtiens ce qui suit:

Atteint:1 http://fr.archive.ubuntu.com/ubuntu xenial InRelease                 
Atteint:2 http://archive.canonical.com/ubuntu xenial InRelease                 
Réception de:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Err:1 http://fr.archive.ubuntu.com/ubuntu xenial InRelease                     
  Au moins une signature non valable a été rencontrée.
Err:2 http://archive.canonical.com/ubuntu xenial InRelease                     
  Au moins une signature non valable a été rencontrée.
Réception de:4 http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Atteint:5 http://archive.ubuntu.com/ubuntu xenial InRelease                    
Err:5 http://archive.ubuntu.com/ubuntu xenial InRelease                        
  Au moins une signature non valable a été rencontrée.
Err:3 http://security.ubuntu.com/ubuntu xenial-security InRelease              
  Au moins une signature non valable a été rencontrée.
Err:4 http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease
  Au moins une signature non valable a été rencontrée.
204 ko réceptionnés en 5s (40,7 ko/s)
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://fr.archive.ubuntu.com/ubuntu xenial InRelease: Au moins une signature non valable a été rencontrée.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.canonical.com/ubuntu xenial InRelease: Au moins une signature non valable a été rencontrée.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com/ubuntu xenial InRelease: Au moins une signature non valable a été rencontrée.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.ubuntu.com/ubuntu xenial-security InRelease: Au moins une signature non valable a été rencontrée.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease: Au moins une signature non valable a été rencontrée.
W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Au moins une signature non valable a été rencontrée.
W: Impossible de récupérer http://fr.archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Au moins une signature non valable a été rencontrée.
W: Impossible de récupérer http://fr.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease  Au moins une signature non valable a été rencontrée.
W: Impossible de récupérer http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease  Au moins une signature non valable a été rencontrée.
W: Impossible de récupérer http://archive.canonical.com/ubuntu/dists/xenial/InRelease  Au moins une signature non valable a été rencontrée.
W: Le téléchargement de quelques fichiers d'index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.

Le apt list --upgradable donne:

unattended-upgrades/xenial-updates,xenial-updates 0.90ubuntu0.1 all [upgradable from: 0.90]
xserver-common/xenial-updates,xenial-updates 2:1.18.4-0ubuntu0.1 all [upgradable from: 2:1.18.3-1ubuntu2.3]
xserver-xorg-core/xenial-updates 2:1.18.4-0ubuntu0.1 amd64 [upgradable from: 2:1.18.3-1ubuntu2.3]
xserver-xorg-legacy/xenial-updates 2:1.18.4-0ubuntu0.1 amd64 [upgradable from: 2:1.18.3-1ubuntu2.3]

Qui puis-je faire?

Hors ligne

#2 Le 26/11/2016, à 20:52

ylag

Re : Erreur mise à jour Xenial

Bonsoir...

Voyez cette page de la doc : https://doc.ubuntu-fr.org/probleme_apt

Vous pourriez tenter :

sudo rm -r /var/lib/apt/lists

...suivi de :

sudo mkdir -p /var/lib/apt/lists/partial

...et enfin d'un :

sudo apt update

...la commande " update " sera probablement beaucoup plus lente cette fois, attendez que le terminal vous rende la main.

Si dans le retour de la dernière commande vous avez un message du genre : " AppStream cache update completed, but some metadata was ignored due to errors ", vous devrez l'ignorer: il semblerait que cela concerne un bug déjà signalé sur launchpad : https://bugs.launchpad.net/ubuntu/+sour … ug/1575248.
Chez-moi, si je repasse la commande " sudo apt update " une deuxième fois, ce message n'apparaît pas.

A+

Hors ligne

#3 Le 26/11/2016, à 20:56

Kowalski07

Re : Erreur mise à jour Xenial

Bonsoir,

J'ai déjà tenté, ayant repéré le topic, mais la console affiche, après la première manip:

rm: impossible de supprimer '/var/lib/apt/lists': Aucun fichier ou dossier de ce type

Hors ligne

#4 Le 26/11/2016, à 21:03

ylag

Re : Erreur mise à jour Xenial

Si le dossier /var/lib/apt/lists est déjà supprimé, essayez les deux commandes suivantes :

sudo mkdir -p /var/lib/apt/lists/partial && sudo apt update

Et postez le retour complet de la commande " update ", si possible.

A+

Hors ligne

#5 Le 26/11/2016, à 21:13

Kowalski07

Re : Erreur mise à jour Xenial

Pour la commande update, le retour complet est dans le premier post.
Pour la première commande, ça ne donne absolument rien (ça me renvoie direct à la ligne de commande)

Hors ligne

#6 Le 26/11/2016, à 21:26

ylag

Re : Erreur mise à jour Xenial

Il est normal que la première commande ne donne pas de retour dans le terminal: elle sert à recréer les dossiers " lists" et " /lists/partial " précédemment détruits dans " /var/lib/ ".
Si le terminal est muet après la commande " mkdir -p ...", c'est que tout s'est bien passé, donc pas de message d'erreurs. Une fois les dossiers recréés, on y télécharge les diverses listes de logiciels à l'aide de :

sudo apt update

.
Votre premier retour de " sudo apt update " n'est alors plus pertinent, c'est pourquoi je vous en ai demandé un second.

A+

Dernière modification par ylag (Le 26/11/2016, à 21:30)

Hors ligne

#7 Le 26/11/2016, à 21:29

Kowalski07

Re : Erreur mise à jour Xenial

Pardon. Donc voici ce que donne maintenant sudo apt update:

Réception de:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Réception de:4 http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Réception de:2 http://archive.canonical.com/ubuntu xenial InRelease [11,5 kB]  
Réception de:5 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]      
Err:2 http://archive.canonical.com/ubuntu xenial InRelease                     
  Au moins une signature non valable a été rencontrée.
Err:3 http://security.ubuntu.com/ubuntu xenial-security InRelease              
  Au moins une signature non valable a été rencontrée.
Err:4 http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease             
  Au moins une signature non valable a été rencontrée.
Réception de:1 http://fr.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]   
Err:1 http://fr.archive.ubuntu.com/ubuntu xenial InRelease                     
  Au moins une signature non valable a été rencontrée.
Err:5 http://archive.ubuntu.com/ubuntu xenial InRelease                        
  Au moins une signature non valable a été rencontrée.
Lecture des listes de paquets... Fait                                          
W: Erreur de GPG : http://archive.canonical.com/ubuntu xenial InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://archive.canonical.com/ubuntu xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : http://security.ubuntu.com/ubuntu xenial-security InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://security.ubuntu.com/ubuntu xenial-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : http://fr.archive.ubuntu.com/ubuntu xenial InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://fr.archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : http://archive.ubuntu.com/ubuntu xenial InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Hors ligne

#8 Le 26/11/2016, à 21:37

ylag

Re : Erreur mise à jour Xenial

Aviez-vous vraiment effacé le contenu de /var/lib/apt/lists avant de refaire :

sudo apt update

...?

Dernière modification par ylag (Le 26/11/2016, à 21:39)

Hors ligne

#9 Le 26/11/2016, à 21:45

Kowalski07

Re : Erreur mise à jour Xenial

J'ai refait

sudo rm -r /var/lib/apt/lists

Pas de message d'erreur cette fois.

Puis:

sudo mkdir -p /var/lib/apt/lists/partial

Et enfin

sudo apt update

Ce qui me donne le résultat ci-dessus.

Ai-je loupé une étape?

Hors ligne

#10 Le 26/11/2016, à 21:54

ylag

Re : Erreur mise à jour Xenial

Vous n'avez pas loupé d'étapes.
Est-ce que le contenu de /var/lib/apt/list s'est recréé ?
Par exemple, je vous donne les premières lignes du contenu de ce dossier, chez-moi:

yvan@yvan-maison:~$ ls -l /var/lib/apt/lists
total 172788
-rw-r--r-- 1 root       root    11491 nov  9 08:30 archive.canonical.com_ubuntu_dists_xenial_InRelease
-rw-r--r-- 1 root       root     8017 nov  9 08:30 archive.canonical.com_ubuntu_dists_xenial_partner_binary-amd64_Packages
-rw-r--r-- 1 root       root     9106 nov  9 08:30 archive.canonical.com_ubuntu_dists_xenial_partner_binary-i386_Packages
-rw-r--r-- 1 root       root     4036 avr  7  2016 archive.canonical.com_ubuntu_dists_xenial_partner_i18n_Translation-en
-rw-r--r-- 1 root       root   102193 nov 26 13:30 ca.archive.ubuntu.com_ubuntu_dists_xenial-backports_InRelease 

Le but des manips précédentes étant de recréer le contenu de ce dossier.

Si votre /var/lib/apt/list est bien repeuplé, et que vous avez toujours les mêmes erreurs lors des mises à jour, il se peut que vos clés d'authentification soient corrompues.

Vérifiez :

sudo apt-key list

Vous pourriez tenter d'ouvrir "Logiciels & mises à jour", puis en bas à droite dans l'onglet "Authentification", faire "Restaurer les clés par défaut".
Ensuite tenter les mises à jour de nouveau.

Dernière modification par ylag (Le 26/11/2016, à 22:29)

Hors ligne

#11 Le 26/11/2016, à 22:50

Kowalski07

Re : Erreur mise à jour Xenial

A mon avis le problème vient bien du /var/lib/apt/list : le contenu m'affiche

total 4
-rw-r----- 1 root root    0 nov.  26 20:42 lock
drwx------ 2 _apt root 4096 nov.  26 20:42 partial

J'ai tenté de restaurer les clés par défaut sans succès, toujours le même message d'erreur sur la mise à jour.

Hors ligne

#12 Le 26/11/2016, à 22:58

ylag

Re : Erreur mise à jour Xenial

Passez :

sudo rm /var/lib/apt/list/lock

...puis retentez :

sudo apt update

...Sinon, tentez les mises à jour en mode graphique via le "Gestionaire de mises à jour", histoire de voir ce qui se passerait....?

Dernière modification par ylag (Le 27/11/2016, à 01:02)

Hors ligne

#13 Le 27/11/2016, à 01:06

Kowalski07

Re : Erreur mise à jour Xenial

J'ai:

sudo rm /var/lib/apt/list/lock
rm: impossible de supprimer '/var/lib/apt/list/lock': Aucun fichier ou dossier de ce type

Du coup, fatalement, même message que précédemment sur l'update.

J'ai lancé le gestionnaire de mise à jour: il me trouve toute une liste de mises à jour, mais il m'avertit:
"Cela nécessite l'installation de paquets depuis des sources non authentifiées."
Si je clique malgré tout sur "valider" ça me ferme purement et simplement le gestionnaire de mise à jour.

J'essaye via le gestionnaire de paquets synaptic...

Hors ligne

#14 Le 27/11/2016, à 01:22

ylag

Re : Erreur mise à jour Xenial

Erreur dans la commande précédente...: Mille excuses de ma part sad

sudo rm /var/lib/apt/lists/lock

...non pas " list ".

Désolé...

Dernière modification par ylag (Le 27/11/2016, à 01:22)

Hors ligne

#15 Le 27/11/2016, à 01:35

Kowalski07

Re : Erreur mise à jour Xenial

Alors aucun message d'erreur depuis le gestionnaire de paquets.

La commande

sudo rm /var/lib/apt/lists/lock

fonctionne bien, par contre derrière le sudo update ressort toujours le même message:

Réception de:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Réception de:1 http://archive.canonical.com/ubuntu xenial InRelease [11,5 kB]  
Err:1 http://archive.canonical.com/ubuntu xenial InRelease                     
  Au moins une signature non valable a été rencontrée.
Réception de:4 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]      
Réception de:2 http://fr.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]   
Err:3 http://security.ubuntu.com/ubuntu xenial-security InRelease              
  Au moins une signature non valable a été rencontrée.
Err:4 http://archive.ubuntu.com/ubuntu xenial InRelease                        
  Au moins une signature non valable a été rencontrée.
Réception de:5 http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Err:2 http://fr.archive.ubuntu.com/ubuntu xenial InRelease    
  Au moins une signature non valable a été rencontrée.
Réception de:6 http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Err:5 http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease
  Au moins une signature non valable a été rencontrée.
Err:6 http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease
  Au moins une signature non valable a été rencontrée.
Lecture des listes de paquets... Fait
W: Erreur de GPG : http://archive.canonical.com/ubuntu xenial InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://archive.canonical.com/ubuntu xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : http://security.ubuntu.com/ubuntu xenial-security InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://security.ubuntu.com/ubuntu xenial-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : http://archive.ubuntu.com/ubuntu xenial InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : http://fr.archive.ubuntu.com/ubuntu xenial InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://fr.archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

L'adresse http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease renvoie effectivement un message d'erreur.

Hors ligne

#16 Le 27/11/2016, à 01:52

ylag

Re : Erreur mise à jour Xenial

Kowalski07 a écrit :

L'adresse http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease renvoie effectivement un message d'erreur.

...chez-moi, ça semble passer :

Atteint:8 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease
Réception de:14 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]

Vous pourriez tenter de renommer le fichier " trusted.gpg ", et ensuite de relancer encore une tentative de mise à jour, histoire de voir si ce fichier se recréera différemment...:

sudo mv /etc/apt/trusted.gpg /etc/apt/trusted.gpg.old

Pour revenir à l'état précédent, si ça ne marche pas :

sudo mv /etc/apt/trusted.gpg.old /etc/apt/trusted.gpg

Se pourrait-il que votre fichier /etc/apt/sources.list soit mal formé...?
Je tenterais de recréer un fichier " sources.list  ", mais à partir de l'application " Gestionnaire de mises à jour ", et peut-être aussi de changer de serveur de mises à jour...?

Une chose me semble certaine, vous n'arriverez à rien tant que votre dossier  " /var/lib/apt/lists " ne sera pas régénéré.
Il y a fort probablement quelque chose qui cloche dans " /etc/apt/trusted.gpg ".

Désolé de ne pouvoir vous éclairer de meilleure façon...

Dernière modification par ylag (Le 27/11/2016, à 15:31)

Hors ligne

#17 Le 27/11/2016, à 18:04

ylag

Re : Erreur mise à jour Xenial

Bonjour...

Au cas où vous seriez toujours bloqué, peut-être une autre piste à suivre :

sudo apt install --reinstall ubuntu-keyring

...suivi de :

sudo apt-key update

...et ensuite une autre tentative de mises à jour...?

A+

Hors ligne

#18 Le 27/11/2016, à 19:33

Kowalski07

Re : Erreur mise à jour Xenial

Tenté mais sans succès. sudo apt udate donne toujours le même résultat, par contre le gestionnaire de mise à jour n'affiche plus d'erreur et estime que tout va bien dans le meilleur des mondes. Je vais laisser comme ça pour le moment. Merci pour votre aide!

Hors ligne

#19 Le 27/11/2016, à 20:08

ylag

Re : Erreur mise à jour Xenial

OK, à vous de voir...
N'hésitez pas à poster ici si jamais vous réussissez à débloquer la commande " apt update ".
Bonne chance,

A+

Hors ligne

#20 Le 30/11/2016, à 10:09

Kowalski07

Re : Erreur mise à jour Xenial

Toujours le même problème, et le message d'erreur revient.

Synaptic me dit:

E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».
E: Erreur, pkgProblem::Resolve a généré des ruptures, ce qui a pu être causé par les paquets devant être gardés en l'état.
E: Impossible de corriger les dépendances

J'ai tenté un sudo apt-get autoremove --purge

J'obtiens

0 mis à jour, 0 nouvellement installés, 0 à enlever et 23 non mis à jour

Le sudo apt install --reinstall ubuntu-keyring me donne:

ATTENTION : les paquets suivants n'ont pas été authentifiés.
  ubuntu-keyring
Faut-il installer ces paquets sans vérification ? [o/N] o
Réception de:1 http://fr.archive.ubuntu.com/ubuntu xenial/main amd64 ubuntu-keyring all 2012.05.19 [16,7 kB]
16,7 ko réceptionnés en 0s (92,0 ko/s)  
(Lecture de la base de données... 251590 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../ubuntu-keyring_2012.05.19_all.deb ...
Dépaquetage de ubuntu-keyring (2012.05.19) sur (2012.05.19) ...
Paramétrage de ubuntu-keyring (2012.05.19) ...
gpg: clef 437D05B5 : « Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com> » n'est pas modifiée
gpg: clef FBB75451 : « Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com> » n'est pas modifiée
gpg: clef C0B21F32 : « Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com> » n'est pas modifiée
gpg: clef EFE21092 : « Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com> » n'est pas modifiée
gpg: Quantité totale traitée : 4
gpg:              non modifiées : 4

Dernière modification par Kowalski07 (Le 30/11/2016, à 10:56)

Hors ligne

#21 Le 30/11/2016, à 15:41

ylag

Re : Erreur mise à jour Xenial

Bonjour...

  Kowalski07 a écrit :

E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

...Il semble que vous ayez des paquets "cassés".

En premier, vérifiez bien la validité de votre fichier " /etc/apt/sources.list " ainsi que de tous les fichiers dans " /etc/apt/sources.list.d/ "

Ensuite le retour de :

sudo apt update && sudo apt full-upgrade

devrait vous donner la liste des paquets causant problème.

Peut-être tenter :

sudo dpkg --configure -a

...suivi de :

sudo apt -f install

Vous pouvez aussi utiliser synaptic pour voir l'état des paquets: https://doc.ubuntu-fr.org/synaptic

Une commande telle que :

dpkg -l | grep -v '^ii'

...devrait aussi retourner la liste des paquets qui ne sont pas complètement installés ( ignorez les paquets dont la ligne débute par " rc " ou " un "; ils ne causent pas de problèmes.)

Regardez au paragraphe 2.3 de cette page : https://doc.ubuntu-fr.org/tutoriel/comm … _un_paquet

Dernière modification par ylag (Le 30/11/2016, à 19:10)

Hors ligne

#22 Le 30/11/2016, à 19:09

Kowalski07

Re : Erreur mise à jour Xenial

Si je tape /etc/apt/sources.list
le système me retourne:

bash: /etc/apt/sources.list: Permission non accordée

sudo apt -f install me retourne:

Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 3 non mis à jour.

Synaptic m'affiche un message d'erreur:

W: Erreur de GPG : [url]http://archive.canonical.com/ubuntu[/url] xenial InRelease : Au moins une signature non valable a été rencontrée.
W: The repository 'http://archive.canonical.com/ubuntu xenial InRelease' is not signed.
W: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
W: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : [url]http://fr.archive.ubuntu.com/ubuntu[/url] xenial InRelease : Au moins une signature non valable a été rencontrée.
W: The repository 'http://fr.archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
W: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
W: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : [url]http://archive.ubuntu.com/ubuntu[/url] xenial InRelease : Au moins une signature non valable a été rencontrée.
W: The repository 'http://archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
W: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
W: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : [url]http://security.ubuntu.com/ubuntu[/url] xenial-security InRelease : Au moins une signature non valable a été rencontrée.
W: The repository 'http://security.ubuntu.com/ubuntu xenial-security InRelease' is not signed.
W: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
W: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : [url]http://fr.archive.ubuntu.com/ubuntu[/url] xenial-updates InRelease : Au moins une signature non valable a été rencontrée.
W: The repository 'http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease' is not signed.
W: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
W: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : [url]http://fr.archive.ubuntu.com/ubuntu[/url] xenial-backports InRelease : Au moins une signature non valable a été rencontrée.
W: The repository 'http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease' is not signed.

(Au moins c'est cohérent, hein...)

Le souci se situe au niveau des "paquets installés pouvant être mis à jour" au nombre de 3:

linux-image-generic
linux-headers-generic
linux-generic

Si je les sélectionne pour mise à jour, synaptic me dit "vous allez installer un logiciel qui ne peut être authentifié, c'est dangereux"
Je passe outre en cochant "appliquer" et là, l'application se ferme sauvagement avec retour à la case départ.

Dernier point

dpkg -l | grep -v '^ii'

ne retourne pas d'erreur.

Dernière modification par cqfd93 (Le 01/12/2016, à 19:17)

Hors ligne

#23 Le 30/11/2016, à 19:26

ylag

Re : Erreur mise à jour Xenial

Bonjour...

Donnez le retour complet de :

sudo apt update

...et de :

sudo apt full-upgrade

Ensuite pour les sources :

cat /etc/apt/sources.list
ls -l  /etc/apt/sources.list.d
cat /etc/apt/sources.list.d/*.list

Avez-vous tenté :

sudo dpkg --configure -a

Dernière modification par ylag (Le 30/11/2016, à 19:39)

Hors ligne

#24 Le 30/11/2016, à 19:44

Kowalski07

Re : Erreur mise à jour Xenial

sudo apt update

Réception de:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]      
Réception de:3 http://archive.canonical.com/ubuntu xenial InRelease [11,5 kB]  
Réception de:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Err:3 http://archive.canonical.com/ubuntu xenial InRelease                     
  Au moins une signature non valable a été rencontrée.
Réception de:1 http://fr.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]   
Err:4 http://security.ubuntu.com/ubuntu xenial-security InRelease              
  Au moins une signature non valable a été rencontrée.
Err:2 http://archive.ubuntu.com/ubuntu xenial InRelease                        
  Au moins une signature non valable a été rencontrée.
Réception de:5 http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Err:1 http://fr.archive.ubuntu.com/ubuntu xenial InRelease    
  Au moins une signature non valable a été rencontrée.
Réception de:6 http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Err:5 http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease
  Au moins une signature non valable a été rencontrée.
Err:6 http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease
  Au moins une signature non valable a été rencontrée.
Lecture des listes de paquets... Fait
W: Erreur de GPG : http://archive.canonical.com/ubuntu xenial InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://archive.canonical.com/ubuntu xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : http://security.ubuntu.com/ubuntu xenial-security InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://security.ubuntu.com/ubuntu xenial-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : http://archive.ubuntu.com/ubuntu xenial InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : http://fr.archive.ubuntu.com/ubuntu xenial InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://fr.archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Erreur de GPG : http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease : Au moins une signature non valable a été rencontrée.
E: The repository 'http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

sudo apt full-upgrade:

Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Calcul de la mise à jour... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  linux-headers-4.4.0-45 linux-headers-4.4.0-45-generic
  linux-image-4.4.0-45-generic linux-image-extra-4.4.0-45-generic
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.

Donc j'ai fait sudo apt autoremove:

Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Les paquets suivants seront ENLEVÉS :
  linux-headers-4.4.0-45 linux-headers-4.4.0-45-generic
  linux-image-4.4.0-45-generic linux-image-extra-4.4.0-45-generic
0 mis à jour, 0 nouvellement installés, 4 à enlever et 0 non mis à jour.
Après cette opération, 296 Mo d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] O
(Lecture de la base de données... 283825 fichiers et répertoires déjà installés.)
Suppression de linux-headers-4.4.0-45-generic (4.4.0-45.66) ...
Suppression de linux-headers-4.4.0-45 (4.4.0-45.66) ...
Suppression de linux-image-extra-4.4.0-45-generic (4.4.0-45.66) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-45-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
Création du fichier de configuration GRUB…
Image Linux trouvée : /boot/vmlinuz-4.4.0-51-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-51-generic
Image Linux trouvée : /boot/vmlinuz-4.4.0-47-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-47-generic
Image Linux trouvée : /boot/vmlinuz-4.4.0-45-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-45-generic
Image Linux trouvée : /boot/vmlinuz-3.13.0-92-generic
Image mémoire initiale trouvée : /boot/initrd.img-3.13.0-92-generic
Image Linux trouvée : /boot/vmlinuz-3.5.0-54-generic
Image mémoire initiale trouvée : /boot/initrd.img-3.5.0-54-generic
Windows Boot Manager trouvé sur /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
fait
Suppression de linux-image-4.4.0-45-generic (4.4.0-45.66) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
dkms: removing: bbswitch 0.8 (4.4.0-45-generic) (x86_64)

-------- Uninstall Beginning --------
Module:  bbswitch
Version: 0.8
Kernel:  4.4.0-45-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

bbswitch.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-45-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
dkms: removing: nvidia-304 304.132 (4.4.0-45-generic) (x86_64)

-------- Uninstall Beginning --------
Module:  nvidia-304
Version: 304.132
Kernel:  4.4.0-45-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia_304.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.4.0-45-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-45-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-45-generic /boot/vmlinuz-4.4.0-45-generic
Création du fichier de configuration GRUB…
Image Linux trouvée : /boot/vmlinuz-4.4.0-51-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-51-generic
Image Linux trouvée : /boot/vmlinuz-4.4.0-47-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-47-generic
Image Linux trouvée : /boot/vmlinuz-3.13.0-92-generic
Image mémoire initiale trouvée : /boot/initrd.img-3.13.0-92-generic
Image Linux trouvée : /boot/vmlinuz-3.5.0-54-generic
Image mémoire initiale trouvée : /boot/initrd.img-3.5.0-54-generic
Windows Boot Manager trouvé sur /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
fait

Ensuite : cat /etc/apt/sources.list

# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213)]/ dists/precise/main/binary-i386/

# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213)]/ precise main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial restricted main multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates restricted main multiverse universe #Added by software-properties

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://fr.archive.ubuntu.com/ubuntu/ xenial universe
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://fr.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security restricted main multiverse universe #Added by software-properties
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main multiverse restricted universe

Et pour ls -l  /etc/apt/sources.list.d

-rw-r--r-- 1 root root 236 nov.  26 23:57 bumblebee-stable-precise.list
-rw-r--r-- 1 root root 236 août  16 13:04 bumblebee-stable-precise.list.distUpgrade
-rw-r--r-- 1 root root 236 nov.  26 23:57 bumblebee-stable-precise.list.save
-rw-r--r-- 1 root root  99 août  16 13:04 dropbox.list.distUpgrade
-rw-r--r-- 1 root root  99 nov.  26 18:44 dropbox.list.save
-rw-r--r-- 1 root root 262 nov.  26 23:57 fossfreedom-rhythmbox-plugins-precise.list
-rw-r--r-- 1 root root 262 août  16 13:04 fossfreedom-rhythmbox-plugins-precise.list.distUpgrade
-rw-r--r-- 1 root root 262 nov.  26 23:57 fossfreedom-rhythmbox-plugins-precise.list.save
-rw-r--r-- 1 root root 203 nov.  26 23:57 indicator-brightness-ppa-trusty.list
-rw-r--r-- 1 root root 152 août  16 13:04 indicator-brightness-ppa-trusty.list.distUpgrade
-rw-r--r-- 1 root root 203 nov.  26 23:57 indicator-brightness-ppa-trusty.list.save
-rw-r--r-- 1 root root 244 nov.  26 23:57 nilarimogard-webupd8-precise.list
-rw-r--r-- 1 root root 244 août  16 13:04 nilarimogard-webupd8-precise.list.distUpgrade
-rw-r--r-- 1 root root 244 nov.  26 23:57 nilarimogard-webupd8-precise.list.save
-rw-r--r-- 1 root root 250 nov.  26 23:57 ubuntu-x-swat-x-updates-precise.list
-rw-r--r-- 1 root root 250 août  16 13:04 ubuntu-x-swat-x-updates-precise.list.distUpgrade
-rw-r--r-- 1 root root 250 nov.  26 23:57 ubuntu-x-swat-x-updates-precise.list.save

Et enfin cat /etc/apt/sources.list.d/*.list

# deb http://ppa.launchpad.net/bumblebee/stable/ubuntu trusty main # désactivé pour la mise à niveau vers trusty
# deb-src http://ppa.launchpad.net/bumblebee/stable/ubuntu trusty main # désactivé pour la mise à niveau vers trusty
# deb http://ppa.launchpad.net/fossfreedom/rhythmbox-plugins/ubuntu trusty main # désactivé pour la mise à niveau vers trusty
# deb-src http://ppa.launchpad.net/fossfreedom/rhythmbox-plugins/ubuntu trusty main # désactivé pour la mise à niveau vers trusty
# deb http://ppa.launchpad.net/indicator-brightness/ppa/ubuntu xenial main # désactivé pour la mise à niveau vers xenial
# deb-src http://ppa.launchpad.net/indicator-brightness/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu trusty main # désactivé pour la mise à niveau vers trusty
# deb-src http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu trusty main # désactivé pour la mise à niveau vers trusty
# deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu trusty main # désactivé pour la mise à niveau vers trusty
# deb-src http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu trusty main # désactivé pour la mise à niveau vers trusty

sudo dpkg --configure -a ne renvoie pas d'erreur mais ne résout pas le problème.

Hors ligne

#25 Le 30/11/2016, à 20:06

ylag

Re : Erreur mise à jour Xenial

Je vous propose ceci dans le but de reconstruire vos listes :

On fait une sauvegarde de vos sources :

sudo cp /etc/apt/sources.list /etc/apt/sources.list.original

Puis on recrée un fichier " sources.list " propre :
Pour ce faire, il faut remplacer le contenu actuel de " /etc/apt/sources.list " par ceci :

#------------------------------------------------------------------------------#
#                            OFFICIAL UBUNTU REPOS                             #
#------------------------------------------------------------------------------#


###### Ubuntu Main Repos
deb http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse 

###### Ubuntu Update Repos
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse 
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse 
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse 

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu xenial partner

On ouvre " sources.list " en administrateur avec l'éditeur de texte " gedit ":
Note: si gksudo non installé, faire :

sudo apt install gksu

...ensuite :

gksudo gedit /etc/apt/sources.list

dans la fenêtre qui s'ouvre, sélectionnez tout et effacez, puis collez-y le contenu complet de ce qui se trouve dans la fenêtre ci-haut. (les lignes importantes sont celles qui ne débutent pas par le caractère " # ").

Enregistrez puis fermez le nouveau fichier " sources.list "

Ensuite, effacez tout ce qui se trouve dans " /etc/apt/sources.list.d " :

sudo rm /etc/apt/sources.list.d/*

Retentez  une nouvelle mise à jour.

EDIT: Si vous avez encore des erreurs lors de cette tentative de mises à jour, essayez :

sudo rm /var/lib/apt/lists/*

...suivi de :

sudo rm /var/lib/apt/lists/partial/*

...avant d'essayer une autre mise à jour.

Dernière modification par ylag (Le 30/11/2016, à 21:10)

Hors ligne