首页 > 系统相关 >linux 换源

linux 换源

时间:2023-03-20 12:22:05浏览次数:40  
标签:universe restricted linux 换源 ubuntu main multiverse focal

/etc/apt/sources.list

sudo apt-get update

sudo apt-get upgrade

 

中科大源

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

 


清华源

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
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

 

阿里源

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

网易163源

deb http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse

 

标签:universe,restricted,linux,换源,ubuntu,main,multiverse,focal
From: https://www.cnblogs.com/jh-fight-furture/p/17235866.html

相关文章

  • Linux好用的管道命令
    Linux好用的管道命令​1.选取命令​​​grep​​​​cut「分割」​​​2.排序命令​​​sort​​​​wc​​​​uniq​​​​3.划分命令split​​​​4.参数代换xargs......
  • linux文件句柄数查看
    lsof命令查看有关文件句柄的详细信息,如当前系统打开的文件数量,哪些进程在使用这些文件句柄等等。lsof-p【PID】查看进程PID打开的文件句柄详细信息#lsof-n|awk'{prin......
  • linux 下redis设置开机自启动
    一、创建redis服务配置文件#!/bin/sh#chkconfig:23451090#description:StartandStopredisPATH=/usr/local/bin:/sbin:/usr/bin:/bin#找到本机......
  • VMware和CentOS7发行版Linux系统安装
    工作前准备,需要先下载VMware和Centos,下载好后,我们再进行下一步操作!!!VMware安装双击运行下载后的.exe文件勾选接受协议更改安装路径,默认是C盘(不建议安装到C盘)取消勾......
  • 在线扩容Linux(CentOS7)根目录
    一、Linux开机状态下添加硬盘查看当前的磁盘容量 此时使用fdisk-l查看并没有发现新增加的5G硬盘  二、查找主机总线编号grepmpt/sys/class/scsi_host/host?/proc_nam......
  • qq音乐linux报错
    错误如下:./qqmusic-1.1.5.AppImage(electron)Thedefaultvalueofapp.allowRendererProcessReuseisdeprecated,itiscurrently"false".Itwillchangetobe......
  • linux服务器时间不准确
    Linux计算机系统有两个时钟,一个是BIOS,或者CMOS,或者说“硬件时钟”,还有一个就是“系统(操作系统)时钟”,平时电脑显示的是系统时钟,就会产生这个问题。date//查看当前的linux......
  • Linux操作系统中命令行方式获取文件完整路径
    1、 whereis whereis命令用于搜索给定命令的二进制、源码和手册页文件,不能搜索普通文件(whereis可以列出命令、源文件和帮助文档的位置) 2、 which which返回在终......
  • linux下时间戳的转换
    thenumberofsecondssincetheUNIXepoch#date-d(--date)+%s格式为秒$date-d"Aug19:02"+%s$date-d'2022-01-0112:00'Sat01Jan202212:00:00PM......
  • Linux crontab定时任务设置方法
    一、命令crontab-l表示列出所有的定时任务crontab-r表示删除用户的定时任务,当执行此命令后,所有用户下面的定时任务会被删除,执行crontab-l后会提示用户:nocrontabf......