树莓派换国内源-加快下载速度

  1. pi@raspberrypi:~$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak   #备份为 sources.list.bak
  2. pi@raspberrypi:~$ sudo nano /etc/apt/sources.list      #编辑sources.list  文件

用nano编辑/etc/apt/sources.list,打开后,删除里面的代码,替换成:

阿里源:

deb http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib

树莓派群里一个好友的源:

deb http://jerryliangw.zicp.net/apt-mirror/mirror/archive.raspberrypi.org/debian/ jessie main ui

修改后保存退出,然后执行代码:

sudo apt-get update
sudo apt-get upgrade

3 thoughts on “树莓派换国内源-加快下载速度

发表评论

电子邮件地址不会被公开。 必填项已用*标注