无法获取 http://in.archive.ubuntu.com/ubuntu/dists/maverick/Release

无法获取 http://in.archive.ubuntu.com/ubuntu/dists/maverick/Release
Get:1 http://dl.google.com stable Release.gpg [197B]
Hit http://archive.canonical.com maverick Release.gpg                          
Ign http://archive.canonical.com/ubuntu/ maverick/partner Translation-en_IN    
Hit http://security.ubuntu.com maverick-security Release.gpg         
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en_IN
Ign http://security.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en_IN
Hit http://archive.canonical.com maverick Release                    
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en_IN
Ign http://security.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en_IN
Hit http://security.ubuntu.com maverick-security Release                       
Hit http://archive.canonical.com maverick/partner Packages                     
Hit http://security.ubuntu.com maverick-security/main Packages       
Hit http://security.ubuntu.com maverick-security/restricted Packages 
Hit http://security.ubuntu.com maverick-security/main Sources        
Hit http://security.ubuntu.com maverick-security/restricted Sources  
Hit http://security.ubuntu.com maverick-security/universe Packages
Hit http://security.ubuntu.com maverick-security/universe Sources
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en_IN
Hit http://security.ubuntu.com maverick-security/multiverse Packages 
Hit http://security.ubuntu.com maverick-security/multiverse Sources
Get:2 http://dl.google.com stable Release [1,347B]
Get:3 http://dl.google.com stable/main Packages [1,096B]
Hit http://in.archive.ubuntu.com maverick Release.gpg                          
Ign http://in.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_IN       
Ign http://in.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_IN
Ign http://in.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_IN
Get:4 http://in.archive.ubuntu.com maverick-updates Release.gpg [198B]
Ign http://in.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en_IN
Ign http://in.archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en_IN
Ign http://in.archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en_IN
Err http://in.archive.ubuntu.com maverick Release       

Err http://in.archive.ubuntu.com maverick-updates Release

Ign http://in.archive.ubuntu.com maverick/main Packages
Ign http://in.archive.ubuntu.com maverick/restricted Packages
Ign http://in.archive.ubuntu.com maverick/main Sources
Ign http://in.archive.ubuntu.com maverick/restricted Sources
Ign http://in.archive.ubuntu.com maverick/universe Packages
Ign http://in.archive.ubuntu.com maverick/universe Sources
Ign http://in.archive.ubuntu.com maverick/multiverse Packages
Ign http://in.archive.ubuntu.com maverick/multiverse Sources
Ign http://in.archive.ubuntu.com maverick-updates/main Packages
Ign http://in.archive.ubuntu.com maverick-updates/restricted Packages
Ign http://in.archive.ubuntu.com maverick-updates/main Sources
Ign http://in.archive.ubuntu.com maverick-updates/restricted Sources
Ign http://in.archive.ubuntu.com maverick-updates/universe Packages
Ign http://in.archive.ubuntu.com maverick-updates/universe Sources
Ign http://in.archive.ubuntu.com maverick-updates/multiverse Packages
Ign http://in.archive.ubuntu.com maverick-updates/multiverse Sources
Ign http://in.archive.ubuntu.com maverick/main Packages
Ign http://in.archive.ubuntu.com maverick/restricted Packages
Ign http://in.archive.ubuntu.com maverick/main Sources
Ign http://in.archive.ubuntu.com maverick/restricted Sources
Ign http://in.archive.ubuntu.com maverick/universe Packages
Ign http://in.archive.ubuntu.com maverick/universe Sources
Ign http://in.archive.ubuntu.com maverick/multiverse Packages
Ign http://in.archive.ubuntu.com maverick/multiverse Sources
Ign http://in.archive.ubuntu.com maverick-updates/main Packages
Ign http://in.archive.ubuntu.com maverick-updates/restricted Packages
Ign http://in.archive.ubuntu.com maverick-updates/main Sources
Ign http://in.archive.ubuntu.com maverick-updates/restricted Sources
Ign http://in.archive.ubuntu.com maverick-updates/universe Packages
Ign http://in.archive.ubuntu.com maverick-updates/universe Sources
Ign http://in.archive.ubuntu.com maverick-updates/multiverse Packages
Ign http://in.archive.ubuntu.com maverick-updates/multiverse Sources
Err http://in.archive.ubuntu.com maverick/main Packages
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick/restricted Packages
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick/main Sources
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick/restricted Sources
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick/universe Packages
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick/universe Sources
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick/multiverse Packages
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick/multiverse Sources
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick-updates/main Packages
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick-updates/restricted Packages
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick-updates/main Sources
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick-updates/restricted Sources
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick-updates/universe Packages
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick-updates/universe Sources
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick-updates/multiverse Packages
  Unable to connect to in.archive.ubuntu.com:http:
