树莓派换源

简介: sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak   #备份为 sources.list.
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



目录
相关文章
|
10月前
|
Ubuntu NoSQL 关系型数据库
Ubuntu系统下安装常用软件
Ubuntu系统下安装常用软件
185 0
Ubuntu系统下安装常用软件
|
6月前
|
Ubuntu
在树莓派4B上安装ubuntu系统
在树莓派4B上安装ubuntu系统
|
6月前
|
Ubuntu
树莓派 —— ubuntu上通过netplan配置网络
树莓派 —— ubuntu上通过netplan配置网络
|
9月前
树莓派换源教程 树莓派4B换源教程
树莓派换源教程 树莓派4B换源教程
439 2
|
存储 Ubuntu 安全
树莓派折腾记——安装系统
树莓派折腾记——安装系统
|
网络安全 数据安全/隐私保护 网络架构
树莓派4B安装官方64位桌面系统
树莓派4B安装官方64位桌面系统
458 0
树莓派4B安装官方64位桌面系统
树莓派3b+安装Raspbian系统
树莓派烧录系统需要先下载树莓派系统镜像或镜像压缩包,再将SD卡插入电脑,用SDFormatter这个软件对SD卡的第一个盘(boot盘)进行格式化,再用Win32DiskImager这个软件选择img镜像文件进行系统的烧录。
241 0
树莓派3b+安装Raspbian系统
|
安全
树莓派系列-1-初识树莓派,把它装起来
树莓派系列-1-初识树莓派,把它装起来
172 0
树莓派系列-1-初识树莓派,把它装起来