ubuntu更换软件安装源

1.首先是备份软件安装源

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

2.更换软件安装源

sudo vim /etc/apt/sources.list

3.更新软件源缓存

sudo apt-get update

阿里开源镜像站
清华开源镜像站
下面的是阿里Ubuntu源

  • Ubuntu22.04
deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse# deb https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
  • Ubuntu20.04
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
  • Ubuntu18.04
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
  • Ubuntu16.04
deb http://mirrors.aliyun.com/ubuntu/ xenial main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial maindeb http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates maindeb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universedeb http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe

ubuntu更换软件安装源相关推荐

  1. Ubuntu更换国内安装源

    对于默认安装的Ubuntu系统,有时候通过命令行下载软件或更新软件时,偶尔会出现下载速度极慢的情况,可以通过更换软件安装源为国内镜像地址来解决这一问题.(腾讯云主机默认下载地址为腾讯的镜像源,见下图, ...

  2. ubuntu18安装python3.6.8_ubuntu 18.04 + Python 3.6.8 更换软件安装源

    国外的开源项目开展的是如火如荼,我们国内的当然也不甘落后.为了更好的玩转 Python,我使用了 ubuntu Linux 来作为开发环境.但是由于国内网络的限制,访问国外的一些软件源的时候,速度比较 ...

  3. CentOS系统更换软件安装源yum

    第一步:备份你的原镜像文件,以免出错后可以恢复. mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.back ...

  4. ubuntu更换软件源方法和实验成功软件源地址

    ubuntu更换软件源方法 转载部分内容: 这些bionic.main.restricted.universe.multiverse是什么意思呢,该怎么修改才对,实在是让人头大.简单了解一下:bion ...

  5. Ubuntu更换apt镜像源

    原文:Ubuntu更换apt镜像源 在ubuntu中,默认使用 ubuntu 的官方源http://archive.ubuntu.com/,但是这个官方源在国内下载的速度太慢,甚至只有几十k.于是考虑 ...

  6. Ubuntu中软件安装与卸载

    一.Ubuntu中软件安装方法 1.APT方式 (1)普通安装:apt-get install softname1 softname2 -; (2)修复安装:apt-get -f install so ...

  7. Ubuntu下软件安装的方法(配图解)

    Ubuntu下软件安装的方法 1.APP Store安装 1.)双击Ubuntu软件 2.)可以选择软件安装 2.Sudo apt-get install 安装法 我们以安装git为例 1.打开终端 ...

  8. ubuntu相关软件安装

    文章目录 **ubuntu相关软件安装** 一.ubuntu安装 二.搜狗输入法 三.google浏览器 四.向日葵 五.坚果云 六.美化 七.v2ray 八.vscode 九.pycharm 十.a ...

  9. Ubuntu常用软件安装与问题解决(持续更新)

    Ubuntu常用软件安装(持续更新) 日常软件 常用工具 开发工具 快捷键 安装问题 Linux-QQ 录屏-SimpleScreenRecorder Qt5 截屏 Could not get loc ...

最新文章

  1. 的内怎么放_冰箱不是“万能”箱,哪些食物不宜放冰箱储存?
  2. Swift初探 1 helloWord
  3. PHP采集商家信息及采集方法概述(上)
  4. 排序命令: sort, wc, uniq
  5. java 制作类似DOS功能
  6. WAR文件与具有嵌入式服务器的Java应用程序
  7. MySQL 深潜 - MDL 锁的实现与获取机制
  8. 华为技术有限公司申请无人机相关专利
  9. 【8-22】java学习笔记04
  10. msdtc与oracle,如何解决在Win2003的Oracle链接服务器上MSDTC事务失败问题
  11. 新华DCS系统MODBUS通讯仿真测试方法介绍
  12. IMAP4协议介绍nbsp;工作原理
  13. Centos7 NAT网络连接方式以及NetworkManger进行网络连接管理
  14. [USACO09OCT]谷仓里的回声Barn Echoes(hush、STL)
  15. Tunnello安装指南
  16. 苹果审核团队_如何才能跟 App Store 审核团队有效沟通?
  17. git 进阶系列教程--push
  18. java使用poi生成Excel文件并合并单元格
  19. 软件架构设计与需求分析方法论
  20. VScode Shortcuts for Mac

热门文章

  1. fullcalendar 使用配置说明
  2. JavaScript的经典高频面试题解析
  3. 大型多人在线游戏开发
  4. J2EE天猫商城学习记录1——dao、bean、filter
  5. 【优化算法】蜂虎狩猎 (BEH) 算法【含Matlab源码 2278期】
  6. 随机过程与排队论(二)
  7. 如何选择2K显示器,这款集高分电竞于一体的显示器你服了吗?
  8. 响应服务器421,微信服务器连接公众号开发者服务器时发生超时,超时时间为5秒? | 微信开放社区...
  9. 精心整理的最全python入门思维导图(第一部分)
  10. android.view.WindowLeaked的解决方法