ubuntu 22.04国内镜像阿里云/163源/清华大学/中科大
Ubuntu 22.04 LTS这是一个长期支持版本,它将被支持五年,直到2027年4月。已发布的LTS版本带来了一些新的功能
国内有很多Ubuntu 22.04的镜像源,包括阿里、网易,还有很多教育网的镜像源,比如清华源、中科大源。
在教程中我们将介绍如何更改镜像在ubuntu 22.04。国内的包括有镜像阿里云/163源/清华大学/中科大。
首先我们需要先备份Ubuntu官方的软件源,执行以下命令将备份原来的软件源。
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
阿里云镜像
阿里巴巴开源镜像站,免费提供Linux镜像下载服务,拥有Ubuntu、CentOS、Deepin、MongoDB、Apache、Maven、Composer等多种开源软件镜像源。
此外还提供域名解析DNS、网络授时NTP等服务,致力于为互联网用户提供全面,高效和稳定的基础服务。
复制以下命令即可一键切换到阿里云 ubuntu 22.04镜像:
1 2 3 4 5 6 7 8 9 10 11 12 | sudo bash -c "cat << EOF > /etc/apt/sources.list && apt update 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 EOF" |
中科大镜像
中国科学技术大学开源软件镜像由中国科学技术大学网络信息中心提供支持。
mirrors.ustc.edu.cn是Debian, Ubuntu, Fedora, Archlinux, CentOS等多个发行版的官方源。目前是中国大陆高校访问量最大,收录最全的开源软件镜像。
中国科学技术大学Linux用户协会是由中国科学技术大学在校的GNU/Linux爱好者发起并组成的一个全校性群众团体。
复制以下命令即可一键切换到中科大ubuntu 22.04镜像:
sudo bash -c "cat << EOF > /etc/apt/sources.list && apt update 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 EOF"
清华大学镜像
1 2 3 4 5 6 7 8 9 10 | sudo bash -c "cat << EOF > /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 EOF" |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了