首先备份一下原来的sources.list

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

然后修改sources.list

sudo vi /etc/apt/sources.list

然后根据你的版本将sources.list中的内容换成相应的内容
Ubuntu 20.04 LTS 阿里源

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiversedeb 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 20.04 清华源

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security multiverse

最后更新一下

sudo apt-get update

ubuntu 20.04更新阿里源 清华源相关推荐

  1. Ubuntu 20.04换国内源 清华源 阿里源 中科大源 163源

    Ubuntu 20.04 是 Ubuntu 的第 8 个 LTS 版本,其重大更新和改进将在 2030 年前终止,计划于2020年 4 月 23 日发布. 国内有很多Ubuntu的镜像源,包括阿里的. ...

  2. Ubuntu 20.04 更新软件依赖,源 ,删除软件三个常用指令

    ubuntu三个常用更新指令 更新源 sudo apt-get update 更新依赖和软件 sudo apt-get upgrade 删除软件 autoremove后面带上空格加软件名 sudo a ...

  3. Ubuntu 20.04更换pip为清华源

    1.创建pip文件,以及pip文件夹得pip.conf文件 mkdir ~/.pip vim ~/.pip/pip.conf 2.复制内容到pip.conf文件中 [global] index-url ...

  4. ubuntu 20.04更新apt源

    ubuntu 20.04 apt源 阿里: deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multivers ...

  5. Ubuntu 20.04更新源报错W: 校验数字签名时出错。此仓库未被更新,所以仍然使用此前的索引文件。

    ubuntu 20.04 #apt-get update正在读取软件包列表... 完成 E: 仓库 "http://ppa.launchpad.net/mercurial-ppa/relea ...

  6. Ubuntu 20.04 更新,界面美化及安装搜狗输入法

    升级系统版本 确保当前版本完全最新 sudo apt-get update 安装 Update Manager 核心产品包 sudo apt-get install update-manager-co ...

  7. Ubuntu 20.04 更新源

    清华大学开源软件镜像站 中国Linux源镜像站大全 备份Ubuntu默认的源地址 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak che ...

  8. Ubuntu 22.04换国内源 清华源 阿里源 中科大源 163源

    本文系原创,转载请注明出处 update 2022.04.23: Ubuntu 22.04 的稳定版已经于 2022 年 4 月 21 日发布,Ubuntu 22.04 稳定版下载地址:https:/ ...

  9. Ubuntu 20.04 换 阿里源

    阿里开源镜像站:点这里 软件源文件地址为:/etc/apt/sources.list 执行chmod命令更改文件权限使软件源文件可编辑 sudo chmod 777 /etc/apt/sources. ...

最新文章

  1. 一个低级错误,关于timer
  2. 教育部拟规定:中小学不得公开学生个人的考试成绩名次
  3. HTML 5入门学习,源码中全部使用HTML 5标签
  4. 中小型研发团队架构实践:集中式日志ELK
  5. 名称节点和数据节点作用
  6. 图形学理论知识 BRDF 双向反射分布函数
  7. 英伟达收购交易取消后 ARM将裁员1000人
  8. 【论文写作】SpringMVC学籍管理系统如何画用例图
  9. mysql id div 1000000,mysql – 如何使用随机数据生成1000000行?
  10. MedianBlur(中值滤波/百分比滤波器)
  11. 软件测试一个月工作总结范文,2019年最新软件测试师工作总结范文
  12. 计算机发展英文文献,计算机技术发展英文参考文献 计算机技术发展论文参考文献哪里找...
  13. 安装office简繁转换增益集
  14. Myscript 转换
  15. matlab绘图空间曲线,matlab空间曲线绘图
  16. Python定时爬虫脚本
  17. 【测试】测试人员部署测试环境是什么意思
  18. java获取Pdf文件页码
  19. 从rookie到基佬~009:无密码卸载Symantec
  20. sec 与csc的原函数

热门文章

  1. php的源码怎么查看,php 查看页面源代码的实现代码(图文)
  2. Linux 系统Apache配置SSL证书
  3. java正则表达式原理_Java 正则表达式详解
  4. 全面解读惯性导航系统与技术
  5. 3月29日工作总结及次日计划
  6. Android 音视频开发(一):PCM 格式音频的播放与采集
  7. 微分方程一维抛物热传导方程向前向后欧拉C-N格式二阶BDF格式MATLAB源码 显式欧拉,隐式欧拉,梯形公式,改进欧拉
  8. jsp页面控制浏览器兼容
  9. java 分页查询的实现
  10. 解决MySQL Localhost连接不上的问题