sudo apt-get update
error:
Err:1 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu bionic InRelease
Temporary failure resolving 'ppa.launchpad.net'
Err:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Temporary failure resolving 'archive.ubuntu.com'
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/wireshark-dev/stable/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.
Use Ping www.google.com
test the network. If it appears: Ping: www.google.com: temporary failure in name resolution
is a network problem,
Solution:
first
sudo vim /etc/systemd/resolved.conf
Modify DNS as follows:
[Resolve]
DNS=8.8.8.8
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#Cache=yes
#DNSStubListener=yes
Modify the following configuration file
vim /etc/resolv.conf
Add the following:
nameserver 8.8.8.8
Then restart:
reboot
Just update the source after restart:
sudo apt-get update
Read More:
- How to Solve Ubuntu “Failed to fetch” Error
- How to Download APK Files from Google Play Store
- [Solved] Invalid signature error for ROS repository while trying to do sudo apt-get update
- yum: Error: Failed to download metadata for repo ‘aliyun-AppStream‘: Cannot download repomd.xml
- [Solve] Yinhe Qilin V10 System Error: Failed to download metadata for repo ‘ks10-adv-os‘
- Ubuntu 20.04 Desktop Install sublime-text Error: “Certificate verification failed”
- [Solved] libgit2 returned: the index is locked; this might be due to a concurrent or crashed process
- WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
- [Solved] Error: Failed to download metadata for repo ‘appstream‘
- [Solved] yum Command Error: Error: Failed to download metadata for repo ‘appstream‘
- [Solved] ffmpeg Error: fatal error: zlib.h: Not having that file or directory
- How to Uncompress 7z files on Ubuntu, Debian, Fedora
- [Solved] E Sub-process usrbindpkg returned an error code (1)
- Linux system service command error: Failed to allocate directory watch: Too many open files
- Es Container Error: too many open files [How to Solve]
- How to Solve Xmind Install Error in Ubuntu System
- [Solved] Ubuntu Update source error: Certificate verification failed: The certificate is NOT trusted.
- [Solved] /usr/local/libexec/mecab/mecab-dict-index: error while loading shared libraries: libmecab.so.2: cannot open shared object file: No such file or directory
- Linux apt-get update Error: Error in `appstreamcli‘: double free or corruption … Aborted (core dumped)
- An error occurred during the signature verification in the ROS function pack warehouse