WSL

Miscellaneous WSL Things

Updated: 03 September 2023

Troubleshooting

When using WSL, you may occasionally see the following error message:

1
Err:1 http://archive.ubuntu.com/ubuntu focal/main amd64 binutils-common amd64 2.34-6ubuntu1
2
Temporary failure resolving 'archive.ubuntu.com'
3
Unable to correct missing packages.
4
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'
5
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):

/etc/resolv.conf

1
nameserver 208.67.222.222

You should then be able to run apt-get update and everything should connect as expected