Issue
Ubuntu 16.04.3 xenial
apt-get update
is not working - infinity Get. Apt endlessly tries to download a package:
...
Get:10 http://ru.archive.ubuntu.com/ubuntu xenial/universe DEP-11 64x64 Icons [7,448 kB]
Get:10 http://ru.archive.ubuntu.com/ubuntu xenial/universe DEP-11 64x64 Icons [7,448 kB]
Get:10 http://ru.archive.ubuntu.com/ubuntu xenial/universe DEP-11 64x64 Icons [7,448 kB]
...
I changed the addresses of the mirrors in the file /etc/apt/sources.list
but it did not help.
The problem is not this: https://askubuntu.com/questions/774918/apt-get-is-stuck-at-fetched-xxkb-in-xxsec
What's going on?
Solution
Helped this answer: https://askubuntu.com/a/964096/746294
If you are using any (transparent) proxy severs, it may be a misconfiguration of a proxy. Try to use HTTPS mirrors to eliminate such issues.
How to verify that packets are cut:
curl http://archive.ubuntu.com/ubuntu/dists/xenial/universe/binary-i386/by-hash/SHA256/504313460a80c8d83fe8a45d2958284e5255ba0776b3e729074c8f8a7368d191 > /dev/null
The result of running curl
, which says that packages are not downloaded:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 7335k 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (18) transfer closed with 7512036 bytes remaining to read
It is necessary to configure the proxy server.
Quick solution: replace in /etc/apt/sources.list
HTTP mirrors with HTTPS mirrors. For example, http://ru.archive.ubuntu.com
replace with https://mirror.yandex.ru
Answered By - Slava Mokerov