ubuntu18.04arm源
时间: 2023-10-03 22:03:06 浏览: 102
Mongodb for Ubuntu 18.04 ARM 64
您可以尝试使用以下命令来修改Ubuntu 18.04的软件源为arm架构:
1.备份原有软件源
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
2.编辑软件源文件
```
sudo nano /etc/apt/sources.list
```
3.将原有软件源全部注释掉,添加以下软件源
```
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports bionic main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports bionic-updates main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports bionic-backports main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports bionic-security main restricted universe multiverse
```
4.保存并退出软件源文件,然后更新软件包列表
```
sudo apt update
```
这样就可以将Ubuntu 18.04的软件源修改为arm架构,并且可以使用apt-get安装arm架构下的软件包。
阅读全文