arm64ubuntu换源
时间: 2023-11-09 16:02:07 浏览: 79
更换ubuntu源的操作1
要在arm64ubuntu上更换源,可以按照以下步骤进行操作:
1. 打开终端,输入以下命令备份原有的源列表文件:
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
2. 编辑源列表文件,将其中的内容替换为阿里云的源,可以使用以下命令:
```
sudo nano /etc/apt/sources.list
```
在打开的文件中,将所有内容替换为以下内容:
```
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
```
3. 更新源列表:
```
sudo apt-get update
```
4. 完成后,可以使用以下命令升级系统:
```
sudo apt-get upgrade
```
阅读全文