首页 > 系统相关 >Ubuntu换源

Ubuntu换源

时间:2022-12-23 16:12:46浏览次数:51  
标签:restricted Ubuntu 换源 bionic universe deb main multiverse

什么是安装源?

安装源类似于一个软件仓库,绝大部分系统软件和工具都可以从软件仓库中自动下载和安装。

Ubuntu安装后默认的官方源是美国的服务器,因此访问速度很慢。所以需要切换成国内的

切换安装源

  • 安装源位置:/etc/apt/sources.list
  • 使用gedit(或者vim等)命令,打开sources.list文件,修改安装源 gedit /etc/apt/sources.list
  • 修改保存后,更新源 apt-get update

国内源:

#添加阿里源
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
#添加清华源
deb <https://mirrors.tuna.tsinghua.edu.cn/ubuntu/> bionic main restricted universe multiverse
deb-src <https://mirrors.tuna.tsinghua.edu.cn/ubuntu/> bionic main restricted universe multiverse
deb <https://mirrors.tuna.tsinghua.edu.cn/ubuntu/> bionic-updates main restricted universe multiverse
deb-src <https://mirrors.tuna.tsinghua.edu.cn/ubuntu/> bionic-updates main restricted universe multiverse
deb <https://mirrors.tuna.tsinghua.edu.cn/ubuntu/> bionic-backports main restricted universe multiverse
deb-src <https://mirrors.tuna.tsinghua.edu.cn/ubuntu/> bionic-backports main restricted universe multiverse
deb <https://mirrors.tuna.tsinghua.edu.cn/ubuntu/> bionic-security main restricted universe multiverse
deb-src <https://mirrors.tuna.tsinghua.edu.cn/ubuntu/> bionic-security main restricted universe multiverse
deb <https://mirrors.tuna.tsinghua.edu.cn/ubuntu/> bionic-proposed main restricted universe multiverse
deb-src <https://mirrors.tuna.tsinghua.edu.cn/ubuntu/> bionic-proposed main restricted universe multivers

标签:restricted,Ubuntu,换源,bionic,universe,deb,main,multiverse
From: https://www.cnblogs.com/swbna/p/17000897.html

相关文章

  • 利用VirtualBox安装Ubuntu详细图文教程
    在VirtualBox虚拟机中安装Ubuntu系统也很简单,下面是详细的图文教程,请大家参考。VirtualBox虚拟机安装过程略。1.创建一个新的虚拟机 给虚拟机命名,选择合适的Ubuntu版本。2.......
  • Day01_04_Linux_Ubuntu教程之安装配置 Java 开发环境
    一.Linux安装配置Java开发环境1.概述此处在Ubuntu18.04系统下以jdk-8u211-linux-x64.tar.gz.zip为例2.下载地址​​http://www.oracle.com/technetwork/java/javase/......
  • Day01_06_Linux_Ubuntu教程之安装配置MySQL
    Linux安装MySQL服务器及客户端本教程以ubuntu18.04系统为例1.安装mysql1.1更新ubuntu的source数据源apt-getupdate1.2安装mysql-serverapt-getinstallmysql-server......
  • gdal源码安装(ubuntu)
    gdal源码安装(ubuntu)1、安装依赖proj#配置环境变量(base)root@FIB:~#exportPKG_CONFIG_PATH=/usr/local/anaconda3/lib/pkgconfig/:$PKG_CONFIG_PATH#下载源码......
  • Jenkins教程之_01_Ubuntu下Jenkins安装启动教程
    01_Ubuntu下Jenkins安装启动教程Jenkins简介Jenkins是⼀个开源的Java软件项⽬,是基于Java开发的⼀种持续集成CI&CD⼯具,⽤于监控持续重复的⼯......
  • ubuntu如何安装composer
    >wgethttps://getcomposer.org/composer.phar>mvcomposer.pharcomposer>chmod+xcomposer全局:sudomvcomposer/usr/local/bin测试:composer--version ......
  • Ubuntu:Docker 容器操作
    创建容器1.dockerrun[option]镜像名[向启动容器中传入的命令]常用可选说明-i表示以“交互模式”运行容器-t表示容器启动后会进入其命令行。加入这两个参数......
  • Ubuntu:Docker启动与停止
    安装完成Docker后,默认已经启动了docker服务,如需手动控制docker服务的启停,可执行如下命令启动dockersudoservicedockerstart停止dockersudoservicedockerstop......
  • Ubuntu换源
    参考:(102条消息)Ubuntu20.04Desktop换源_虚竹镜荒的博客-CSDN博客_ubuntudesktop源一、国内常用的软件源镜像源仓库地址阿里云镜像源https://mirrors.aliyun.c......
  • Win10和WSL Ubuntu 22.04.1 SSH远程连接
    openssh-server配置安装ssh服务器在Ubuntu20.04.1LTS子系统安装openssh-server。在Ubuntu子系统中,执行一下命令:sudoaptinstallopenssh-server编辑远程登录配置信息......