1

更新Ubuntu的软件源

 1 year ago
source link: https://www.seis-jun.xyz/update-ubuntu-source
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

更新Ubuntu的软件源

2023-02-02

5 0 1.2k 1 分钟

  怎么把Ubuntu的源改为国内源?

  源文件在/eta/apt/sources.list。里面粘贴上:

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

注意到里面有focal。这个需要运行:

lsb_release -c

用显示的Codaname替换sources.list里面的focal。我的是jammy。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK