Pemuatan..

Apt update stuck waiting for headers 0 0

Terakhir diperbarui saat 13-Sep-2019 11:08 in IT » Ubuntu
Dikirim olehImron, A.Md

Problem

I tried to update the apt cache on a machine that had not been updated in a long time:

1
$ sudo apt-get update

But that got stuck at one of the repositories Waiting for headers. No matter how many times I tried the command, it would get stuck at this.

Solution

The problem went away once I cleared the cache using these steps as explained here:

1
2
3
4
5
6
$ sudo apt-get clean
$ cd /var/lib/apt
$ sudo mv lists lists.old
$ sudo mkdir -p lists/partial
$ sudo apt-get clean
$ sudo apt-get update

Tried with: Ubuntu 18.04.3 LTS

** Waktu didasarkan pada zona waktu