树莓派ubuntu系统换源
时间: 2023-11-09 22:02:11 浏览: 128
要在树莓派上更换Ubuntu系统的软件源,可以按照以下步骤进行操作:
1. 打开终端,输入以下命令备份原有的软件源列表文件:
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
2. 编辑软件源列表文件,将其中的内容替换为清华大学的Ubuntu镜像源,可以使用nano或vim等编辑器进行编辑:
```
sudo nano /etc/apt/sources.list
```
将文件中的内容替换为以下内容:
```
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
```
3. 更新软件源列表:
```
sudo apt-get update
```
4. 完成更换。
阅读全文
相关推荐

















