debian jessie apt-get 更新失败(404)

debian jessie apt-get 更新失败(404)

我是 Debian 新手。我只是想在我的 vps 上安装更新,apt-get update结果出现了 404 错误。我在 Google 上搜索了一段时间,有人建议替换或重新生成 sources.list 文件,所以我就这么做了(据我所知)。

这是我当前的来源列表:

# Debian packages for stable
deb http://mirror.0x.sg/debian/ stable main contrib
# Uncomment the deb-src line if you want 'apt-get source'
# to work with most packages.
# deb-src http://mirror.0x.sg/debian/ stable main contrib

# Security updates for stable
deb http://security.debian.org/ stable/updates main contrib

这是我的系统:

root@debbox:/etc/apt# uname -a
Linux debbox 4.8.6-x86_64-linode78 #1 SMP Tue Nov 1 14:51:21 EDT 2016 x86_64 GNU/Linux

我安装并运行了 netselect-apt 来重建上面看到的 sources.list:

root@debbox:/etc/apt# apt-get install netselect-apt
... snip ...
Writing sources.list.
Done.

但是 apt-get udpate 仍然失败。不确定 ftp.utexas 的东西来自哪里。

root@debbox:/etc/apt# apt-get update
Ign http://mirror.0x.sg stable InRelease
Get:1 http://mirror.0x.sg stable Release.gpg [2,373 B]                                                       
Get:2 http://mirror.0x.sg stable Release [118 kB]                                                            
Get:3 http://mirror.0x.sg stable/main amd64 Packages [7,095 kB]                                              
Get:4 http://mirror.0x.sg stable/contrib amd64 Packages [50.9 kB]                                            
Ign http://repo.mongodb.org jessie/mongodb-org/3.4 InRelease                                                 
Hit http://repo.mongodb.org jessie/mongodb-org/3.4 Release.gpg                                               
Hit http://repo.mongodb.org jessie/mongodb-org/3.4 Release                                                   
Get:5 http://repo.mongodb.org jessie/mongodb-org/3.4/main amd64 Packages [5,868 B]                           
Get:6 http://mirror.0x.sg stable/contrib Translation-en [45.9 kB]                                            
Get:7 http://mirror.0x.sg stable/main Translation-en [5,393 kB]                                              
Hit http://http.debian.net testing InRelease                                                                 
Ign http://repo.mongodb.org jessie/mongodb-org/3.4/main Translation-en_US                                    
Ign http://repo.mongodb.org jessie/mongodb-org/3.4/main Translation-en                                       
Get:8 http://security.debian.org stable/updates InRelease [62.9 kB]                                          
Get:9 http://http.debian.net testing/main amd64 Packages/DiffIndex [27.9 kB]                                 
Get:10 http://security.debian.org stable/updates/main amd64 Packages [128 kB]                                
Ign http://ftp.utexas.edu stable InRelease                                                       
Get:11 http://security.debian.org stable/updates/contrib amd64 Packages [556 B]                  
Get:12 http://security.debian.org stable/updates/contrib Translation-en [256 B]                              
Get:13 http://http.debian.net testing/main Translation-en/DiffIndex [27.9 kB]                                
Get:14 http://security.debian.org stable/updates/main Translation-en [52.7 kB]                               
Ign http://ftp.utexas.edu stable Release.gpg                                                                 
Ign http://ftp.utexas.edu stable Release                                                                     
Ign http://ftp.utexas.edu stable/all Sources/DiffIndex                        
Ign http://ftp.utexas.edu stable/all amd64 Packages/DiffIndex
Ign http://ftp.utexas.edu stable/all Translation-en_US                                                       
Ign http://ftp.utexas.edu stable/all Translation-en                                                          
Err http://ftp.utexas.edu stable/all Sources                                                                 
  404  Not Found
Err http://ftp.utexas.edu stable/all amd64 Packages                                                          
  404  Not Found
Fetched 13.0 MB in 12s (1,080 kB/s)                                                                          
W: There is no public key available for the following key IDs:
EF0F382A1A7B6500
W: Failed to fetch http://ftp.utexas.edu/dotdeb/dists/stable/all/source/Sources  404  Not Found

W: Failed to fetch http://ftp.utexas.edu/dotdeb/dists/stable/all/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

任何建议都值得感激!

答案1

APT 还可以将存储库配置存储在 中/etc/apt/sources.list.d/。其中一个文件可能包含错误的 ftp.utexas.edu 行;我猜它stable/all应该只包含而不是stable

相关内容