The problem with the Ubuntu repositories?

When you try to download any package or upgrade velut
error:
administrator@DESKTOP-VLF5FL3:~$ sudo apt-get update && sudo apt-get upgrade
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
 Temporary failure resolving 'security.ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
 Temporary failure resolving 'archive.ubuntu.com'
Err:3 http://ppa.launchpad.net/ondrej/php-zts/ubuntu bionic InRelease
 Temporary failure resolving 'ppa.launchpad.net'
Err:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
 Temporary failure resolving 'archive.ubuntu.com'
Err:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
 Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch http://ppa.launchpad.net/ondrej/php-zts/ubuntu/dists/bionic/InRelease Temporary failure resolving 'ppa.launchpad.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libdumbnet1
Use 'sudo apt autoremove' to remove it.
The following packages have been kept back:
 ubuntu-wsl wslu
The following packages will be upgraded:
 fdisk bsdutils libblkid1 libdrm-common libdrm2 libfdisk1 libmount1 libnss-systemd libpam-systemd libsystemd0 libudev1 libuuid1 libsmartcols1 mdadm sudo mount systemd systemd-sysv udev util-linux uuid-dev uuid-runtime
22 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 7151 kB of archives.
After this operation, 38.9 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://archive.ubuntu.com/ubuntu bionic-updates/main bsdutils amd64 amd64 1:2.31.1-0.4ubuntu3.5
 Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 uuid-dev amd64 2.31.1-0.4ubuntu3.5
 Temporary failure resolving 'archive.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates/main libuuid1 amd64 amd64 2.31.1-0.4ubuntu3.5
 Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu bionic-updates/main libblkid1 amd64 amd64 2.31.1-0.4ubuntu3.5
 Temporary failure resolving 'archive.ubuntu.com'
Err:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libfdisk1 amd64 2.31.1-0.4ubuntu3.5
 Temporary failure resolving 'archive.ubuntu.com'
Err:6 http://archive.ubuntu.com/ubuntu bionic-updates/main libmount1 amd64 amd64 2.31.1-0.4ubuntu3.5
 Temporary failure resolving 'archive.ubuntu.com'
Err:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsmartcols1 amd64 2.31.1-0.4ubuntu3.5
 Temporary failure resolving 'archive.ubuntu.com'
Err:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 fdisk amd64 2.31.1-0.4ubuntu3.5
 Temporary failure resolving 'archive.ubuntu.com'
Err:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 util-linux amd64 2.31.1-0.4ubuntu3.5
 Temporary failure resolving 'archive.ubuntu.com'
Err:17 http://archive.ubuntu.com/ubuntu bionic-updates/main mount amd64 amd64 2.31.1-0.4ubuntu3.5
 Temporary failure resolving 'archive.ubuntu.com'
Err:18 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 uuid-runtime amd64 2.31.1-0.4ubuntu3.5
 Temporary failure resolving 'archive.ubuntu.com'
Err:11 http://security.ubuntu.com/ubuntu bionic-updates/main libsystemd0 amd64 amd64 237-3ubuntu10.38
 Temporary failure resolving 'archive.ubuntu.com'
Err:12 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 libpam-systemd amd64 237-3ubuntu10.38
 Temporary failure resolving 'archive.ubuntu.com'
Err:13 http://security.ubuntu.com/ubuntu bionic-updates/main systemd amd64 amd64 237-3ubuntu10.38
 Temporary failure resolving 'archive.ubuntu.com'
Err:14 http://security.ubuntu.com/ubuntu bionic-updates/main udev amd64 amd64 237-3ubuntu10.38
 Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/util-linux/bsdutils_2.31.1-0.4ubuntu3.5_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/util-linux/uuid-dev_2.31.1-0.4ubuntu3.5_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/util-linux/libuuid1_2.31.1-0.4ubuntu3.5_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/util-linux/libblkid1_2.31.1-0.4ubuntu3.5_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/util-linux/libfdisk1_2.31.1-0.4ubuntu3.5_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/util-linux/libmount1_2.31.1-0.4ubuntu3.5_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/util-linux/libsmartcols1_2.31.1-0.4ubuntu3.5_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/util-linux/fdisk_2.31.1-0.4ubuntu3.5_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/util-linux/util-linux_2.31.1-0.4ubuntu3.5_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/systemd/libnss-systemd_237-3ubuntu10.38_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/systemd/libsystemd0_237-3ubuntu10.38_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/systemd/libpam-systemd_237-3ubuntu10.38_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/systemd/systemd_237-3ubuntu10.38_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/systemd/udev_237-3ubuntu10.38_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/systemd/libudev1_237-3ubuntu10.38_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/systemd/systemd-sysv_237-3ubuntu10.38_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/util-linux/mount_2.31.1-0.4ubuntu3.5_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/util-linux/uuid-runtime_2.31.1-0.4ubuntu3.5_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/sudo/sudo_1.8.21p2-3ubuntu1.2_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libd/libdrm/libdrm-common_2.4.99-1ubuntu1~18.04.2_all.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libd/libdrm/libdrm2_2.4.99-1ubuntu1~18.04.2_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mdadm/mdadm_4.1~rc1-3~ubuntu18.04.4_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
administrator@DESKTOP-VLF5FL3:~$

Full code error
I've reconfigured dns and the hosts file was clean, but nothing helps! Can you please tell me what to do and how to solve the problem?
April 7th 20 at 11:03
1 answer
April 7th 20 at 11:05
> Temporary failure resolving 'archive.ubuntu.com'
Not available none of the registered DNS servers.

Check the network settings, pinguy DNS servers for availability.

> reconfigure dns and the hosts file was clean
How?

Find more questions by tags LinuxUbuntu