AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 511330
Accepted
somethingSomething
somethingSomething
Asked: 2019-04-09 13:36:09 +0800 CST2019-04-09 13:36:09 +0800 CST 2019-04-09 13:36:09 +0800 CST

apt update 有两个失败的索引文件,我在网上找不到任何关于该做什么的信息

  • 772

我正在更新我的一个系统,但我收到一个错误,我不知道如何修复或问题出在哪里。

这是错误:

E: Failed to fetch http://the.earth.li/debian/dists/stretch-updates/main/binary-i386/Packages  404  Not Found [IP: 46.43.34.31 80]
E: Failed to fetch http://the.earth.li/debian/dists/stretch/main/binary-i386/Packages  404  Not Found [IP: 46.43.34.31 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

root /home/kristjan # apt update                                                                                                                                                                                                    
Hit:1 http://ftp.debian.org/debian stretch-backports InRelease
Hit:2 http://security.debian.org/debian-security stretch/updates InRelease                                                                                                                                                     
Hit:3 http://download.virtualbox.org/virtualbox/debian stretch InRelease                       
Hit:4 https://download.mono-project.com/repo/debian stable-stretch InRelease                          
Hit:5 http://www.deb-multimedia.org stretch InRelease                                                 
Hit:6 http://repo.steampowered.com/steam precise InRelease                                            
Hit:7 https://deb.torproject.org/torproject.org stretch InRelease
Ign:8 http://the.earth.li/debian stretch InRelease 
Get:9 http://the.earth.li/debian stretch-updates InRelease [91.0 kB]
Get:10 http://the.earth.li/debian stretch Release [118 kB]    
Get:11 http://the.earth.li/debian stretch-updates/main Sources.diff/Index [8,608 B]
Get:12 http://the.earth.li/debian stretch-updates/main i386 Packages.diff/Index [8,608 B]
Get:12 http://the.earth.li/debian stretch-updates/main i386 Packages.diff/Index [8,608 B]
Ign:12 http://the.earth.li/debian stretch-updates/main i386 Packages.diff/Index
Get:15 http://the.earth.li/debian stretch Release.gpg [2,434 B]
Get:16 http://the.earth.li/debian stretch-updates/main Sources 2019-02-21-2009.35.pdiff [10.2 kB]
Get:17 http://the.earth.li/debian stretch-updates/main Sources 2019-03-27-2010.32.pdiff [471 B]
Get:18 http://the.earth.li/debian stretch-updates/main Sources 2019-03-30-2008.27.pdiff [726 B]
Get:19 http://the.earth.li/debian stretch-updates/main amd64 Packages 2019-02-21-2009.35.pdiff [4,149 B]
Get:20 http://the.earth.li/debian stretch-updates/main amd64 Packages 2019-03-27-2010.32.pdiff [531 B]
Get:21 http://the.earth.li/debian stretch-updates/main amd64 Packages 2019-03-30-2008.27.pdiff [1,599 B]
Get:22 http://the.earth.li/debian stretch-updates/main Translation-en 2019-02-21-2009.35.pdiff [5,483 B]
Get:18 http://the.earth.li/debian stretch-updates/main Sources 2019-03-30-2008.27.pdiff [726 B]
Get:22 http://the.earth.li/debian stretch-updates/main Translation-en 2019-02-21-2009.35.pdiff [5,483 B]
Get:21 http://the.earth.li/debian stretch-updates/main amd64 Packages 2019-03-30-2008.27.pdiff [1,599 B]
Ign:23 http://the.earth.li/debian stretch-updates/main i386 Packages                                     
Get:24 http://the.earth.li/debian stretch/non-free Sources [79.4 kB]
Get:25 http://the.earth.li/debian stretch/main Sources [6,746 kB]
Get:26 http://the.earth.li/debian stretch/main i386 Packages [7,064 kB]
Get:26 http://the.earth.li/debian stretch/main i386 Packages [7,064 kB]
Get:26 http://the.earth.li/debian stretch/main i386 Packages [7,064 kB]
Get:26 http://the.earth.li/debian stretch/main i386 Packages [7,064 kB]
Ign:26 http://the.earth.li/debian stretch/main i386 Packages
Ign:31 http://the.earth.li/debian stretch/non-free i386 Packages
Ign:23 http://the.earth.li/debian stretch-updates/main i386 Packages
Ign:26 http://the.earth.li/debian stretch/main i386 Packages
Ign:31 http://the.earth.li/debian stretch/non-free i386 Packages
Err:23 http://the.earth.li/debian stretch-updates/main i386 Packages
  404  Not Found [IP: 46.43.34.31 80]
Ign:26 http://the.earth.li/debian stretch/main i386 Packages
Ign:31 http://the.earth.li/debian stretch/non-free i386 Packages
Err:26 http://the.earth.li/debian stretch/main i386 Packages
  404  Not Found [IP: 46.43.34.31 80]
