UOS arm换源

清华源

mv /etc/apt/sources.list  /etc/apt/sources.list.bak 备份原始源
echo "deb https://mirror.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
deb https://mirror.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
deb https://mirror.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
deb https://mirror.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse
deb https://mirror.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-proposed main restricted universe multiverse">/etc/apt/sources.list

执行apt update
W: GPG 错误:https://mirror.tuna.tsinghua.edu.cn/ubuntu-ports focal InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 3B4FE6ACC0B21F32 NO_PUBKEY 871920D1991BC93C
E: 仓库 “https://mirror.tuna.tsinghua.edu.cn/ubuntu-ports focal InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
Executing: /tmp/apt-key-gpghome.nwi1tdcPon/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
gpg: 密钥 3B4FE6ACC0B21F32:公钥 “Ubuntu Archive Automatic Signing Key (2012) ” 已导入
gpg: 处理的总数:1
gpg:               已导入:1

添加公钥后,就可以正常安装软件了。(上面的清华源是ubuntu在arm架构的版本,但部分软件在UOS系统中安装会有奇奇怪怪的问题,可以选择UOS官方源来安装

apt install ethtool
# apt install ethtool
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包是自动安装的并且现在不需要了:
  cryptsetup cryptsetup-bin cryptsetup-initramfs cryptsetup-run dde-account-faces dde-qt5integration deepin-installer-timezones imageworsener jfsutils libdtkcore2
  libdtkwidget2 libglu1-mesa libindicator3-7 libqt5xdg3 libqt5xdgiconloader3 libqtermwidget5-0 libudisks2-qt5 libutempter0 libutf8proc2 libxcb-composite0 libxcb-damage0
  libxklavier16 mtools partclone qt5dxcb-plugin qtermwidget5-data squashfs-tools x11-apps x11-session-utils xbitmaps xinit
使用'apt autoremove'来卸载它(它们)。
下列【新】软件包将被安装:
  ethtool
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 96 个软件包未被升级。
需要下载 114 kB 的归档。
解压缩后会消耗 390 kB 的额外空间。

UOS源

1.mv /etc/apt/sources.list  /etc/apt/sources.list.bak 备份原始源

2.echo "deb [by-hash=force] http://uos.packages.chinauos.com/uos eagle main contrib non-free" > /etc/apt/sources.list

3.apt update; apt install -y ca-certificates

4. echo "deb [by-hash=force] https://packages.chinauos.cn/uos eagle main contrib non-free" > /etc/apt/sources.list

5. apt update;

6. apt install -y ethtool

若apt update碰到如下错误,请使用

echo "deb [by-hash=force] https://uos.packages.chinauos.com/uos eagle main contrib non-free" > /etc/apt/source.list

但这个源速度比较慢。

# apt update
Err:1 https://uos.deepin.cn/uos eagle InRelease
  401  Unauthorized [IP: 58.51.151.5 443]
Reading package lists... Done
E: Failed to fetch https://packages.chinauos.cn/uos/dists/eagle/InRelease  401  Unauthorized [IP: 58.51.151.5 443]
E: The repository 'https://packages.chinauos.cn/uos eagle InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
 

你可能感兴趣的:(linux,uos,arm)