電訊茶室's Archiver

角色 發表於 2019-2-7 17:48

Raspberry Pi —— apt-get update 和 upgrade 太慢!!!

[i=s] 本帖最後由 角色 於 2019-2-16 15:55 編輯 [/i]

Raspbian的软件的源头有两部分,第一部分就是基于Debian的源而改编而成的Raspbian,第二部分是Debian本身,所有在进行apt-get update 和 apt-get upgrade时,两个源都会看,但是由于那些都在英国和美国,所以下载的时候就非常慢!

如果你在大陆,可以考虑用下面资源。(但是我发现安装的时候English Translation packages有errors,所以我改变用Singapore的,详细看第二楼帖子)

更改Raspbian的软件源
sudo vi /etc/apt/sources.list[code]
deb http://mirrors.shu.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
[/code]更改Debian的软件源
sudo vi /etc/apt/sources.list/rasp.list[code]
deb http://mirrors.ustc.edu.cn/debian/ stretch main ui
[/code]Reference
【1】Raspbian 软件源头全球映射站 [url]http://www.raspbian.org/RaspbianMirrors[/url]
【2】Debian 软件源头全球映射站 [url]https://www.debian.org/mirror/list[/url]

在update还可以,
但是到upgrade时候,因为要去英国取文件,路程太远了。

Raspbian的原件源:


Debian的原件源


[url]https://www.raspbian.org/RaspbianRepository[/url]

参考帖子:
【1】[url]http://www.cnblogs.com/meelo/p/5111611.html[/url]

[url]https://blog.csdn.net/eibo51/article/details/53313935[/url]
[url]https://www.cnblogs.com/atsats/p/6623695.html[/url]
[url]http://www.hopol.cn/2016/01/409/[/url]
[url]https://segmentfault.com/a/1190000005032111[/url]

角色 發表於 2019-2-16 15:58

[i=s] 本帖最後由 角色 於 2019-2-17 15:37 編輯 [/i]

For the sake of network security issues, Hong Kong Users are suggested to use the following Singapore sources

更改Raspbian的软件源
sudo vi /etc/apt/sources.list[code]
deb http://mirror.nus.edu.sg/raspbian/raspbian/ stretch main contrib non-free rpi
[/code]更改Debian的软件源
sudo vi /etc/apt/sources.list/rasp.list[code]
deb http://ftp.sg.debian.org/debian/ stretch main ui
[/code].

When I switched to use the Singapore sites, the English translation message was gone.

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.