首页 > 计算机技术 > 操作系统 > Ubuntu

Ubuntu系统更换中文源的方法

原创 admin于2025年03月03日 20:58发表
来源:本站 阅读:64

Ubuntu 24.10安装成功后,第一件事就是要更换源为国内中文源,只有这样,以后更新和安装软件才会更快速。由于Ubuntu 24.10的源文件地址已经更换为 /etc/apt/sources.list.d/ubuntu.sources ,所以我们需要修改该文件,使用以下命令修改:

sudo nano /etc/apt/sources.list.d/ubuntu.sources


将原来的官方源使用 # 注释掉,更换为阿里云的源。


#Types: deb
#URIs: http://archive.ubuntu.com/ubuntu
#Suites: oracular oracular-updates oracular-backports
#Components: main universe restricted multiverse
#Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

## Ubuntu security updates. Aside from URIs and Suites,
## this should mirror your choices in the previous section.
#Types: deb
#URIs: http://security.ubuntu.com/ubuntu/
#Suites: oracular-security
#Components: main universe restricted multiverse
#Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

#阿里云
Types: deb
URIs: http://mirrors.aliyun.com/ubuntu/
Suites: oracular oracular-updates oracular-backports oracular-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg


保存后,更新系统


sudo apt-get update
sudo apt-get upgrade


友情链接: 小财迷收银系统  
Copyright © 2025 HF备忘录. All Rights Reserved.
中华人民共和国工业和信息化部ICP备案序号:皖ICP备2025073039号