Ubuntu20.04的换源和Ubuntu18.04有一些不同,不能直接在软件设置中更改(我没找到),所以用了命令行来进行更改,这里参考了

1、备份/etc/apt/sources.list 文件

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

2、编辑/etc/apt/sources.list文件, 我用的vim,也可以用别的编辑器编辑

sudo vim /etc/apt/sources.list

3、在文件前面添加下面的条目(阿里源)

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

4、更新

sudo apt-get update

5、如果如出现依赖问题

sudo apt-get -f install

Ubuntu 20.04 更换阿里源相关推荐

  1. ubuntu 20.04更新阿里源 清华源

    首先备份一下原来的sources.list cp /etc/apt/sources.list /etc/apt/sources.list.bak 然后修改sources.list sudo vi /e ...

  2. Ubuntu 18.04 更换阿里源

    我们在装好Ubuntu18.04之后,通常都要设置下root用户密码和配置下国内的阿里源. 接下来,讲下Ubuntu18.04如何配置阿里源! 1.第一步:备份 sources.list sudo c ...

  3. Ubuntu 20.04更换清华源

    修改源之前提示大家先查看版本名,ubuntu20.04对应的是"focal".本篇中的源只适用于20.04,也就是查出来的是"focal". "xen ...

  4. apt-get 软件源文件格式以及ubuntu 18.04更换阿里源

    #前言 由于种种原因,例如下载速度慢.找不到所需应用等,我们经常需要修改debian系统的软件源文件/etc/apt/sources.list,之前一直是直接在网上搜索别人现有的源内容,然后复制粘贴过 ...

  5. Ubuntu 20.04更换下载源阿里云

    这里写自定义目录标题 /etc/apt/sources.list 注释掉里面的地址 deb http://mirrors.aliyun.com/ubuntu/ focal main restricte ...

  6. Ubuntu 20.04 换 阿里源

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

  7. WSL Ubuntu 20.04下Android源码编译与导入Android Studio

    源码下载见前文:WSL Ubuntu 20.04下Android源码下载 idegen 模块编译 在development/tools/idegen/README下可以看到关于 idegen 工具的相 ...

  8. ubuntu20.04更换阿里源

    Ubuntu20.04更新阿里源 一.更新阿里源 在安装Ubuntu系统后,在默认的源文件下是官方的镜像,是在外国的服务器.所有的软件的下载速度会很慢,慢一点还可以忍受,但是有一些还会报"无 ...

  9. Ubuntu 20.04增加Deepin源以安装应用商城内最新版的微信、钉钉

    文章目录 前言 添加i386架构 添加Deepin软件源 设置源优先级 添加XDG_DATA_DIRS配置 更新源 应用安装 解决小图标变wine system tray悬浮窗问题 解决安装后无法启动 ...

  10. ubuntu 20.04更新apt源

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

最新文章

  1. Windows Vista和XP比较
  2. c语言关键字_C语言初学者必须掌握的关键字!
  3. 电脑总是跳出错误报告
  4. php 脏数据,脏数据和时间戳,还有数据一致性校验
  5. ubuntu 安装fcitx输入法(3.6和4.0bate)
  6. MAC/Linux 下 Git 记住用户名密码
  7. td和div超出部分隐藏的区别和用法
  8. 帝国cms清除html标签,帝国CMS如何删除清空旧数据让栏目文章ID从1开始起(一)...
  9. oracle存储过程和视图不存在,Oracle 创建存储过程 提示权限不足或者提示表和视图不存在问题...
  10. Oracle 11g 的官方支持周期和时限
  11. Xcode12 “PushKit apps that use VoIP push must link either CallKit or IncomingCallNotifications
  12. Excel不好吗?为什么非要用Python做数据分析
  13. Spring Boot 概述、初始化器、spring-boot-maven-plugin 插件简化部署、starter 自动配置原理
  14. word毕业论文导出高清pdf
  15. oracle数据库基本概念
  16. 蓝海灵豚医疗器械管理软件医用耗材专版
  17. Excel易用宝-安装与激活
  18. 圣水盆景区是闾山最著名的景点
  19. 毕业设计 嵌入式 指纹识别考勤系统设计与实现
  20. autojs声明文件

热门文章

  1. S50VB100-ASEMI电机专用整流桥S50VB100
  2. 本地传奇架设详细教程
  3. 数据库学习--数据库基本概念
  4. 单片机延时函数移植问题
  5. 隐藏Ubuntu引导,直接进入系统——变色龙引导Linux,Windows,Mac OS(苹果系统)攻略之二
  6. Web:6 大主流 Web 框架优缺点对比之Ember
  7. 如何将heic格式转化jpg?
  8. phpdesigner怎么写php,phpdesigner
  9. 2013年上半年CSDN精华0分下载资源
  10. 预见2022 | 吴晓波年终秀 附PPT