2017-07-24 2 views
-1

Récemment j'ai édité mon /etc/apt/sources.list et changez le jessie pour s'étirer pour obtenir la nouvelle version de gcc-6. Cependant, quand je change stretch retour à jessie, et exécutez sudo apt-get update j'ai eu beaucoup d'erreurs. Comment puis-je le résoudre.Comment puis-je résoudre les erreurs dans apt mise à jour de framboise pi?

[email protected] ~ $ sudo apt update 
Hit:1 http://raspberrypi.collabora.com wheezy InRelease        
Get:2 http://mirrordirector.raspbian.org/raspbian jessie InRelease [14.9 kB]    
Err:1 http://raspberrypi.collabora.com wheezy InRelease         
    The following signatures were invalid: FF9FD9E73808E2376CB76F0AED4BF9140C50B1C5 
Hit:4 http://archive.raspberrypi.org/debian jessie InRelease 
Get:5 http://mirrordirector.raspbian.org/raspbian jessie/main armhf Packages [9534 kB] 
Hit:3 https://packagecloud.io/Hypriot/Schatzkiste/raspbian jessie InRelease 
Get:6 http://124.202.164.8/files/311600000A34E137/http.debian.net/debian jessie/main armhf Packages [169 kB]   
Err:6 http://124.202.164.8/files/311600000A34E137/http.debian.net/debian jessie/main armhf Packages 
    Writing more data than expected (196868 > 169365) 
    Hashes of expected file: 
    - Filesize:169365 [weak] 
    - SHA256:779179f25b91efa4fdbf69aeb7c37d444e104e3b8d359daf27bc4db4d330003f 
    - SHA1:aa605ce914ddacfd4b8c71c72bab3a95b76c0ed5 [weak] 
    - MD5Sum:f0867f34045767904d0caa686f288615 [weak] 
    Release file created at: Fri, 14 Jul 2017 15:58:01 +0000 
Get:7 http://archive.raspbian.org/raspbian jessie InRelease [14.9 kB]                               
Get:8 http://archive.raspbian.org/raspbian jessie/rpi Sources [1132 B]                               
Get:9 http://archive.raspbian.org/raspbian jessie/non-free Sources [113 kB]                             
Get:10 http://archive.raspbian.org/raspbian jessie/main Sources [7754 kB]                              
Ign:11 https://apt.dockerproject.org/repo raspbian-jessie InRelease                               
Get:12 http://mirrordirector.raspbian.org/raspbian jessie/contrib armhf Packages [43.3 kB]                          
Get:13 http://mirrordirector.raspbian.org/raspbian jessie/non-free armhf Packages [84.2 kB]                         
Get:14 http://mirrordirector.raspbian.org/raspbian jessie/rpi armhf Packages [1356 B]                           
Err:15 https://apt.dockerproject.org/repo raspbian-jessie Release                                
    gnutls_handshake() failed: The TLS connection was non-properly terminated. 
Get:16 http://archive.raspbian.org/raspbian jessie/contrib Sources [64.5 kB]                             
Reading package lists... Done                                         
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://raspberrypi.collabora.com wheezy InRelease: The following signatures were invalid: FF9FD9E73808E2376CB76F0AED4BF9140C50B1C5 
E: The repository 'https://apt.dockerproject.org/repo raspbian-jessie Release' does no longer have a Release file. 
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. 

Mon fichier sources.list

deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi 

# Uncomment line below then 'apt-get update' to enable 'apt-get source' 
deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi 

Répondre

-1
sudo apt remove gnupg 
sudo apt install --reinstall gnupg2 (possibly not necessary, but doesn't hurt) 
sudo apt install dirmngr 

Ensuite, exécutez

gpg --keyserver keys.gnupg.net --recv-key FF9FD9E73808E2376CB76F0AED4BF9140C50B1C5 
gpg -a --export FF9FD9E73808E2376CB76F0AED4BF9140C50B1C5 | sudo apt-key add -