【问题标题】:apt-get update operation stuck at 0 shows 0% [working]apt-get update 操作停留在 0 显示 0% [工作]
【发布时间】:2021-03-17 00:24:31
【问题描述】:

我需要安装mysql服务器,但是我无法通过apt-get方法。它显示0% [working] 并且没有任何结束。

帮帮我!

See Terminal snapshot

【问题讨论】:

标签: mysql apache server debian apt-get


【解决方案1】:

问题是我通过 SSH 连接到未连接到 Internet 的服务器。后来,当我启用互联网时,更新开始了。

基本上,我使用了lynx any_web_site.com,然后提供了 Internet 连接的凭据。成功了!

【讨论】:

    【解决方案2】:

    /etc/apt/sources.list中的所有https网址更新为http

    cp /etc/apt/sources.list /etc/apt/sources.list.bak
    apt-get update
    apt-get install apt-transport-https
    

    可选:
    /etc/apt/sources.list 中的那些网址改回 https

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-08-17
      • 1970-01-01
      • 2018-01-12
      • 2018-04-06
      • 2017-10-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多