Operating system: Ubuntu 12.04 LTS
In the Ubuntu operating system, it is very convenient to use the apt get command to install the required development software. However, there are many times when the software source can not be linked and can not be installed normally. Therefore, many people will think of using the sudo apt get update command to update the software source. At this time, the update command can not work normally even in the rainy night, resulting in a large number of “failed to” “Fetch” error.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/main/binary-i386/Packages Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/binary-i386/Packages Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/universe/binary-i386/Packages Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/binary-i386/Packages Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/main/i18n/Translation-en_US Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
In fact, it is very simple to solve this problem, as long as it is properly set up
DNS
Server is enough
$ sudo vim /etc/resolv.conf
Modify DNS:
nameserver 8.8.8.8
nameserver 8.8.4.4
Then restart the network service: sudo etc/init.d/networking restart
Execute the sudo apt get update command again, and everything is normal.
After I changed it, I found that it still couldn’t work. Later, I click the link to go to the directory above the link. I found that there was no requested resource in the directory, not the network problem.
Read More:
- How to Solve Xmind Install Error in Ubuntu System
- Solve git upload file error [rejected] master -> master (fetch first) error: failed to push some refs to ‘
- How to Solve labelme Install Error in Ubuntu
- ros2 apt-get install error: E: Failed to fetch http://packages.ros.org…
- How to Solve Ubuntu20.04 Compile Error:error while loading shared libraries: libncurses.so.5
- mysqlclient in Ubuntu: How to Solve mysqlclient Install Error
- How to Solve Mujoco Install Error in Ubuntu (Pycharm Run Error)
- How to Uncompress 7z files on Ubuntu, Debian, Fedora
- Ubuntu Startup Error: warning failed to connect to lvmetad,falling back to device scanning
- Ubuntu Server: How to Install Chrome
- [Solved] Some index files failed to download.They have been ignored, or old ones used instead
- How to Fix Ubuntu(Linux) mount error(22)
- [Solved] Ubuntu Error: Failed to connect to 127.0.0.1 port xxxxx: Connection refused
- Ubuntu: How to deal with the fatal: the remote end hung up unexpected error of GIT clone Android kernel
- [Solved] secureCRT Failed to Login Ubuntu20.04 Error: Key exchange failed
- [Solved] Ubuntu 20.04.3 Fail to Start sshd Error: Failed to start OpenBSD Secure Shell server
- How to Solve Error: “Hdaudio hdaudioc0d2: unable to bind codec”
- How to Solve Oracle startup monitoring error
- [Solved] Ubuntu Compile Rust Program Error: failed to run custom build command for openssl-sys v0.9.39
- How to Solve Git clone Error: error: RPC failed; result=35, HTTP code = 0