当前位置:   article > 正文

Ubuntu 无法连接上 cn.archive.ubuntu.com:80

ubuntu无法发起与 mirrors.tuna.tsinghua.edu.cn:80 (2402:f000:1:400::2) 的连接

图形界面配置

新手推荐使用图形界面配置: 系统设置 -> 软件和更新 选择下载服务器 -> "mirrors.aliyun.com"

手动更改

用你熟悉的编辑器打开:

/etc/apt/sources.list

替换默认的

http://archive.ubuntu.com/

mirrors.aliyun.com

以Ubuntu 14.04.5 LTS为例,最后的效果如下:

  1. deb https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
  2. deb-src https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
  3. deb https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
  4. deb-src https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
  5. deb https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
  6. deb-src https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
  7. deb https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
  8. deb-src https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
  9. ## Not recommended
  10. # deb https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
  11. # deb-src https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

ubuntu 16.04 配置如下

  1. deb https://mirrors.aliyun.com/ubuntu/ xenial main
  2. deb-src https://mirrors.aliyun.com/ubuntu/ xenial main
  3. deb https://mirrors.aliyun.com/ubuntu/ xenial-updates main
  4. deb-src https://mirrors.aliyun.com/ubuntu/ xenial-updates main
  5. deb https://mirrors.aliyun.com/ubuntu/ xenial universe
  6. deb-src https://mirrors.aliyun.com/ubuntu/ xenial universe
  7. deb https://mirrors.aliyun.com/ubuntu/ xenial-updates universe
  8. deb-src https://mirrors.aliyun.com/ubuntu/ xenial-updates universe
  9. deb https://mirrors.aliyun.com/ubuntu/ xenial-security main
  10. deb-src https://mirrors.aliyun.com/ubuntu/ xenial-security main
  11. deb https://mirrors.aliyun.com/ubuntu/ xenial-security universe
  12. deb-src https://mirrors.aliyun.com/ubuntu/ xenial-security universe

ubuntu 18.04(bionic) 配置如下

  1. deb https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
  2. deb-src https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
  3. deb https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
  4. deb-src https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
  5. deb https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
  6. deb-src https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
  7. # deb https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
  8. # deb-src https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
  9. deb https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
  10. deb-src https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

ubuntu 20.04(focal) 配置如下

  1. deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
  2. deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
  3. deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
  4. deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
  5. deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
  6. deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
  7. # deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
  8. # deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
  9. deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
  10. deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

相关链接

Ubuntu 镜像

简介

Ubuntu,是一款基于Debian Linux的以桌面应用为主的操作系统,内容涵盖文字处理、电子邮件、软件开发工具和Web服务等,可供用户免费下载、使用和分享。

下载地址: https://mirrors.aliyun.com/ubuntu/

相关仓库

配置方法

域名说明

对于阿里云ECS用户,需要将配置文件中 https://mirrors.aliyun.com/ 替换成 http://mirrors.cloud.aliyuncs.com/ 进行使用

  1. sed-i 's/https:\/\/mirrors.aliyun.com/http:\/\/mirrors.cloud.aliyuncs.com/g' /etc/apt/sources.list
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/1018140
推荐阅读
相关标签
  

闽ICP备14008679号