树莓派换源

来源:互联网 发布:linode vps建站 编辑:程序博客网 时间:2024/05/17 08:03
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak   #备份为 sources.list.bak


sudo nano /etc/apt/sources.list      #编辑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://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi 
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi 

#东软
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi 
deb-src http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi 

#中科大
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi 
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi


#ctrl+D,Ctrl+X,Y,保存编辑

sudo apt-get update && apt-get upgrade -y       #更新系统软件 并 更新已


要装MYSql必须只能用下面的源

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://mirrors.aliyun.com/raspbian/raspbian/ jessie main contrib non-free rpi



0 0
原创粉丝点击