腾讯云的 Debian Jessie 源如何设置使其能正常获取

2016-01-09 11:25:21 +08:00
 liuhaotian

购买了一台腾讯云的 VPS ,系统是 Debian 8.2 x64 ,但是系统默认的源是 wheezy 的源,所以想要换成 jessie 源,来安装 Apache 2.4 等。但是将 wheezy 替换为 jessie 后,运行 apt-get update 返回错误,并且无法通过 apt-get install 安装软件包。

返回的错误如下:

W: Failed to fetch http://mirrors.tencentyun.com/debian/dists/jessie-backports-sloppy/non-free/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://mirrors.tencentyun.com/debian/dists/jessie-updates/main/source/Sources  404  Not Found

W: Failed to fetch http://mirrors.tencentyun.com/debian/dists/jessie-updates/contrib/source/Sources  404  Not Found

W: Failed to fetch http://mirrors.tencentyun.com/debian/dists/jessie-updates/non-free/source/Sources  404  Not Found

W: Failed to fetch http://mirrors.tencentyun.com/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://mirrors.tencentyun.com/debian/dists/jessie-updates/contrib/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://mirrors.tencentyun.com/debian/dists/jessie-updates/non-free/binary-amd64/Packages  404  Not Found

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

请问应该如何调整源设置使其能正常获取并安装软件包?谢谢!

4071 次点击
所在节点    问与答
7 条回复
rainy3636
2016-01-09 11:59:02 +08:00
ivmm
2016-01-09 12:52:26 +08:00
国内的云经常会遇到这个问题,重装系统就还
ivmm
2016-01-09 12:52:30 +08:00
@ivmm 就还
ivmm
2016-01-09 12:52:40 +08:00
@ivmm 就好
liuhaotian
2016-01-09 17:16:29 +08:00
@rainy3636 内网 IP 的源速度是不是会快一点?
@ivmm 重装了,还是没有用。腾讯所有的 Jessie 包都返回了 404 。是腾讯源不提供 Jessie 源还是我对 sources.list 的修改不正确
rainy3636
2016-01-09 17:22:37 +08:00
快,不提供的话然并卵

https://lug.ustc.edu.cn/repogen/

自动生成,你把地址换换就行
liuhaotian
2016-01-09 17:25:50 +08:00
@rainy3636 果然是不提供吗😂我用浙大源,好像近一点。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/249470

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX