咖啡百科

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 699|回复: 0

[云服务器教程] ubuntu20/22/23/24.04换国内中科大源

[复制链接]

25

主题

0

回帖

213

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
213
发表于 2024-9-4 09:11:04 | 显示全部楼层 |阅读模式
Ubuntu 20.04 LTS (Focal Fossa)
  1. sed -i '1,$d' /etc/apt/sources.list && tee -a /etc/apt/sources.list > /dev/null <<EOL
  2. deb http://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
  3. deb http://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
  4. deb http://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
  5. deb http://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
  6. deb http://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
  7. deb-src http://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
  8. deb-src http://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
  9. deb-src http://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
  10. deb-src http://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
  11. deb-src http://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
  12. EOL
  13. apt-get update --allow-releaseinfo-change
复制代码


Ubuntu 22.04 LTS (Jammy Jellyfish)
  1. sed -i '1,$d' /etc/apt/sources.list && tee -a /etc/apt/sources.list > /dev/null <<EOL
  2. deb http://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse
  3. deb http://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
  4. deb http://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
  5. deb http://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
  6. deb http://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
  7. deb-src http://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse
  8. deb-src http://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
  9. deb-src http://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
  10. deb-src http://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
  11. deb-src http://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
  12. EOL
  13. apt-get update --allow-releaseinfo-change
复制代码


Ubuntu 23.04 (Lunar Lobster)
  1. sed -i '1,$d' /etc/apt/sources.list && tee -a /etc/apt/sources.list > /dev/null <<EOL
  2. deb http://mirrors.ustc.edu.cn/ubuntu/ lunar main restricted universe multiverse
  3. deb http://mirrors.ustc.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
  4. deb http://mirrors.ustc.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
  5. deb http://mirrors.ustc.edu.cn/ubuntu/ lunar-proposed main restricted universe multiverse
  6. deb http://mirrors.ustc.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
  7. deb-src http://mirrors.ustc.edu.cn/ubuntu/ lunar main restricted universe multiverse
  8. deb-src http://mirrors.ustc.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
  9. deb-src http://mirrors.ustc.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
  10. deb-src http://mirrors.ustc.edu.cn/ubuntu/ lunar-proposed main restricted universe multiverse
  11. deb-src http://mirrors.ustc.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
  12. EOL
  13. apt-get update --allow-releaseinfo-change
复制代码


Ubuntu 24.04 (noble)
  1. sed -i '1,$d' /etc/apt/sources.list && tee -a /etc/apt/sources.list > /dev/null <<EOL
  2. deb https://mirrors.ustc.edu.cn/ubuntu/ noble main restricted universe multiverse
  3. deb-src https://mirrors.ustc.edu.cn/ubuntu/ noble main restricted universe multiverse
  4. deb https://mirrors.ustc.edu.cn/ubuntu/ noble-security main restricted universe multiverse
  5. deb-src https://mirrors.ustc.edu.cn/ubuntu/ noble-security main restricted universe multiverse
  6. deb https://mirrors.ustc.edu.cn/ubuntu/ noble-updates main restricted universe multiverse
  7. deb-src https://mirrors.ustc.edu.cn/ubuntu/ noble-updates main restricted universe multiverse
  8. deb https://mirrors.ustc.edu.cn/ubuntu/ noble-backports main restricted universe multiverse
  9. deb-src https://mirrors.ustc.edu.cn/ubuntu/ noble-backports main restricted universe multiverse
  10. EOL
  11. apt-get update --allow-releaseinfo-change
复制代码
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|咖啡百科

GMT+8, 2024-11-21 18:25 , Processed in 0.036700 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表