首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Debian拉伸(旧式) apt源列表问题:存储库没有发布文件

Debian拉伸(旧式) apt源列表问题:存储库没有发布文件
EN

Unix & Linux用户
提问于 2020-04-22 09:59:58
回答 1查看 2.6K关注 0票数 0

我有一个旧的Debian拉伸机,我一直面临一些问题,与apt的源代码列表。我发现了一些与我的问题相关的问题(比如这一个),但是它们对我来说不太适用。

我的源列表中有几个回复没有更新。为了隔离这个问题,我对所有问题都进行了注释,只留下了deb http://deb.debian.org/debian/ stretch main

代码语言:javascript
复制
# 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时,我得到的是:

代码语言:javascript
复制
# 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下载:

代码语言:javascript
复制
# 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

没有合适的传道者

代码语言:javascript
复制
# 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

多亏了@ fine 4089,我找到了一个错误的代理配置,现在apt运行良好。

我刚刚注释掉了来自apt.conf的行D8

EN

回答 1

Unix & Linux用户

发布于 2020-04-27 10:36:41

多亏了@ fine 4089,我找到了一个错误的代理配置,现在apt运行良好。

我刚刚注释掉了来自apt.conf的行D1

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/581720

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档