Ign:31 http://the.earth.li/debian stretch/non-free i386 Packages
Fetched 235 kB in 1s (125 kB/s)
Reading package lists... Done
E: Failed to fetch http://the.earth.li/debian/dists/stretch-updates/main/binary-i386/Packages  404  Not Found [IP: 46.43.34.31 80]
E: Failed to fetch http://the.earth.li/debian/dists/stretch/main/binary-i386/Packages  404  Not Found [IP: 46.43.34.31 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

这是系统:

root /home/kristjan # cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

这是来源列表:

root /home/kristjan # cat /etc/apt/sources.list
# 
#deb cdrom:[Debian GNU/Linux 9.4.0 _S
#deb cdrom:[Debian GNU/Linux 9.4.0 _S

deb http://www.deb-multimedia.org stretch main non-free

deb http://the.earth.li/debian/ stretch main non-free
deb-src http://the.earth.li/debian/ stretch main non-free

deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb http://the.earth.li/debian/ stretch-updates main contrib non-free
deb-src http://the.earth.li/debian/ stretch-updates main contrib non-free

# Virtualbox Oracle
deb http://download.virtualbox.org/virtualbox/debian stretch contrib


#Tor###########################97
deb https://deb.torproject.org/torproject.org stretch main
deb-src https://deb.torproject.org/torproject.org stretch main
# For the stable version.
#deb tor://sdscoq7snqtznauu.onion/torproject.org stretch main


########################### Backports testingittt
#deb http://ftp.debian.org/debian stretch-backports main

这里有什么问题,我该如何解决?

更新:

我有两台服务器都运行 Debian Stretch 9.9,并且使用相同的 debian 服务器进行软件包和更新,但我只能更新其中一个,这个给我这个错误:

~↓↓$↓↓ apt update
Hit:1 http://www.deb-multimedia.org stretch InRelease
Ign:2 http://the.earth.li/debian stretch InRelease                                                                                                        
Hit:3 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic InRelease                                                                                 
Get:4 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]                                                                      
Hit:6 http://download.virtualbox.org/virtualbox/debian stretch InRelease                                                                                  
Hit:7 http://ftp.debian.org/debian stretch-backports InRelease                                                                                            
Get:5 http://the.earth.li/debian stretch-updates InRelease [91.0 kB]                                                                                      
Hit:9 http://repo.mysql.com/apt/debian stretch InRelease                                                                                    
Hit:10 https://packages.microsoft.com/debian/9/prod stretch InRelease                                      
Hit:11 https://packages.microsoft.com/repos/vscode stable InRelease                  
Get:8 http://the.earth.li/debian stretch Release [118 kB]                
Hit:12 https://deb.torproject.org/torproject.org stretch InRelease                                     
Get:13 http://security.debian.org/debian-security stretch/updates/main Sources [205 kB]                 
Get:14 http://the.earth.li/debian stretch Release.gpg [2,434 B]                                                       
Get:15 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [492 kB]                                       
Get:16 http://the.earth.li/debian stretch-updates/main Sources [13.1 kB]            
Get:17 http://the.earth.li/debian stretch-updates/main amd64 Packages [27.2 kB]                            
Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [27.2 kB]                             
Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [27.2 kB]                                               
Hit:21 http://repo.steampowered.com/steam precise InRelease                                                                             
Ign:18 http://the.earth.li/debian stretch-updates/main i386 Packages                                       
Ign:22 http://the.earth.li/debian stretch-updates/main i386 Contents (deb)          
Get:23 http://security.debian.org/debian-security stretch/updates/main i386 Packages [494 kB]
Ign:18 http://the.earth.li/debian stretch-updates/main i386 Packages                                         
Hit:24 https://download.mono-project.com/repo/debian stable-stretch InRelease                                
Ign:25 https://apt.jenslody.de/stable stretch InRelease                                                       
Err:22 http://the.earth.li/debian stretch-updates/main i386 Contents (deb)          
  404  Not Found [IP: 46.43.34.31 80]
Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB]       
Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB]           
Hit:28 https://apt.jenslody.de/stable stretch Release                                    
Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB]
Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB]
Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB]
Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB]
Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB]
Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB]
Ign:18 http://the.earth.li/debian stretch-updates/main i386 Packages
Ign:36 http://the.earth.li/debian stretch/main i386 Packages
Get:37 http://the.earth.li/debian stretch/main i386 Contents (deb) [31.3 MB]
Get:38 http://the.earth.li/debian stretch/main amd64 Contents (deb) [31.4 MB]                                                                             
Get:39 http://the.earth.li/debian stretch/non-free amd64 Packages [78.3 kB]                                                                               
Ign:40 http://the.earth.li/debian stretch/non-free i386 Packages                                                                                          
Get:41 http://the.earth.li/debian stretch/non-free Translation-en [80.3 kB]                                                                               
Get:42 http://the.earth.li/debian stretch/non-free amd64 DEP-11 Metadata [7,180 B]                                                                        
Get:43 http://the.earth.li/debian stretch/non-free DEP-11 64x64 Icons [30.0 kB]                                                                           
Get:44 http://the.earth.li/debian stretch/non-free DEP-11 128x128 Icons [85.2 kB]                                                                         
Get:45 http://the.earth.li/debian stretch/non-free amd64 Contents (deb) [809 kB]                                                                          
Get:46 http://the.earth.li/debian stretch/non-free i386 Contents (deb) [750 kB]                                                                           
Ign:36 http://the.earth.li/debian stretch/main i386 Packages                                                                                              
Ign:40 http://the.earth.li/debian stretch/non-free i386 Packages                                                                                          
Ign:36 http://the.earth.li/debian stretch/main i386 Packages                                                                                              
Ign:40 http://the.earth.li/debian stretch/non-free i386 Packages                                                                                          
Err:36 http://the.earth.li/debian stretch/main i386 Packages                                                                                              
  404  Not Found [IP: 46.43.34.31 80]
