richboy3 2021-02-08 11:30 采纳率: 70%
浏览 1413
已结题

ubuntu18.04 apt-get update失败(已换成国内阿里源)

出现以下错误

root@ubuntu:~# apt-get update
Err:1 http://mirrors.aliyun.com/ubuntu bionic InRelease
  Could not connect to mirrors.aliyun.com:80 (115.238.192.244), connection timed out Could not connect to mirrors.aliyun.com:80 (115.238.192.243), connection timed out Could not connect to mirrors.aliyun.com:80 (115.238.192.242), connection timed out Could not connect to mirrors.aliyun.com:80 (115.238.192.248), connection timed out Could not connect to mirrors.aliyun.com:80 (115.238.192.238), connection timed out Could not connect to mirrors.aliyun.com:80 (115.238.192.239), connection timed out Could not connect to mirrors.aliyun.com:80 (122.228.1.211), connection timed out Could not connect to mirrors.aliyun.com:80 (122.228.1.206), connection timed out Could not connect to mirrors.aliyun.com:80 (122.228.1.212), connection timed out Could not connect to mirrors.aliyun.com:80 (122.228.1.208), connection timed out Could not connect to mirrors.aliyun.com:80 (115.238.192.241), connection timed out Could not connect to mirrors.aliyun.com:80 (115.231.152.241), connection timed out Could not connect to mirrors.aliyun.com:80 (115.231.152.240), connection timed out Could not connect to mirrors.aliyun.com:80 (115.231.152.244), connection timed out Could not connect to mirrors.aliyun.com:80 (115.231.152.248), connection timed out Could not connect to mirrors.aliyun.com:80 (115.238.192.240), connection timed out
Err:2 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease
  Unable to connect to mirrors.aliyun.com:http:
Err:3 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease
  Unable to connect to mirrors.aliyun.com:http:
Err:4 http://mirrors.aliyun.com/ubuntu bionic-security InRelease
  Unable to connect to mirrors.aliyun.com:http:
Reading package lists... Done                          
W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic/InRelease  Could not connect to mirrors.aliyun.com:80 (115.238.192.244), connection timed out Could not connect to mirrors.aliyun.com:80 (115.238.192.243), connection timed out Could not connect to mirrors.aliyun.com:80 (115.238.192.242), connection timed out Could not connect to mirrors.aliyun.com:80 (115.238.192.248), connection timed out Could not connect to mirrors.aliyun.com:80 (115.238.192.238), connection timed out Could not connect to mirrors.aliyun.com:80 (115.238.192.239), connection timed out Could not connect to mirrors.aliyun.com:80 (122.228.1.211), connection timed out Could not connect to mirrors.aliyun.com:80 (122.228.1.206), connection timed out Could not connect to mirrors.aliyun.com:80 (122.228.1.212), connection timed out Could not connect to mirrors.aliyun.com:80 (122.228.1.208), connection timed out Could not connect to mirrors.aliyun.com:80 (115.238.192.241), connection timed out Could not connect to mirrors.aliyun.com:80 (115.231.152.241), connection timed out Could not connect to mirrors.aliyun.com:80 (115.231.152.240), connection timed out Could not connect to mirrors.aliyun.com:80 (115.231.152.244), connection timed out Could not connect to mirrors.aliyun.com:80 (115.231.152.248), connection timed out Could not connect to mirrors.aliyun.com:80 (115.238.192.240), connection timed out
W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-updates/InRelease  Unable to connect to mirrors.aliyun.com:http:
W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-backports/InRelease  Unable to connect to mirrors.aliyun.com:http:
W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-security/InRelease  Unable to connect to mirrors.aliyun.com:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.

昨天在安装数据库的时候更新源还是正常的 今天就变这种问题了 找了各种问题也没有用 求大佬解惑!! 

ps.目前在xshell7上操作 

  • 写回答

2条回答 默认 最新

  • richboy3 2021-02-24 11:05
    关注

    还是网络的问题 重新安装后 自动获取ip地址 不设定固定ip

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 9月16日
  • 已采纳回答 9月8日

悬赏问题

  • ¥15 CSS通配符清除内外边距为什么可以覆盖默认样式?
  • ¥15 SPSS分类模型实训题步骤
  • ¥15 求解决扩散模型代码问题
  • ¥15 工创大赛太阳能电动车项目零基础要学什么
  • ¥20 limma多组间分析最终p值只有一个
  • ¥15 nopCommerce开发问题
  • ¥15 torch.multiprocessing.spawn.ProcessExitedException: process 1 terminated with signal SIGKILL
  • ¥15 QuartusⅡ15.0编译项目后,output_files中的.jdi、.sld、.sof不更新怎么解决
  • ¥15 pycharm输出和导师的一样,但是标红
  • ¥15 想问问富文本拿到的html怎么转成docx的