版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/wr132/article/details/56700479
————————————————
在中国玩树莓派真是各种苦逼,github慢的要死,各种软件源慢的要死……之前树莓派装的Raspbian,
无奈国内的软件源不全,很多软件包自动跳到官方源,简直无法使用,于是换了Ubuntu Mate,
虽然官方的软件源能用,但也很慢,找了一番,发现国内为Ubuntu on ARM搭建的镜像站还真少,我目前只找到一个~~~
更换步骤
1. 以root身份打开 /etc/apt/sources.list ,至于用什么打开随意
2. 将 http://ports.ubuntu.com/ 全部替换为 http://mirrors.ustc.edu.cn/ubuntu-ports/ ,这是中科大的
3. 执行 sudo apt-get update 和 sudo apt-get upgrade 测试
查看是否提供arm支持的方法
打开一个镜像站点,然后以此打开 /dists/xenial/main/
,看这个目录下面有没有 binary-arm 这样的字眼,如果有,就是提供arm支持的
------------------------------------------------------------------------------------------
原:
deb http://ports.ubuntu.com/ bionic main restricted universe multiverse
deb-src http://ports.ubuntu.com/ bionic main restricted universe multiverse
deb http://ports.ubuntu.com/ bionic-updates main restricted universe multiverse
deb-src http://ports.ubuntu.com/ bionic-updates main restricted universe multiverse
deb http://ports.ubuntu.com/ bionic-security main restricted universe multiverse
deb-src http://ports.ubuntu.com/ bionic-security main restricted universe multiverse
deb http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse
deb-src http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse
替换为:
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse