无法连接上 cn.archive.ubuntu.com:80 (123.129.214.98)。 - connect (111: 拒绝连接)
发布日期:2021-06-30 18:50:44
浏览次数:4
分类:技术文章
本文共 3869 字,大约阅读时间需要 12 分钟。
今天用sudo apt-get install flex的时候出现了标题上的问题,不能连接。
先ping了一下这个域名,发现能够ping的通,就是不懂为什么不能链接。
接着从网上找相应的解决方法,有网友说是源出问题拉,权且认为是这个源的主机down了。
然后从网上搜到与OS相对应的版本的源,我的是10.04,然后更改了源,就没问题了。
具体如下:
1. sudo gedit /etc/apt/source.list
删除原有内容
2. 将下面的源中选择一个,最好是物理上位置比较近的,这样连接速度快。复制到source.list中去。
Ubuntu 10.04源列表:
网易(速度很快) 代码:deb http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse deb-src http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse deb http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted 搜狐 代码:deb http://mirrors.shlug.org/ubuntu/ lucid main universe restricted multiverse deb-src http://mirrors.shlug.org/ubuntu/ lucid main universe restricted multiverse deb http://mirrors.shlug.org/ubuntu/ lucid-security universe main multiverse restricted deb-src http://mirrors.shlug.org/ubuntu/ lucid-security universe main multiverse restricted deb http://mirrors.shlug.org/ubuntu/ lucid-updates universe main multiverse restricted deb http://mirrors.shlug.org/ubuntu/ lucid-proposed universe main multiverse restricted deb-src http://mirrors.shlug.org/ubuntu/ lucid-proposed universe main multiverse restricted deb http://mirrors.shlug.org/ubuntu/ lucid-backports universe main multiverse restricted deb-src http://mirrors.shlug.org/ubuntu/ lucid-backports universe main multiverse restricted deb-src http://mirrors.shlug.org/ubuntu/ lucid-updates universe main multiverse restricted SRT Sources 代码:deb http://ubuntu.srt.cn/ubuntu/ lucid main restricted universe multiverse deb http://ubuntu.srt.cn/ubuntu/ lucid-security main restricted universe multiverse deb http://ubuntu.srt.cn/ubuntu/ lucid-updates main restricted universe multiverse deb http://ubuntu.srt.cn/ubuntu/ lucid-proposed main restricted universe multiverse deb http://ubuntu.srt.cn/ubuntu/ lucid-backports main restricted universe multiverse deb-src http://ubuntu.srt.cn/ubuntu/ lucid main restricted universe multiverse deb-src http://ubuntu.srt.cn/ubuntu/ lucid-security main restricted universe multiverse deb-src http://ubuntu.srt.cn/ubuntu/ lucid-updates main restricted universe multiverse deb-src http://ubuntu.srt.cn/ubuntu/ lucid-proposed main restricted universe multiverse deb-src http://ubuntu.srt.cn/ubuntu/ lucid-backports main restricted universe multiverse ubuntu官方上海源 代码:deb http://mirror.rootguide.org/ubuntu/ lucid main universe restricted multiverse deb-src http://mirror.rootguide.org/ubuntu/ lucid main universe restricted multiverse deb http://mirror.rootguide.org/ubuntu/ lucid-security universe main multiverse restricted deb-src http://mirror.rootguide.org/ubuntu/ lucid-security universe main multiverse restricted deb http://mirror.rootguide.org/ubuntu/ lucid-updates universe main multiverse restricted deb http://mirror.rootguide.org/ubuntu/ lucid-proposed universe main multiverse restricted deb-src http://mirror.rootguide.org/ubuntu/ lucid-proposed universe main multiverse restricted deb http://mirror.rootguide.org/ubuntu/ lucid-backports universe main multiverse restricted deb-src http://mirror.rootguide.org/ubuntu/ lucid-backports universe main multiverse restricted deb-src http://mirror.rootguide.org/ubuntu/ lucid-updates universe main multiverse restricted3. 运行一下sudo apt-get update
这样问题就能解决了转载地址:https://linus.blog.csdn.net/article/details/11540357 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
逛到本站,mark一下
[***.202.152.39]2024年05月02日 20时27分28秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
lnmp部署
2019-04-30
location区段
2019-04-30
nginx访问控制、基于用户认证、https配置
2019-04-30
用zabbix监控nginx
2019-04-30
SaltStack
2019-04-30
Jenkins 控制台输出中的奇怪字符
2019-04-30
Linux添加系统调用
2019-04-30
linux内存的寻址方式
2019-04-30
ubunut16.04的pip3出现问题,重新安装pip3
2019-04-30
how2heap-double free
2019-04-30
how2heap-fastbin_dup_consolidate
2019-04-30
orw_shellcode_模板
2019-04-30
[fmt+shellcode]string
2019-04-30
fmt在bss段(neepusec_easy_format)
2019-04-30
[double free] 9447 CTF : Search Engine
2019-04-30
python 函数式编程
2019-04-30
python编码
2019-04-30
scala maven plugin
2019-04-30
flink 1-个人理解
2019-04-30