Debianstretch(oldstable)apt源列表问题:存储库没有Release文件

Debianstretch(oldstable)apt源列表问题:存储库没有Release文件

我有一台旧的 Debian 拉伸机,并且我一直面临着 apt 源列表的一些问题。我发现了一些与我的问题相关的问题(例如这个),但是它们不太适合我。

我的源列表中有几个存储库无法更新。为了隔离问题,我对它们全部进行了评论,只留下了deb http://deb.debian.org/debian/ stretch main

# Debian Stretch, dépôt principal
deb http://deb.debian.org/debian/ stretch main
# Debian Stretch, mises à jour de sécurité
#deb http://security.debian.org/ stretch/updates main
# Debian Stretch, mises à jour "volatiles"
#deb http://deb.debian.org/debian/ stretch/updates main

#deb http://archive.debian.org/debian jessie-backports main

当我尝试时,apt-get update我得到的是:

# apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease                                                                                                    
Ign:2 http://deb.debian.org/debian stretch Release                                                                                                      
Ign:3 http://deb.debian.org/debian stretch/main amd64 Packages                                                                                          
Ign:4 http://deb.debian.org/debian stretch/main all Packages                                                                                            
Ign:5 http://deb.debian.org/debian stretch/main Translation-en_US                                                                                       
Ign:6 http://deb.debian.org/debian stretch/main Translation-en                                                                                          
Ign:3 http://deb.debian.org/debian stretch/main amd64 Packages                                                                                          
Ign:4 http://deb.debian.org/debian stretch/main all Packages                                                                                            
Ign:5 http://deb.debian.org/debian stretch/main Translation-en_US                                                                                       
Ign:6 http://deb.debian.org/debian stretch/main Translation-en                                                                                          
Ign:3 http://deb.debian.org/debian stretch/main amd64 Packages                                                                                          
Ign:4 http://deb.debian.org/debian stretch/main all Packages                                                                                            
Ign:5 http://deb.debian.org/debian stretch/main Translation-en_US                                                                                       
Ign:6 http://deb.debian.org/debian stretch/main Translation-en                                                                                          
Ign:3 http://deb.debian.org/debian stretch/main amd64 Packages                                                                                          
Ign:4 http://deb.debian.org/debian stretch/main all Packages                                                                                            
Ign:5 http://deb.debian.org/debian stretch/main Translation-en_US                                                                                       
Ign:6 http://deb.debian.org/debian stretch/main Translation-en                                                                                          
Ign:3 http://deb.debian.org/debian stretch/main amd64 Packages                                                                                          
Ign:4 http://deb.debian.org/debian stretch/main all Packages                                                                                            
Ign:5 http://deb.debian.org/debian stretch/main Translation-en_US                                                                                       
Ign:6 http://deb.debian.org/debian stretch/main Translation-en                                                                                          
Err:3 http://deb.debian.org/debian stretch/main amd64 Packages                                                                                          
  503  Cache storage error - No such file or directory                                                                                                  
Ign:4 http://deb.debian.org/debian stretch/main all Packages                                                                                            
Ign:5 http://deb.debian.org/debian stretch/main Translation-en_US                                                                                       
Ign:6 http://deb.debian.org/debian stretch/main Translation-en                                                                                          
Reading package lists... Done                                                                                                                           
W: The repository 'http://deb.debian.org/debian 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.                                                                    
E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages  503  Cache storage error - No such file or directory          
E: Some index files failed to download. They have been ignored, or old ones used instead. 

您知道可能是什么问题以及我该如何解决它吗?

谢谢 :)


编辑#1

发布文件已从 deb.debian.org 正确下载:

# wget http://deb.debian.org/debian/dists/stretch/Release && head Release
--2020-04-23 11:56:43--  http://deb.debian.org/debian/dists/stretch/Release                                                                              
Resolving deb.debian.org (deb.debian.org)... 151.101.122.133, 2a04:4e42:1d::645                                                                         
Connecting to deb.debian.org (deb.debian.org)|151.101.122.133|:80... connected.                                                                         
HTTP request sent, awaiting response... 200 OK                                                                                                          
Length: 117951 (115K)                                                                                                                                   
Saving to: ‘Release’                                                                                                                                    

Release                               100%[=========================================================================>] 115.19K  --.-KB/s    in 0.03s    

2020-04-23 11:56:43 (4.03 MB/s) - ‘Release’ saved [117951/117951]                                                                                       

Origin: Debian                                                                                                                                          
Label: Debian                                                                                                                                           
Suite: oldstable                                                                                                                                        
Version: 9.12                                                                                                                                           
Codename: stretch                                                                                                                                       
Changelogs: http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog                                                                     
Date: Sat, 08 Feb 2020 12:23:08 UTC                                                                                                                     
Acquire-By-Hash: yes                                                                                                                                    
Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x                                                                          
Components: main contrib non-free         

编辑#2

没有 apt-cacher-ng

# apt show apt-cacher-ng
N: Unable to locate package apt-cacher-ng                                                                                                               
N: Unable to locate package apt-cacher-ng                                                                                                               
E: No packages found     

编辑#3

感谢@user4089,我发现了一个错误的代理配置,现在 apt 工作正常。

我刚刚注释掉了来自 Acquire::http::Proxy "http://XXX.XXX.XXX.XXX:XXX"的行apt.conf

答案1

感谢@user4089,我发现了一个错误的代理配置,现在 apt 工作正常。

我刚刚注释掉了来自Acquire::http::Proxy "http://XXX.XXX.XXX.XXX:XXX"的行apt.conf

相关内容