0


Linux arm64架构修改软件源 (统信UOS,麒麟系统修改阿里源、华为源) 国产系统UOS修改apt源

步骤:备份原来自带的软件源—>修改软件源配置文件—>处理报错(公钥问题)—>清理缓存—>更新缓存—>安装软件

1.备份系统之前的源

cp /etc/apt/sources.list /etc/apt/sources.list.bak

2.修改源文件/etc/apt/sources.list

vim /etc/apt/sources.list

将原来的内容删除,将下面的源内容粘贴上。

这里推荐比较好的两个国内源

(1)阿里源(arm64,速度快,推荐)

deb http://mirrors.aliyun.com/ubuntu-ports/ xenial main

deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial main

deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates main

deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates main

deb http://mirrors.aliyun.com/ubuntu-ports/ xenial universe

deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial universe

deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates universe

deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates universe

deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-security main

deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-security main

deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-security universe

deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-security universe

(2)华为源(arm64,速度快,二者选其一)

deb https://repo.huaweicloud.com/ubuntu-ports/ bionic main restricted universe multiverse

deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic main restricted universe multiverse

deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-security main restricted universe multiverse

deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-security main restricted universe multiverse

deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-updates main restricted universe multiverse

deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-updates main restricted universe multiverse

deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-backports main restricted universe multiverse

deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-backports main restricted universe multiverse

Not recommended

deb https://repo.huaweicloud.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse

deb-src https://repo.huaweicloud.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse

3.处理报错

命令:apt-get update

可能出现报错

以下命令解决:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 3B4FE6ACC0B21F32

4.清除软件仓库缓存

apt-get clean

5.更新软件仓库

apt-get update

完成,apt-get install 应用名 就可以安装应用了

Linux arm64架构修改软件源 (统信UOS,麒麟系统修改阿里源、华为源) 国产系统UOS修改apt源_中原壹点红的博客-CSDN博客_uos apt 源

标签: ubuntu linux

本文转载自: https://blog.csdn.net/baidu_33008169/article/details/129177826
版权归原作者 雪孩 所有, 如有侵权,请联系我们删除。

“Linux arm64架构修改软件源 (统信UOS,麒麟系统修改阿里源、华为源) 国产系统UOS修改apt源”的评论:

还没有评论