树莓派-更新源

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/u012424502/article/details/53908078

玩了一段时间的树莓派,是时候总结一些操作,省的以后要用到处找,而且现在网上的一些资料比较滞后….有点坑。
树莓派自带的源在电信下有时候的速度还是可以的,如果在你的网络下使用速度很慢的话,就可以考虑换一下源了,参考一下步骤:
1)下载netselect git,看一下当前网络情况下和各个节点之间的网络情况。命令行输入:apt install netselect git
再下载 ccrm
命令行输入:cd ~
git clone https://github.com/sjqlwy/ccrm.git ;cd ccrm
在ccrm目录下 ,运行脚本 sh ccrm.sh,检查源的连接情况;
2)根据第一部的结果,更新/etc/apt下source.list的内容;这里以中科大的源为例 :
deb http://mirrors.hustunique.com/raspbian/raspbian/ jessie main contrib non-free rpi
deb-src http://mirrors.hustunique.com/raspbian/raspbian/ jessie main contrib non-free rpi
然后就可以测试一下啦,看看速度是不是有所提高呢~

展开阅读全文

更新源问题

03-26

在设置更新源的时候,常常看到这么一句话:可以在运行“sudo apt-get update ”时查看一下错误信息,把不能连接的源删除再重新运行“sudo apt-get update ”。我的问题在于我看不懂出错的信息,也不能把出错的信息和对应的源联系起来。希望有人能指点一下。rn比如我用网易的源:rnrndeb http://mirrors.163.com/ubuntu/ maverick main universe restricted multiverserndeb-src http://mirrors.163.com/ubuntu/ maverick main universe restricted multiverserndeb http://mirrors.163.com/ubuntu/ maverick-security universe main multiverse restrictedrndeb-src http://mirrors.163.com/ubuntu/ maverick-security universe main multiverse restrictedrndeb http://mirrors.163.com/ubuntu/ maverick-updates universe main multiverse restrictedrndeb http://mirrors.163.com/ubuntu/ maverick-proposed universe main multiverse restrictedrndeb-src http://mirrors.163.com/ubuntu/ maverick-proposed universe main multiverse restrictedrndeb http://mirrors.163.com/ubuntu/ maverick-backports universe main multiverse restrictedrndeb-src http://mirrors.163.com/ubuntu/ maverick-backports universe main multiverse restrictedrndeb-src http://mirrors.163.com/ubuntu/ maverick-updates universe main multiverse restrictedrnrn执行sudo apt-get update后,部分信息如下:rnrn获取:1 http://mirrors.163.com lucid Release.gpg [189B]rn忽略 http://mirrors.163.com/ubuntu/ lucid/main Translation-en rn忽略 http://mirrors.163.com/ubuntu/ lucid/main Translation-en_US rn获取:2 http://mirrors.163.com/ubuntu/ lucid/main Translation-zh_CN [142kB]rn忽略 http://mirrors.163.com/ubuntu/ lucid/multiverse Translation-en rn忽略 http://mirrors.163.com/ubuntu/ lucid/multiverse Translation-en_USrn获取:3 http://mirrors.163.com/ubuntu/ lucid/multiverse Translation-zh_CN [28.2kB]rn忽略 http://mirrors.163.com/ubuntu/ lucid/restricted Translation-en rn忽略 http://mirrors.163.com/ubuntu/ lucid/restricted Translation-en_US rn获取:4 http://mirrors.163.com/ubuntu/ lucid/restricted Translation-zh_CN [2,468B]rn忽略 http://mirrors.163.com/ubuntu/ lucid/universe Translation-en rn忽略 http://mirrors.163.com/ubuntu/ lucid/universe Translation-en_US rn获取:5 http://mirrors.163.com/ubuntu/ lucid/universe Translation-zh_CN [100kB]rn获取:6 http://mirrors.163.com lucid-security Release.gpg [198B] rn忽略 http://mirrors.163.com/ubuntu/ lucid-security/main Translation-en rn忽略 http://mirrors.163.com/ubuntu/ lucid-security/main Translation-en_US rn忽略 http://mirrors.163.com/ubuntu/ lucid-security/main Translation-zh_CN rn忽略 http://mirrors.163.com/ubuntu/ lucid-security/multiverse Translation-en rn忽略 http://mirrors.163.com/ubuntu/ lucid-security/multiverse Translation-en_USrn忽略 http://mirrors.163.com/ubuntu/ lucid-security/multiverse Translation-zh_CNrn忽略 http://mirrors.163.com/ubuntu/ lucid-security/restricted Translation-en rn忽略 http://mirrors.163.com/ubuntu/ lucid-security/restricted Translation-en_USrn忽略 http://mirrors.163.com/ubuntu/ lucid-security/restricted Translation-zh_CNrn忽略 http://mirrors.163.com/ubuntu/ lucid-security/universe Translation-enrn忽略 http://mirrors.163.com/ubuntu/ lucid-security/universe Translation-en_USrn忽略 http://mirrors.163.com/ubuntu/ lucid-security/universe Translation-zh_CNrn 论坛

没有更多推荐了,返回首页