无法连接上 cn.archive.ubuntu.com:80 (123.129.214.98)。 - connect (111: 拒绝连接)
发布日期:2021-06-30 18:50:44
浏览次数:3
分类:技术文章
本文共 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 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
做的很好,不错不错
[***.243.131.199]2024年04月27日 11时48分16秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
Oracle 的循环中的异常捕捉和处理
2019-04-30
Oracle通过pivot和unpivot配合实现行列转换
2019-04-30
给Oracle数据库换一个1522端口的监听
2019-04-30
Excel表格数据生成ECharts图表
2019-04-30
阿里云短信服务python版,pyinstaller打包运行时缺少文件
2019-04-30
Oracle的pfile和spfile的一点理解和笔记
2019-04-30
WebService的简单案例记录(Java)
2019-04-30
Html利用PHP与MySQL交互
2019-04-30
dos简单命令
2019-04-30
mysql的安装与卸载与Navicat远程连接
2019-04-30
java实现稀疏数组及将稀疏数组存入硬盘中
2019-04-30
2021-05-18
2019-04-30
Flutter 使用插件打开相册、相机
2019-04-30
libuv实现tcp代理服务器
2019-04-30
libuv使用不当导致的内存泄漏
2019-04-30
libuv实现ping包发送和接收
2019-04-30
基础架构系列篇-CENTOS7安装NGINX
2019-04-30
基础架构系列篇-系统centos7安装docker+COMPOSE
2019-04-30
基础架构系列篇-系统centos7中docker安装rabbitmq
2019-04-30