Created: Miscellaneous WSL Things
Updated: 03 September 2023
When using WSL, you may occasionally see the following error message:
Err:1 http://archive.ubuntu.com/ubuntu focal/main amd64 binutils-common amd64 2.34-6ubuntu1 Temporary failure resolving 'archive.ubuntu.com' Unable to correct missing packages. E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/binutils/binutils-common_2.34-6ubuntu1_amd64.deb Temporary failure resolving 'archive.ubuntu.com' E: Aborting install.
This may be due to the
resolv.conf file being incorrect, you can fix this by updating the nameserver. You can do this by setting it as follows (e.g. using the OpenDNS IP):
You should then be able to run
apt-get update and everything should connect as expected