陌路寒暄

  • 笔记
  • WEB
  • 随笔
  • 访客墙
  • 友情链接
  • 关于
Kratos
这让人揪心的代码
  1. 首页
  2. 随笔
  3. 正文

Ubuntu24.04更换源地址(新版源更换方式)

2024年4月28日 7914点热度 8人点赞 6条评论

Ubuntu24.04的源地址配置文件发生改变,不再使用以前的sources.list文件,升级24.04之后,该文件内容变成了一行注释:

# Ubuntu sources have moved to /etc/apt/sources.list.d/ubuntu.sources

新的官方源配置放在了/etc/apt/sources.list.d/ubuntu.sources中,升级前的三方源被放在了/etc/apt/sources.list.d/third-party.sources中。

首先修改sources.list.d/ubuntu.sources,添加Enabled: no进行禁用:

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

Enabled: no
Types: deb
URIs: http://security.ubuntu.com/ubuntu
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

修改sources.list.d/third-party.sources文件,填入国内源地址:
清华源

Enabled: yes
Types: deb
URIs: http://mirrors.tuna.tsinghua.edu.cn/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

中科大源

Enabled: yes
Types: deb
URIs: http://mirrors.ustc.edu.cn/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

阿里源

Enabled: yes
Types: deb
URIs: http://mirrors.aliyun.com/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

网易源

Enabled: yes
Types: deb
URIs: http://mirrors.163.com/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

腾讯源

Enabled: yes
Types: deb
URIs: http://mirrors.tencent.com/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
标签: 暂无
最后更新:2024年5月10日

jlqwer

这个人很懒,什么都没留下

点赞
< 上一篇

jlqwer

当前 -人在线,共打开 -个页面

最新 热点 随机
最新 热点 随机
Ubuntu24.04更换源地址(新版源更换方式) Ubuntu下PHP安装imagick拓展报错 悬浮窗计时器组件 Ubuntu 重启后 ufw状态变为inactive问题 悬浮窗倒计时组件 linux下去除不可见字符“&;#65279”
Ubuntu24.04更换源地址(新版源更换方式)
利用PHP(rDNS)判别搜索引擎蜘蛛真假 phpmyadmin 405 Not Allowed Python config文件读写:ConfigParser 这是一篇测试UA的文章请无视 我又回到WP了。。。 Ubuntu24.04更换源地址(新版源更换方式)
友情链接
  • 深海小涛 深海小涛
  • 简忆工具箱 简忆工具箱
  • 搜索引擎蜘蛛鉴别 搜索引擎蜘蛛鉴别
  • 援军 援军
  • 诗酒趁年华 诗酒趁年华
  • 老董 老董
  • 简忆博客 简忆博客
  • 翔哥奇思妙想 翔哥奇思妙想
  • Caid Blog Caid Blog
  • Aidea资讯脉动 Aidea资讯脉动
  • 千千 千千
  • 搜索引擎蜘蛛IP大全
  • 范明明 范明明

COPYRIGHT © 2025 陌路寒暄. ALL RIGHTS RESERVED. Theme Kratos Made By Seaton Jiang

鲁公网安备 37131202371478号 | 鲁ICP备16042736号-4 | doNotClick