Update errors : FetchFailedException and "Splitting up ... failed"

Problème lors de l’update

via l’interface de Yunohost :

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 439, in process
    ret = self.actionsmap.process(arguments, timeout=30, route=_route)
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 523, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/tools.py", line 476, in tools_update
    if not cache.update():
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 466, in update
    raise FetchFailedException()
FetchFailedException

et en ligne de commande j’ai ces erreur :

sudo apt update
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease                       
Hit:3 http://deb.debian.org/debian stretch-updates InRelease               
Err:1 http://security.debian.org stretch/updates InRelease                 
  Splitting up /var/lib/apt/lists/security.debian.org_dists_stretch_updates_InRelease into data and signature failed
Err:3 http://deb.debian.org/debian stretch-updates InRelease             
  Splitting up /var/lib/apt/lists/deb.debian.org_debian_dists_stretch-updates_InRelease into data and signature failed
Hit:4 http://deb.debian.org/debian stretch Release                       
Hit:5 http://forge.yunohost.org/debian stretch InRelease
Hit:6 https://deb.nodesource.com/node_8.x stretch InRelease
Err:7 http://deb.debian.org/debian stretch Release.gpg
  At least one invalid signature was encountered.
Err:5 http://forge.yunohost.org/debian stretch InRelease
  Splitting up /var/lib/apt/lists/forge.yunohost.org_debian_dists_stretch_InRelease into data and signature failed
Err:6 https://deb.nodesource.com/node_8.x stretch InRelease
  Splitting up /var/lib/apt/lists/deb.nodesource.com_node%5f8.x_dists_stretch_InRelease into data and signature failed
Hit:8 https://packages.sury.org/php stretch InRelease
Err:8 https://packages.sury.org/php stretch InRelease
  Splitting up /var/lib/apt/lists/packages.sury.org_php_dists_stretch_InRelease into data and signature failed
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
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.debian.org stretch/updates InRelease: Splitting up /var/lib/apt/lists/security.debian.org_dists_stretch_updates_InRelease into data and signature failed
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian stretch-updates InRelease: Splitting up /var/lib/apt/lists/deb.debian.org_debian_dists_stretch-updates_InRelease into data and signature failed
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian stretch Release: At least one invalid signature was encountered.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://forge.yunohost.org/debian stretch InRelease: Splitting up /var/lib/apt/lists/forge.yunohost.org_debian_dists_stretch_InRelease into data and signature failed
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://deb.nodesource.com/node_8.x stretch InRelease: Splitting up /var/lib/apt/lists/deb.nodesource.com_node%5f8.x_dists_stretch_InRelease into data and signature failed
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php stretch InRelease: Splitting up /var/lib/apt/lists/packages.sury.org_php_dists_stretch_InRelease into data and signature failed
W: Failed to fetch http://security.debian.org/dists/stretch/updates/InRelease  Splitting up /var/lib/apt/lists/security.debian.org_dists_stretch_updates_InRelease into data and signature failed
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease  Splitting up /var/lib/apt/lists/deb.debian.org_debian_dists_stretch-updates_InRelease into data and signature failed
W: Failed to fetch https://deb.nodesource.com/node_8.x/dists/stretch/InRelease  Splitting up /var/lib/apt/lists/deb.nodesource.com_node%5f8.x_dists_stretch_InRelease into data and signature failed
W: Failed to fetch https://packages.sury.org/php/dists/stretch/InRelease  Splitting up /var/lib/apt/lists/packages.sury.org_php_dists_stretch_InRelease into data and signature failed
W: Failed to fetch http://forge.yunohost.org/debian/dists/stretch/InRelease  Splitting up /var/lib/apt/lists/forge.yunohost.org_debian_dists_stretch_InRelease into data and signature failed
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/Release.gpg  At least one invalid signature was encountered.
W: Some index files failed to download. They have been ignored, or old ones used instead.

Avez-vous une commande pour régler ce problème ? Merci

pour info :

yunohost
    3.4.2.4 (stable)
yunohost-admin
    3.4.2 (stable)
moulinette
    3.4.2 (stable)
ssowat
    3.4.2 (stable)

salut 1ere solution

Clear APT cache and regenerate it:

sudo apt-get clean
sudo mv /var/lib/apt/lists /tmp
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update
1 Like

Merci :wink:

1 Like