ubuntu 18.04 ARM64更新源
时间: 2024-05-24 12:07:40 浏览: 165
ubuntu 更新源
5星 · 资源好评率100%
Ubuntu 18.04 ARM64的更新源可以通过以下步骤进行配置:
1. 打开终端并输入以下命令以备份原有的源列表文件:
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
2. 修改源列表文件,输入以下命令:
```
sudo nano /etc/apt/sources.list
```
3. 在打开的编辑器中,将默认的源列表注释掉,然后添加新的源列表。例如,您可以添加阿里云的Ubuntu 18.04 ARM64更新源(根据实际需求选择),如下所示:
```
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
```
4. 保存更改并关闭编辑器。
5. 更新源列表并升级系统,输入以下命令:
```
sudo apt-get update && sudo apt-get upgrade
```
6. 完成后,您的Ubuntu 18.04 ARM64系统已经更新到最新版本。
阅读全文