Ign:40 http://the.earth.li/debian stretch/non-free i386 Packages                                                                                          
Fetched 44.7 MB in 13s (3,223 kB/s)                                                                                                                       
Reading package lists... Done
E: Failed to fetch http://the.earth.li/debian/dists/stretch-updates/main/Contents-i386  404  Not Found [IP: 46.43.34.31 80]
E: Failed to fetch http://the.earth.li/debian/dists/stretch/main/binary-i386/Packages  404  Not Found [IP: 46.43.34.31 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

以下是其他list文件,仅供参考:

~↓↓$↓↓ ls -asil /etc/apt/sources.list.d/
total 36
1175229 4 drwxr-xr-x 2 root root 4096 May 18 09:52 .
1175056 4 drwxr-xr-x 6 root root 4096 May 23 01:54 ..
1178126 4 -rw-r--r-- 1 root root   67 May  2 08:18 linuxuprising-java.list
1178021 4 -rw-r--r-- 1 root root   75 Jan 17  2018 microsoft-prod.list
1177218 4 -rw-r--r-- 1 root root   70 Jul 12  2018 mono-official-stable.list
1176353 4 -rw-r--r-- 1 root root  712 May 13 06:23 mysql.list
1178155 4 -rw-r--r-- 1 root root  148 Jul 24  2018 steam.list
1178030 4 -rw-r--r-- 1 root root   64 Jul 21  2018 stretch-backports.list
1176782 4 -rw-r--r-- 1 root root   73 May 18 09:42 vscode.list

这是sources.list在另一台服务器上:

deb http://www.deb-multimedia.org stretch main non-free

deb http://the.earth.li/debian/ stretch main non-free
deb-src http://the.earth.li/debian/ stretch main non-free

deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb http://the.earth.li/debian/ stretch-updates main contrib non-free
deb-src http://the.earth.li/debian/ stretch-updates main contrib non-free

# Virtualbox Oracle
deb http://download.virtualbox.org/virtualbox/debian stretch contrib
linux debian
  • 1 1 个回答
  • 1309 Views

1 个回答

  • Voted
  1. Best Answer
    telcoM
    2019-05-24T00:25:25+08:002019-05-24T00:25:25+08:00

    根据Debian 镜像所有者的博客the.earth.li和官方列表,不再the.earth.li声称提供 Debian 镜像服务。宣布此更改的时间是 2019 年 2 月 1 日。

    那么为什么它仍然适用于某些系统而不适用于其他系统呢?

    好吧,系统的所有者可以自由改变主意。

    或者,无论出于何种个人原因,他们只是没有在公告中指定的确切日期完全关闭它。

    也许他们实际上保留了镜像供自己本地使用,但是(作为停止的原因之一是磁盘空间的成本)他们可能已将其缩减为仅涵盖对自己有用的系统架构。例如,如果他们不再使用任何 32 位 x86 系统并且不需要 32 位兼容性,那么他们可能已经放弃了i386架构,但保留了镜像amd64。(如果正在运行的虚拟机都是 64 位系统,这可能是原因。)

    或者他们可能已经实现了某种任意类型的访问过滤。例如,他们现在可能正在使用某种形式的基于 GeoIP 的阻止,并且他们的(不完美的)GeoIP 数据库恰好列出了您的一项服务的 IP,但没有列出另一项服务的 IP。

    那你该怎么办?

    the.earth.li正如所有者所说,您应该切换到使用其他存储库。由于现在没有人做出任何the.earth.li将保持最新、完整和功能的承诺,您应该假设它可能会过时或完全停止工作而没有进一步的警告。

    您可以通过以下几种方式做到这一点:

    如果您已经安装了它(或者想下载一些必要的软件包来手动安装它),您可以使用该netselect-apt实用程序自动为您选择一个新的官方存储库镜像。

    或者你可以切换到使用deb.debian.orgin your sources.list,它应该会自动将你的包管理工具重定向到一个离你很近的存储库镜像。

    或者您可以从Debian 镜像的官方列表中选择一个新的存储库并手动配置它。

    或者,您可以使用第三方 sources.list 生成器。比如这个:https ://debgen.simplylinux.ch/

    • 2

相关问题

  • astyle 不会更改源文件格式

  • 接收有关全新 Debian 的电子邮件

  • Debian Stretch:libgs_plugin_systemd-updates.so 中的 gnome-software 段错误

  • 通过标签将根文件系统传递给linux内核

  • 如何在拼音输入法中输入ü?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve