Ubuntu[16.04/18.04/20.04] arm 下修改本地源 sources.list 为国内镜像
今天在安装部署盒子上面环境的时候出现了下面的报错信息:
可以看到,是因为需要使用到rz命令来上传文件数据,触发不存在该命令,之后安装的时候出现异常,我们其实已经替换了原始的源数据为中科大的源了,不知道什么问题还是不行,所以这里要修改成其他的源。
sources.list文件的条目都是有格式的(通过上面的内容大家也看的出来),一般有如下形式:
deb http://site.example.com/debian distribution component1 component2 component3
deb-src http://site.example.com/debian distribution component1 component2 component3
后面几个参数是对软件包的分类(Ubuntu下是 main restricted universe multiverse 这四个)
main:完全的自由软件。
restricted:不完全的自由软件。
universe:ubuntu官方不提供支持与补丁,全靠社区支持。
muitiverse:非自由软件,完全不提供支持和补丁
ubuntu的长期维护版本(LTS)的版本代号对照表
版本号 Codename
18.04 bionic
16.04 xenial
14.04 trusty
12.04 precise
20.04 focal
目前国内比较常用的源主要有:阿里、清华、中科大,下面我们来看下对应的内容,我已经完整整理了三个主要源在Ubuntu16.04/18.04/20.04下的对应内容,需要的话可以直接使用。如下所示:
[阿里源-ubuntu 16.04]
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[阿里源-ubuntu 18.04]
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[阿里源-ubuntu 20.04]
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse[清华源-ubuntu 16.04]
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe[清华源-ubuntu 18.04]
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[清华源-ubuntu 20.04]
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse[中科大源-ubuntu 16.04]
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse[中科大源-ubuntu 18.04]
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-proposed main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-proposed main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe[中科大源-ubuntu 20.04]
deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
除此之外,华为源也是一个不错的源,可以使用下面的命令来直接使用,这里因为我用到的是Ubuntu18.04的,别的还没用过,直接给出来Ubuntu18.04下的命令:
wget -O /etc/apt/sources.list https://repo.huaweicloud.com/repository/conf/Ubuntu-Ports-bionic.list
apt-get update
使用起来起来还是很方便的。对应的源内容如下,如果不想使用上面的命令一键操作的话也可以自己手工替换,这里我同时给出来了Ubuntu16.04和18.04的内容,如下所示:
[华为源-18.04]
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
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[华为源-16.04]
deb https://repo.huaweicloud.com/ubuntu-ports/ xenial main restricted universe multiverse
deb-src https://repo.huaweicloud.com/ubuntu-ports/ xenial main restricted universe multiverse
deb https://repo.huaweicloud.com/ubuntu-ports/ xenial-security main restricted universe multiverse
deb-src https://repo.huaweicloud.com/ubuntu-ports/ xenial-security main restricted universe multiverse
deb https://repo.huaweicloud.com/ubuntu-ports/ xenial-updates main restricted universe multiverse
deb-src https://repo.huaweicloud.com/ubuntu-ports/ xenial-updates main restricted universe multiverse
deb https://repo.huaweicloud.com/ubuntu-ports/ xenial-backports main restricted universe multiverse
deb-src https://repo.huaweicloud.com/ubuntu-ports/ xenial-backports main restricted universe multiverse
deb https://repo.huaweicloud.com/ubuntu-ports/ xenial-proposed main restricted universe multiverse
deb-src https://repo.huaweicloud.com/ubuntu-ports/ xenial-proposed main restricted universe multiverse
替换源内容的话就比较简单的,建议编辑操作之前最好备份一下原始文件:
cd /etc/apt
cp sources.list sources.list.backup
之后就可以使用vim来编辑sources.list文件了,将原始内容注释掉或者删除都行,复制上面对应的部分粘贴进去就行了,这里就不多赘述了。
总结记录备忘!
Ubuntu[16.04/18.04/20.04] arm 下修改本地源 sources.list 为国内镜像相关推荐
- Ubuntu 16.04直接升级至20.04 (Upgrade from 16.04 to 20.04 directly)
I. Ubuntu虽然继承于Debian,使用修改source.list的方式进行升级是可行的,但是一般情况下的发行版升级都会使用do-release-upgrade. Ubuntu在同一个LTS的区 ...
- Ubuntu 18.04 LTS 升级 20.04 LTS
Ubuntu 18.04 LTS 升级 20.04 LTS 更新源 18.04 LTS 更新软件 更新系统 参考 更新源 18.04 LTS Ubuntu 镜像使用帮助 # 默认注释了源码镜像以提高 ...
- ubuntu安装python3.8_将 Ubuntu 16 和 18 上的 python 升级到最新 python3.8 的方法教程
1. 概述 本文记录在 Ubuntu 16.04 上将 python 升级为 3.8 版本,并配置为系统默认 python3 的过程. 在 Ubuntu 16.04 中,python3 的默认版本为 ...
- ubuntu 升级python_如何将 Ubuntu 16 和 18 上的 python 升级到最新 3.8 版
如何将 Ubuntu 16 和 18 上的 python 升级到最新 3.8 版 1. 概述 本文记录在 Ubuntu 16.04 上将 python 升级为 3.8 版本,并配置为系统默认 pyth ...
- Ubuntu增加一个系统调用(20.04)西电软工OS实验专题二
title: 西电软工OS实验专题二–增加系统调用 date: 2022-05-14 07:48:48 tags: OS 写在前面: 如果这个过程中你某个地方没有把握,切记使用vm的快照功能,血的教训 ...
- ubuntu20.04安装mysql_Ubuntu 20.04安装MySQL 8.0.20记
很久没手工装过MySQL了,诸如AppNode这样的服务器面板很好的帮助开发人员屏蔽了琐碎的底层环境配置问题.不过AppNode支持的系统版本都很老了,其他面板又用不惯,于是打算手工安装一次环境尝鲜下 ...
- Ubuntu(Linux)上安装ROS缓慢,解决方法:添加ros的国内镜像源,以及ROS安装过程使用rosdep update出现错误:‘The read operation timed out‘
文章目录: 1 解决Unbuntu上安装ROS特别慢问题 1.1 Ubunut 更换ROS的镜像源为国内的镜像源 1.2 如果是Mint19.3系统,请参考如下添加ros镜像源 2 ROS安装过程su ...
- ubuntu从19.04升级到20.04后五笔一直不能输入中文,解决方法
我的电脑装了ibus和fictx两种,试了很多方法都不行,最终是把fcitx删除后重启就好了. 另外在Chrome里边不能输入汉字时,点击任务栏中的显示应用程序,在里边是可以输入汉字的. 使用如下方法 ...
- ubuntu16.04升级到20.04后报错 By not providing “FindEigen.cmake“
编译问题: CMake Error at modules/perception/lidar/CMakeLists.txt:14 (find_package): By not providing & ...
- C4D R14/15/16/17/18/19/20软件安装包及教程
软件介绍: 中文名4D电影,外文名CINEMA 4D,研发公司为德国Maxon Computer,特点为极高的运算速度和强大的渲染插件,使用在电影<毁灭战士><阿凡达>中,获得 ...
最新文章
- MATLAB寻址访问按什么优先,matlab笔记
- GitLab上市首日大涨35%,市值逼近千亿,营收87%来自订阅服务
- python3.7.4+Django2.2.6一直提示path404报错问题:“Using the URLconf defined in XXX.urls, Django tried this...”
- SonarQube4.4+Jenkins进行代码检查实例之三-单元测试分析
- hdu5343 后缀自动机+dp
- Ajax Toolkit 控件学习系列(5) ——CalendarExtender使用
- [ZJOI2019]麻将
- 34. Find First and Last Position of Element in Sorted Array
- Depth Map Prediction from a Single Image using a Multi-Scale Deep Network(NIPS2014)论文阅读
- 打卡项目php,Thinkphp框架早起打卡项目(深蓝引擎Z)趣步模式+完整数据+全开源源码...
- 温度pid自整定算法c语言,程序温控仪中PID参数自整定算法-自动化仪表.PDF
- nmap 扫描 STATE 显示closed
- 【笔记】MyBatis 大于等于小于等于常用写法
- 当幸福来敲门 经典语录
- 《Java程序设计》公选课学习指南
- error: Microsoft Visual C++ 9.0 is required (Unabl
- go语言刷题:77. 组合
- java大数类阶乘_Java中的大数阶乘
- 计算机考研2021算法真题,2021年清华大学计算机考研专业课真题
- python 识别滑块验证码