I am getting the following errors when trying to run apt-get update
and install a needed package to my WSL 2 Ubuntu 20.04 instance:
<redacted>:~$ sudo apt-get update && sudo apt-get upgradeErr:1 http://archive.ubuntu.com/ubuntu focal InRelease Temporary failure resolving 'archive.ubuntu.com'Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease Temporary failure resolving 'security.ubuntu.com'Err:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease Temporary failure resolving 'archive.ubuntu.com'Err:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease Temporary failure resolving 'archive.ubuntu.com'Reading package lists... DoneW: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'archive.ubuntu.com'W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Temporary failure resolving 'security.ubuntu.com'W: Some index files failed to download. They have been ignored, or old ones used instead.Reading package lists... DoneBuilding dependency treeReading state information... DoneCalculating upgrade... Done0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.<redacted>:~$ sudo apt install unzipReading package lists... DoneBuilding dependency treeReading state information... DoneSuggested packages: zipThe following NEW packages will be installed: unzip0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.Need to get 169 kB of archives.After this operation, 593 kB of additional disk space will be used.Err:1 http://archive.ubuntu.com/ubuntu focal/main amd64 unzip amd64 6.0-25ubuntu1 Temporary failure resolving 'archive.ubuntu.com'E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/unzip/unzip_6.0-25ubuntu1_amd64.deb Temporary failure resolving 'archive.ubuntu.com'E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Is there anything I can do to get this to work?