Ubuntu 18.04 使用apt-get 华为源支持 arm64-鲲鹏920处理器

更新-挂本地源

  1. 挂载系统镜像到 /mnt
mount /home/xx.iso /mnt
  1. 修改 sources.list
deb file:///mnt bionic main
  1. 更新
apt-get update

之后就可以顺利安装常用的包了。


更新-官方方法

进入华为镜像
找到arm版本的镜像

找到arm版本

点击arm进入源界面,有使用说明;

选择自己的发行版本 bionic

source_illustration

使用说明

Ubuntu的仓库地址为:http://mirrors.tools.huawei.com/ubuntu/
Ubuntu-CD的镜像地址为:http://mirrors.tools.huawei.com/ubuntu-cdimage/
Ubuntu-Cloud的镜像地址为:http://mirrors.tools.huawei.com/ubuntu-cloud-images/
Ubuntu-Ports的仓库地址为:http://mirrors.tools.huawei.com/ubuntu-ports/
Ubuntu-Releases的镜像地址为:http://mirrors.tools.huawei.com/ubuntu-releases/

使用方法

1、备份配置文件:
cp -a /etc/apt/sources.list /etc/apt/sources.list.bak
2、选择相应list文件:
例如 18.04 的版本就是bionic ,之后执行如下命令:
wget -O /etc/apt/sources.list http://mirrors.tools.huawei.com/repository/conf/Ubuntu-Ports-bionic.list
3、执行apt-get update更新索引

相关网址

Ubuntu官方地址:·http://www.ubuntu.com/
Ubuntu论坛地址:http://ubuntuforums.org/
Ubuntu Wiki地址:https://wiki.ubuntu.com/
Ubuntu帮助地址:https://help.ubuntu.com/
Ubuntu邮件列表地址:http://www.ubuntu.com/support/community/mailinglists


更新-其他源

这个可以:

wget -O /etc/apt/sources.list https://repo.huaweicloud.com/repository/conf/Ubuntu-Ports-bionic.list
# 不行可以试试这个
wget -O /etc/apt/sources.list http://repo.huaweicloud.com/repository/conf/Ubuntu-Ports-bionic.list

apt-get update

我试过的源:

华为:

deb http://mirrors.huaweicloud.com/ubuntu-ports/ bionic main multiverse restricted universe
deb http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-backports main multiverse restricted universe
deb http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-proposed main multiverse restricted universe
deb http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-security main multiverse restricted universe
deb http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-updates main multiverse restricted universe
deb-src http://mirrors.huaweicloud.com/ubuntu-ports/ bionic main multiverse restricted universe
deb-src http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-backports main multiverse restricted universe
deb-src http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-proposed main multiverse restricted universe
deb-src http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-security main multiverse restricted universe
deb-src http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-updates main multiverse restricted universe
## 中科大:
```bash
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-proposed main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-proposed main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe

阿里云:

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

清华:

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-proposed main restricted universe multiverse

更新

如果各位有可以用的源,联系我,我更新下博文。


©️2020 CSDN 皮肤主题: 技术黑板 设计师:CSDN官方博客 返回首页