大陶子 發表於 2023-5-7 17:56:00

Ubuntu 22.04换国内源

<p>Ubuntu 22.04 的稳定版已经于 2022 年 4 月 21 日发布,Ubuntu 22.04 稳定版下载地址:https://cn.ubuntu.com/server</p>
<p>Ubuntu 22.04 的稳定版计划于 2022 年 4 月 21 日发布。开发工作已经在紧锣密鼓地进行,它将遵循如下发布时间表:</p>
<ul>
<li>2022 年 2 月 24 日:功能冻结</li>
<li>2022 年 3 月 17 日:用户界面冻结</li>
<li>2022 年 3 月 31 日:测试版发布</li>
<li>2022 年 4 月 14 日:候选版本</li>
<li>2022 年 4 月 21 日:最终稳定版本</li>
</ul>
<p>Linux 5.15 LTS是Ubuntu 22.04的默认内核,GCC 11.2是默认的系统编译器,Mesa 22.0提供开源图形驱动支持。Canonical一直在为Ubuntu开发新的桌面安装程序,但是随着22.04 LTS的发布,现有的Ubiquity仍然是默认使用的。</p>
<p>如果你想在备用机器或虚拟机上测试它,你可以从 Ubuntu 的网站下载Ubuntu 22.04 每日构建版。<br>下载 Ubuntu 22.04 每日构建(不稳定)https://cdimage.ubuntu.com/daily-live/current/<br>国内有很多Ubuntu的镜像源,包括阿里的、网易的,还有很多教育网的源,比如:清华源、中科大源。<br>我们这里以清华源为例讲解如何修改Ubuntu 22.04里面默认的源。<br><span style="background-color: rgba(255, 255, 0, 1)">编辑/etc/apt/sources.list文件, 在文件最前面添加以下条目(操作前请做好相应备份):</span></p>
<p><strong>清华源</strong></p>
<div class="cnblogs_code">
<pre><span style="color: rgba(0, 128, 0, 1)">#</span><span style="color: rgba(0, 128, 0, 1)"> 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释</span>
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/<span style="color: rgba(0, 0, 0, 1)"> jammy main restricted universe multiverse
</span><span style="color: rgba(0, 128, 0, 1)">#</span><span style="color: rgba(0, 128, 0, 1)"> deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse</span>
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">updates main restricted universe multiverse
</span><span style="color: rgba(0, 128, 0, 1)">#</span><span style="color: rgba(0, 128, 0, 1)"> deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse</span>
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">backports main restricted universe multiverse
</span><span style="color: rgba(0, 128, 0, 1)">#</span><span style="color: rgba(0, 128, 0, 1)"> deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse</span>
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">security main restricted universe multiverse
</span><span style="color: rgba(0, 128, 0, 1)">#</span><span style="color: rgba(0, 128, 0, 1)"> deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse</span>

<span style="color: rgba(0, 128, 0, 1)">#</span><span style="color: rgba(0, 128, 0, 1)"> 预发布软件源,不建议启用</span><span style="color: rgba(0, 128, 0, 1)">
#</span><span style="color: rgba(0, 128, 0, 1)"> deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse</span><span style="color: rgba(0, 128, 0, 1)">
#</span><span style="color: rgba(0, 128, 0, 1)"> deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse</span></pre>
</div>
<p>然后执行命令:</p>
<div class="cnblogs_code">
<pre>sudo apt-<span style="color: rgba(0, 0, 0, 1)">get update
sudo apt</span>-get upgrade</pre>
</div>
<p>其他几份国内源如下:</p>
<p><strong>阿里源</strong></p>
<div class="cnblogs_code">
<pre>deb http://mirrors.aliyun.com/ubuntu/<span style="color: rgba(0, 0, 0, 1)"> jammy main restricted universe multiverse
deb</span>-src http://mirrors.aliyun.com/ubuntu/<span style="color: rgba(0, 0, 0, 1)"> jammy main restricted universe multiverse
deb http:</span>//mirrors.aliyun.com/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">security main restricted universe multiverse
deb</span>-src http://mirrors.aliyun.com/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">security main restricted universe multiverse
deb http:</span>//mirrors.aliyun.com/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">updates main restricted universe multiverse
deb</span>-src http://mirrors.aliyun.com/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">updates main restricted universe multiverse
deb http:</span>//mirrors.aliyun.com/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">proposed main restricted universe multiverse
deb</span>-src http://mirrors.aliyun.com/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">proposed main restricted universe multiverse
deb http:</span>//mirrors.aliyun.com/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">backports main restricted universe multiverse
deb</span>-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse</pre>
</div>
<p><strong>网易163源</strong></p>
<div class="cnblogs_code">
<pre>deb http://mirrors.163.com/ubuntu/<span style="color: rgba(0, 0, 0, 1)"> jammy main restricted universe multiverse
deb http:</span>//mirrors.163.com/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">security main restricted universe multiverse
deb http:</span>//mirrors.163.com/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">updates main restricted universe multiverse
deb http:</span>//mirrors.163.com/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">proposed main restricted universe multiverse
deb http:</span>//mirrors.163.com/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">backports main restricted universe multiverse
deb</span>-src http://mirrors.163.com/ubuntu/<span style="color: rgba(0, 0, 0, 1)"> jammy main restricted universe multiverse
deb</span>-src http://mirrors.163.com/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">security main restricted universe multiverse
deb</span>-src http://mirrors.163.com/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">updates main restricted universe multiverse
deb</span>-src http://mirrors.163.com/ubuntu/ jammy-<span style="color: rgba(0, 0, 0, 1)">proposed main restricted universe multiverse
deb</span>-src http://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse</pre>
</div>
<p>————————————————<br>版权声明:本文为CSDN博主「nudt_qxx」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。<br>原文链接:https://blog.csdn.net/xiangxianghehe/article/details/122856771</p><br><br>
来源:https://www.cnblogs.com/dier-gaohe/p/17379705.html
頁: [1]
查看完整版本: Ubuntu 22.04换国内源