首页 > 系统相关 >ubuntu 2204换源

ubuntu 2204换源

时间:2023-05-04 15:24:58浏览次数:52  
标签:2204 universe restricted jammy 换源 ubuntu main multiverse

update 2022.04.23:
Ubuntu 22.04 的稳定版已经于 2022 年 4 月 21 日发布,Ubuntu 22.04 稳定版下载地址:https://ubuntu.com/download/desktop
Ubuntu 22.04 的稳定版计划于 2022 年 4 月 21 日发布。开发工作已经在紧锣密鼓地进行,它将遵循如下发布时间表:

  • 2022 年 2 月 24 日:功能冻结
  • 2022 年 3 月 17 日:用户界面冻结
  • 2022 年 3 月 31 日:测试版发布
  • 2022 年 4 月 14 日:候选版本
  • 2022 年 4 月 21 日:最终稳定版本
    Linux 5.15 LTS是Ubuntu 22.04的默认内核,GCC 11.2是默认的系统编译器,Mesa 22.0提供开源图形驱动支持。Canonical一直在为Ubuntu开发新的桌面安装程序,但是随着22.04 LTS的发布,现有的Ubiquity仍然是默认使用的。

如果你想在备用机器或虚拟机上测试它,你可以从 Ubuntu 的网站下载Ubuntu 22.04 每日构建版。
下载 Ubuntu 22.04 每日构建(不稳定)https://cdimage.ubuntu.com/daily-live/current/
国内有很多Ubuntu的镜像源,包括阿里的、网易的,还有很多教育网的源,比如:清华源、中科大源。
我们这里以清华源为例讲解如何修改Ubuntu 22.04里面默认的源。
编辑/etc/apt/sources.list文件, 在文件最前面添加以下条目(操作前请做好相应备份):

清华源

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

然后执行命令:

sudo apt-get update
sudo apt-get upgrade

其他几份国内源如下:

阿里源

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

中科大源

deb https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

网易163源

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

————————————————
原文链接

标签:2204,universe,restricted,jammy,换源,ubuntu,main,multiverse
From: https://www.cnblogs.com/komore/p/17371324.html

相关文章

  • Ubuntu 18.04 Server版下载与安装
    1、下载地址https://releases.ubuntu.com/releases/2、系统镜像版本区别ubuntu-18.04.3-live-server-amd64.iso#带live,ISO镜像提供不安装就可以试⽤系统的功能ubuntu-18.04.3-server-amd64.iso  #不带live,不可⽤试⽤,但是可以直接进⾏系统安装3、不同CPU指令集的ISO镜像C......
  • Debian与Ubuntu到底有什么不同,应该如何选择?
    在CentOS转向CentOSStream之后,这意味着它将变得不可靠。但是幸好,仍然有非常优秀的Linux发行版本在等我们。其中比较有知名度的是Ubuntu以及Debian。我们经常听到的一句话是:UbuntuisbasedonDeibian那它们究竟有什么区别,如果让你来选择,你要如何选择?这篇文章中,我将简单的说......
  • ubuntu 系统安装的一些操作
    一、apt-get修改软件源二、常见的软件三、关闭自动更新 一、apt-get修改软件源(最好不要一键更新softwareupdate,血泪教训,系统直接蹦)原生的Ubuntu是设定的国外的源,速度很慢,有两种方式选择:(自带的软件源要是不慢就没必要更改)图形鼠键操作:打......
  • ubuntu系统怎么查看版本
    1、输入uname-a,可以看到操作系统的发行版号和操作系统版本。 2、输入uname-v可以查看版本号。 3、lsb_release-a,查看发行版本信息,并且方法可以适用于所有的Linux发行版本。 4、cat/etc/issue可以查看到当前是Linux什么版本系统。 5、cat/proc/version可以查看内......
  • 工控机中部署Ubuntu 22.04 系统
    1.下载Ubuntu系统服务器版本获取Ubuntu服务器版|Ubuntu 2.下载启动盘制作工具UltralSO(试用就可以)文件>打开(Ubuntu.ISO)>启动>(盾牌)写入硬盘映像>等待完成 3.进入BIOS界面设置U盘启动方法一:win10设置>重置此电脑>立即重启>疑难解答>高级选项>......
  • 使用Python实现Ubuntu搜狗输入法的安装
    Ubuntu搜狗输入法在每次安装后都需要重新配置,非常繁琐。我们可以使用Python的subprocess模块来实现。以下是示例代码,它使用了subprocess模块中的check_call()函数来执行安装命令:importsubprocesssubprocess.check_call(['sudo','add-apt-repository','-y','ppa:fcitx-team/nig......
  • ubuntu mount 命令详解
    mount命令详解2009-06-2914:38功能:加载指定的文件系统。 语法:mount[-afFhnrvVw][-L][-o][-t][设备名][加载点] 用法说明:mount可将指定设备中指定的文件系统加载到Linux目录下(也就是装载点)。可将经常使用的设备写入文件/etc/fstab,以使系统在每次启动......
  • Intel Pentium III 512MB内存 i815集显上安装Ubuntu Server 14.04
    自己的御用奔腾IIIPC,接口齐全,准备安装UbuntuServer14.04i386,继续发挥余热,物尽其用。 基本配置:CPU:IntelPentiumIII1000MHz,256KBL2,133MHzFSB,0.18um,1.75v,Coppermine-TRAM:512MBSDRAM,PC133GPU:Inteli82815IGPHDD:128GBSSD, withSATAtoIDEa......
  • 记录一次C#在arm64的Ubuntu下安装使用selenium的过程
    手头上有一台没用的安卓手机,想着安装Ubuntu当爬虫服务器用,安卓手机root后使用delopy安装启动Ubuntu系统这些前置过程就不谈了重点谈怎么在ssh下安装使用selenium的过程首先我们安装aptitude这个软件包管理库,这个库相对于apt功能,对软件的依赖处理更加优秀,且使用方式和apt一样su......
  • 玩一玩 Ubuntu 下的 VSCode 编程
    一:背景1.讲故事今天是五一的最后一天,想着长期都在Windows平台上做开发,准备今天换到Ubuntu系统上体验下,主要是想学习下AT&T风格的汇编,这里VisualStudio肯定是装不了了,还得上VSCode,刚好前几天买了一个小工控机,这里简单记录下零到一的过程吧。二:搭建一览1.VSCode......