Err http://in.archive.ubuntu.com maverick-updates/multiverse Sources
  Unable to connect to in.archive.ubuntu.com:http:
Fetched 2,838B in 5min 12s (9B/s)
Reading package lists... Done
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick/Release  

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick-updates/Release  

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick/main/binary-i386/Packages.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick/restricted/binary-i386/Packages.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick/main/source/Sources.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick/restricted/source/Sources.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick/universe/binary-i386/Packages.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick/universe/source/Sources.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/binary-i386/Packages.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/source/Sources.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick-updates/main/binary-i386/Packages.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick-updates/restricted/binary-i386/Packages.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick-updates/main/source/Sources.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick-updates/restricted/source/Sources.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick-updates/universe/binary-i386/Packages.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick-updates/universe/source/Sources.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/binary-i386/Packages.gz  Unable to connect to in.archive.ubuntu.com:http:

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/source/Sources.gz  Unable to connect to in.archive.ubuntu.com:http:

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

这是我更新时得到的结果,我使用的是 10.04 LTS,有一次我尝试升级到 10.10,但最终出现错误,从那时起,所有更新都是从 maverick 完成的,如您所见。现在我在更新和升级(发布升级也是)中都遇到了问题。有没有办法将所有内容恢复为默认设置,或者其他什么...

答案1

我也遇到过这个问题,我来自印度。所以默认选择印度服务器。我只需进入“系统”菜单,在子菜单“管理”中选择“软件源”即可更改它。他们将印度服务器更改为“主”服务器对我没有帮助。

因此,单击“下载自”中的“其他”选项,然后单击“选择最佳服务器”按钮,依次测试 350 个服务器并选择最佳可访问服务器。之后没有错误,我的所有更新也进行得非常顺利和快速。

尝试同样的做法。

答案2

您可以尝试其他镜像,例如http://archive.ubuntu.com/。运行以下命令将所有出现的替换http://in.archive.ubuntu.com/http://archive.ubuntu.com/

sudo sed 's@http://in\.archive\.ubuntu\.com/@http://archive.ubuntu.com/@' -i /etc/apt/sources.list

接下来继续更新:

sudo apt-get update

接下来进行升级或安装:

sudo apt-get upgrade
sudo apt-get install [package-name]

如果没有帮助,您可以撤消之前的更改:

sudo sed 's@http://archive\.ubuntu\.com/@http://in.archive.ubuntu.com/@' -i /etc/apt/sources.list

答案3

运行命令“sudo /usr/bin/software-properties-gtk” 1)它将打开软件源窗口,然后选择从其他下载,然后选择最佳服务器,它将为您检查最佳服务器。 2)选择该服务器。关闭窗口,现在运行“sudo apt-get update”

答案4

如果您从过时的映像构建 Docker 容器,则会遇到许多相同的错误。我在使用时W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/main/source/Sources 404 Not Found也遇到了这个问题,它还显示索引下载失败。

如果您将图像标签提高一级,则可以再次从 URL 下载。不确定这在处理 Linux 升级时会有什么帮助,但它可能会帮助那些遇到此警告的人:W: Some index files failed to download, they have been ignored, or old ones used instead.并看到此类版本冲突。如果可以,请尝试不同的版本。

相关内容