查看: 60|回覆: 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:qiongdian@foxmail.com

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

在本版发帖返回顶部