Ubuntu安装源和Ubuntu ARM源的区别
时间: 2023-08-07 15:44:52 浏览: 67
Ubuntu安装源是指Ubuntu操作系统官方提供的软件下载和安装渠道,包含了软件包、库文件、依赖等。用户可以通过Ubuntu软件中心或命令行工具apt-get、aptitude等来获取和安装软件。
Ubuntu ARM源是指Ubuntu针对ARM架构的软件包下载和安装渠道,适用于ARM处理器的设备,如智能手机、平板电脑、单板电脑等。ARM架构的设备和x86架构的设备有很大的区别,因此需要单独提供软件包和库文件。用户可以通过apt-get等命令来获取和安装ARM架构下的软件包。
相关问题
arm64ubuntu换源
要在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
```
ubuntu18.04arm源
您可以尝试使用以下命令来修改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架构下的软件包。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)