查看: 102|回复: 0

[Debian] Ubuntu/debian 更新源

[复制链接]

3

主题

0

回帖

0

积分

热心网友

金币
0
阅读权限
220
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2011-4-17
发表于 2021-6-30 16:44:00 | 显示全部楼层 |阅读模式

 

1.更新源

  ubuntu | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

  https://mirrors.tuna.tsinghua.edu.cn/help/debian/

 

2.修改清华源为Ubuntu 默认的源

  sudo gedit /etc/apt/sources.list   

 

3.添加如下条目

1.注释源码镜像以提高 apt update 速度

2.将清华源替换进去(Ubuntu 22.04.2)

  deb 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 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
  deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse

 

 

4.最后执行如下命令更新源
  sudo apt-get update    更新软件源
  sudo apt-get upgrade

 

 

ubuntu 更新源详细操作步骤「建议收藏」-腾讯云开发者社区-腾讯云 (tencent.com)

 

  

  



来源:https://www.cnblogs.com/kernelx/p/14955254.html
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

圆梦公社,专注于为全球华人提供纯粹技术交流的地方,请勿发布任何政治及违法的言论。如有相关侵权、举报、投诉及建议等,请发 E-mail:[email protected]

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部