When I run sudo apt-get update
on Ubuntu 15.04, I get the following (shortened) output:
$ LANG=C sudo apt-get update
[sudo] password for ipc-admin:
Ign http://ftp.uni-stuttgart.de vivid InRelease
Ign http://ftp.uni-stuttgart.de vivid-updates InRelease
.
.
.
Hit http://ftp.uni-stuttgart.de vivid-proposed/universe Translation-en
Hit http://ftp.uni-stuttgart.de vivid-proposed/universe Translation-de
100% [Working]
Then it gets stuck and won't continue until I interrupt it with Ctrl+C.
When I do sudo aptitude update
instead, it also hangs at the same position.
After deleting the cache with sudo rm -rf /var/lib/apt/lists
and running sudo apt-get update
again, I still get the same results.
However, it seems to have successfully updated the package index files after running sudo apt-get update
and interrupting it when it gets stuck, as I still can run apt-get upgrade
and receive new updates, or apt-get install
. It just does not finish the apt-get update
task...
A reinstall of apt
with sudo aptitude reinstall apt
and a reboot afterwards did not change my situation either.
What might be the problem here and how can I fix it?
PS: The full output of apt-get update
recorded with script
that also shows those dynamic lines may be found on pastebin.
UPDATE
After letting it run for hours, it actually finishes! The repositories that cause the problem are various https://repo.tox.im
lines. Here what appears after loooong times of waiting between each line:
Ign https://repo.tox.im nightly InRelease
Ign https://repo.tox.im nightly Release.gpg
Ign https://repo.tox.im nightly Release
Err https://repo.tox.im nightly/main i386 Packages
Connection timed out after 120000 milliseconds
Ign https://repo.tox.im nightly/main Translation-en
Ign https://repo.tox.im nightly/main Translation-de
Fetched 69,8 kB in 36min 0s (32 B/s)
W: Failed to fetch https://repo.tox.im/dists/nightly/main/binary-i386/Packages Connection timed out after 120000 milliseconds
E: Some index files failed to download. They have been ignored, or old ones used instead.
After this, the process terminates correctly without having to interrupt it. So what can be the problem with that repository and how may I fix it?