AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1111639
Accepted
PieterV
PieterV
Asked: 2019-01-22 04:32:54 +0800 CST2019-01-22 04:32:54 +0800 CST 2019-01-22 04:32:54 +0800 CST

运行 apt-get update 时网关超时

  • 772

当我apt-get update在我的 ubuntu 18.04.1 LTS 上运行时,我收到以下错误消息

Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Err:2 http://ppa.launchpad.net/communitheme/ppa/ubuntu bionic InRelease        
  504  Gateway Timeout [IP: 135.245.192.7 8000]
Err:3 http://be.archive.ubuntu.com/ubuntu bionic InRelease          
  504  Gateway Timeout [IP: 135.245.192.7 8000]
Err:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
  504  Gateway Timeout [IP: 135.245.192.7 8000]
Err:5 http://be.archive.ubuntu.com/ubuntu bionic-updates InRelease
  504  Gateway Timeout [IP: 135.245.192.7 8000]
Err:6 http://be.archive.ubuntu.com/ubuntu bionic-backports InRelease
  504  Gateway Timeout [IP: 135.245.192.7 8000]
Reading package lists... Done
W: Failed to fetch http://be.archive.ubuntu.com/ubuntu/dists/bionic/InRelease  504  Gateway Timeout [IP: 135.245.192.7 8000]
W: Failed to fetch http://be.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  504  Gateway Timeout [IP: 135.245.192.7 8000]
W: Failed to fetch http://be.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  504  Gateway Timeout [IP: 135.245.192.7 8000]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease  504  Gateway Timeout [IP: 135.245.192.7 8000]
W: Failed to fetch http://ppa.launchpad.net/communitheme/ppa/ubuntu/dists/bionic/InRelease  504  Gateway Timeout [IP: 135.245.192.7 8000]
W: Some index files failed to download. They have been ignored, or old ones used instead.

我不确定出了什么问题,我还没有在谷歌上找到解决方案。这是我的错误吗?我不记得在我的安装中更改任何内容。

updates apt lts 18.04
  • 1 1 个回答
  • 5669 Views

1 个回答

  • Voted
  1. Best Answer
    KSI
    2019-01-22T07:04:32+08:002019-01-22T07:04:32+08:00

    这不清楚您的网络配置是什么。我没有足够的声誉分数来在评论中询问更多信息,抱歉

    看起来类似于apt-get 的“无法连接”错误:可能的代理?

    我相信 135.245.192.7:8000 是代理服务器和端口。
    “网关超时”告诉我们代理正忙。
    请换个时间试试。

    或者你有机会改变代理吗?

    请比较浏览器中的代理设置和当前的 APT 设置,可能在/etc/apt/apt.conf或中/etc/apt/apt.conf.d/proxy.conf。根据您的问题,您可以通过浏览器访问互联网。

    以下是 apt 代理的参考资料

    • https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-set-the-proxy-for-apt-for-ubuntu-18-04/

      Acquire {
        http::Proxy "http://user:[email protected]:port/";
        https::Proxy "http://user:[email protected]:port/";
      }```
      
    • apt.conf "Acquire::http:Proxy "proxyserver:port" 似乎没有使用(Win7上Virtual Box下的Ubuntu 13.04)

    • 2

相关问题

  • 如何从命令行仅安装安全更新?关于如何管理更新的一些提示

  • iPod Touch (iPhone) 的固件更新?

  • 分销升级的合理途径

  • 如何让 Ubuntu 减少检查更新的频率?对于 11.04 及更高版本对于赶时间的人!通过 Ubuntu 软件中心

  • 如何启用自动更新?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve