2

Ubuntu 16.04.3 xenial

apt-get update infinite tries to get a package:

ams@ubuntu-ams:~$ sudo apt-get update
Get:1 http://ru.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://ru.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://ru.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://ru.archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1,201 kB]
Get:5 http://ru.archive.ubuntu.com/ubuntu xenial/main i386 Packages [1,196 kB]
Get:5 http://ru.archive.ubuntu.com/ubuntu xenial/main i386 Packages [1,196 kB]
Get:5 http://ru.archive.ubuntu.com/ubuntu xenial/main i386 Packages [1,196 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: apt-get is stuck at "Fetched XXKb in XXsec"

I think no matter what kind of package is not loaded. After sudo apt-get clean I do sudo apt-get update and another package (not i386) may loops.

What's going on?

The guy got the same problem: Why is apt-get update repeatedly downloading the same Packages file. But I don't have enough reputation to ask how he solved the problem.

And here it worked by itself: https://askubuntu.com/a/677313/746294. What I need to do to fix it and not to wait until the cache is somewhere updated?

I replaced the http to ftp and now the package just not loaded:

ams@ubuntu-ams:~$ sudo sed -i 's/http/ftp/g' /etc/apt/sources.list
ams@ubuntu-ams:~$ sudo apt-get update && sudo apt-get upgrade
Get:1 ftp://ru.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:3 ftp://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [366 kB]
0% [1 InRelease 247 kB/247 kB 100%] [3 Packages 366 kB/366 kB 100%]^C
7
  • 1
    you could try a different mirror
    – ravery
    Oct 11, 2017 at 12:15
  • 1
    ... or try again after an hour or two, if there there are temporary problems at the website (of the current mirror).
    – sudodus
    Oct 11, 2017 at 12:23
  • I tried to change the mirror and waited 2 hours. It didn't help Oct 11, 2017 at 12:58
  • post your sources.list please
    – FK-VH
    Oct 11, 2017 at 15:55
  • I've tried these addresses: - ru.archive.ubuntu.com - archive.ubuntu.com - de.archive.ubuntu.com Oct 11, 2017 at 16:10

1 Answer 1

2

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .