sudo apt-get update
有时会卡住:
...
99% [Waiting for headers]
Run Code Online (Sandbox Code Playgroud)
这似乎是一个常见问题,可能有多种原因。例如,在一台机器上,这是因为我使用了错误的代理服务器配置。
有没有办法系统地分析问题?它查看了man apt-get
但找不到任何提供更多信息来隔离问题的选项。除了apt-get
我可以用来获得更多见解之外,还有其他工具吗?
小智 12
更好的是,只需执行以下操作:
apt-get -o Debug::Acquire::http=true update
Run Code Online (Sandbox Code Playgroud)
我能够修复它。http://debian.sur5r.net/i3/
(量子、宇宙)没有回应。禁用后,apt-get update
成功。
下一个遇到此问题的提示:
synaptic
并禁用源,直到Reload
不再挂起。特别是,第三方来源似乎是候选人。synaptic
非常适合诊断。当Reload
挂起并且您中止它时,它会打印出当前存储库。就我而言,这恰恰是最糟糕的:
Failed to fetch http://debian.sur5r.net/i3/dists/quantal/InRelease
Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)