我尝试在我的vps上设置Debian 7(32位)。当我在shell上运行apt-get update时,我看到了一个错误。有人可以帮助尝试解决它吗?
以下是我的sources.list的内容和错误:
的/etc/apt/sources.list
###############################################################################
# Rackster APT-Mirror
#
deb http://apt.rackster-server.ch/debian/packages wheezy main contrib non-free
deb http://apt.rackster-server.ch/debian/security wheezy/updates main contrib non-free
###############################################################################
# Backupmirror
#
deb http://ftp.de.debian.org/debian wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
###############################################################################
# Backports
#
deb http://ftp.debian.org/debian/ wheezy-backports main contrib non-free
root @ vps:〜#apt-get update
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://ftp.debian.org wheezy-backports Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://ftp.de.debian.org wheezy Release.gpg
Hit http://ftp.debian.org wheezy-backports Release
Hit http://security.debian.org wheezy/updates/main i386 Packages
Hit http://ftp.de.debian.org wheezy Release
Hit http://security.debian.org wheezy/updates/contrib i386 Packages
Hit http://ftp.debian.org wheezy-backports/main i386 Packages/DiffIndex
Hit http://security.debian.org wheezy/updates/non-free i386 Packages
Hit http://ftp.de.debian.org wheezy/main i386 Packages
Hit http://security.debian.org wheezy/updates/contrib Translation-en
Hit http://ftp.debian.org wheezy-backports/contrib i386 Packages/DiffIndex
Hit http://ftp.de.debian.org wheezy/contrib i386 Packages
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit http://ftp.debian.org wheezy-backports/non-free i386 Packages/DiffIndex
Hit http://security.debian.org wheezy/updates/non-free Translation-en
Hit http://ftp.de.debian.org wheezy/non-free i386 Packages
Hit http://ftp.debian.org wheezy-backports/contrib Translation-en/DiffIndex
Hit http://ftp.de.debian.org wheezy/contrib Translation-en
Hit http://ftp.debian.org wheezy-backports/main Translation-en/DiffIndex
Hit http://ftp.de.debian.org wheezy/main Translation-en
Hit http://ftp.debian.org wheezy-backports/non-free Translation-en/DiffIndex
Hit http://ftp.de.debian.org wheezy/non-free Translation-en
Err http://apt.rackster-server.ch wheezy Release.gpg
Could not connect to apt.rackster-server.ch:80 (213.133.99.97). - connect (110: Connection timed out)
Err http://apt.rackster-server.ch wheezy/updates Release.gpg
Unable to connect to apt.rackster-server.ch:http:
Ign http://apt.rackster-server.ch wheezy Release
Ign http://apt.rackster-server.ch wheezy/updates Release
Err http://apt.rackster-server.ch wheezy/main i386 Packages
Unable to connect to apt.rackster-server.ch:http:
Err http://apt.rackster-server.ch wheezy/contrib i386 Packages
Unable to connect to apt.rackster-server.ch:http:
Err http://apt.rackster-server.ch wheezy/non-free i386 Packages
Unable to connect to apt.rackster-server.ch:http:
Err http://apt.rackster-server.ch wheezy/contrib Translation-en
Unable to connect to apt.rackster-server.ch:http:
Err http://apt.rackster-server.ch wheezy/main Translation-en
Unable to connect to apt.rackster-server.ch:http:
Err http://apt.rackster-server.ch wheezy/non-free Translation-en
Unable to connect to apt.rackster-server.ch:http:
Err http://apt.rackster-server.ch wheezy/updates/main i386 Packages
Unable to connect to apt.rackster-server.ch:http:
Err http://apt.rackster-server.ch wheezy/updates/contrib i386 Packages
Unable to connect to apt.rackster-server.ch:http:
Err http://apt.rackster-server.ch wheezy/updates/non-free i386 Packages
Unable to connect to apt.rackster-server.ch:http:
Err http://apt.rackster-server.ch wheezy/updates/contrib Translation-en
Unable to connect to apt.rackster-server.ch:http:
Err http://apt.rackster-server.ch wheezy/updates/main Translation-en
Unable to connect to apt.rackster-server.ch:http:
Err http://apt.rackster-server.ch wheezy/updates/non-free Translation-en
Unable to connect to apt.rackster-server.ch:http:
W: Failed to fetch http://apt.rackster-server.ch/debian/packages/dists/wheezy/Release.gpg Could not connect to apt.rackster-server.ch:80 (213.133.99.97). - connect (110: Connection timed out)
W: Failed to fetch http://apt.rackster-server.ch/debian/security/dists/wheezy/updates/Release.gpg Unable to connect to apt.rackster-server.ch:http:
W: Failed to fetch http://apt.rackster-server.ch/debian/packages/dists/wheezy/main/binary-i386/Packages Unable to connect to apt.rackster-server.ch:http:
W: Failed to fetch http://apt.rackster-server.ch/debian/packages/dists/wheezy/contrib/binary-i386/Packages Unable to connect to apt.rackster-server.ch:http:
W: Failed to fetch http://apt.rackster-server.ch/debian/packages/dists/wheezy/non-free/binary-i386/Packages Unable to connect to apt.rackster-server.ch:http:
W: Failed to fetch http://apt.rackster-server.ch/debian/packages/dists/wheezy/contrib/i18n/Translation-en Unable to connect to apt.rackster-server.ch:http:
W: Failed to fetch http://apt.rackster-server.ch/debian/packages/dists/wheezy/main/i18n/Translation-en Unable to connect to apt.rackster-server.ch:http:
W: Failed to fetch http://apt.rackster-server.ch/debian/packages/dists/wheezy/non-free/i18n/Translation-en Unable to connect to apt.rackster-server.ch:http:
W: Failed to fetch http://apt.rackster-server.ch/debian/security/dists/wheezy/updates/main/binary-i386/Packages Unable to connect to apt.rackster-server.ch:http:
W: Failed to fetch http://apt.rackster-server.ch/debian/security/dists/wheezy/updates/contrib/binary-i386/Packages Unable to connect to apt.rackster-server.ch:http:
W: Failed to fetch http://apt.rackster-server.ch/debian/security/dists/wheezy/updates/non-free/binary-i386/Packages Unable to connect to apt.rackster-server.ch:http:
W: Failed to fetch http://apt.rackster-server.ch/debian/security/dists/wheezy/updates/contrib/i18n/Translation-en Unable to connect to apt.rackster-server.ch:http:
W: Failed to fetch http://apt.rackster-server.ch/debian/security/dists/wheezy/updates/main/i18n/Translation-en Unable to connect to apt.rackster-server.ch:http:
W: Failed to fetch http://apt.rackster-server.ch/debian/security/dists/wheezy/updates/non-free/i18n/Translation-en Unable to connect to apt.rackster-server.ch:http:
E: Some index files failed to download. They have been ignored, or old ones used instead.
答案 0 :(得分:3)
作为Rackster OpenVZ模板的创建者,我可能会把事情搞得一团糟。
模板主要是为我们自己的客户构建的,所以我们默认引用自己的apt存储库来节省带宽等。但是你可以安全地用官方Debian(Wheezy)存储库替换这些行,因为所有的包都是vanilla upstream / original的Debian。
您仍然可能需要通知您的提供商,以便他可以通过更改本地副本中的这些行来“修复”此问题。
为了完整起见,他们是模板的专用项目页面:https://projects.rackster.ch/OpenVZ/Templates/Debian%207/Overview.md
希望模板对你有好处。很高兴你的VPS。
此致
答案 1 :(得分:1)
所以,看起来Apt正在工作并且找到debian存储库就好了,但是,rackster服务器没有工作。
现在已经得出了明显的结论,这个棘手的问题:
找到rackster存储库问题的解决方案是困难的部分。 Debian的更新可能会让你在没有机架更新的情况下保持安全和功能,但由于rackster是一家私人公司,我怀疑很多人能够告诉你他们的线路实际上是什么。您可能只是错误的行,所以最好的行动方案可能是联系客户支持并询问他们是否有正确的路线。你甚至可能想暂时注释掉这些机架线,这样你就可以在不被错误淹没的情况下进行更新。