hans

hans

【Linux】apt-get update update failed, cannot find xxx.


Prompted an index error that caused xxx to not be found, took some time to solve this problem.

First, delete the cache:

sudo rm -vrf /var/lib/apt/lists/*

Usually, this will solve the problem. If it doesn't solve it.

Delete the cache again, then modify the DNS:

sudo vim /etc/resolv.conf

nameserver 8.8.8.8

At this point, the update should work without any issues.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.