When using the sudo command of Linux, some people may encounter such a problem: “sudo: can’t parse the host: xxxxx (your host name). I also encounter this problem. I have found a solution on the Internet and share it with you here.
This problem is caused by the hosts file is not well configured, Linux can not resolve to your host address, the solution is as follows:
sudo vim /etc/hosts
VIM is the command of your text editor. If you don’t have VIM in your computer, you can use GEDIT.
After opening the file, the
127.0.1.1 Â xxxxx
The following XXX is replaced by your computer host name, which is the last string of characters in the error. If not, add it in. If there are many parts of soybean oil, they can be replaced in batches.
Article link: sudo: unable to resolve host solution
Read More:
- [Solved] Centos7 Wget Error: nown. wget: unable to resolve host address ‘mirrors.aliyun.com’
- Error: unable to resolve dependency for… Could not resolve project
- Ultimate solution to error reporting of sudo rosdep init of ROS
- Unable to resolve dependency tree
- Error = [Microsoft][SQL Server Native Client 11.0]Unable to open BCP host data-file
- Unable to resolve sequelize package in C:\Users\
- A solution to the refusal of rdesktop connection to windows host
- Resolve the idea error unable to Ping server at localhost: 1099 exception
- The solution to the problem that the virtual machine and the host SSH can’t connect on vmvare
- Spark login error unable to verify certificate and certificate host name verification failed
- SSH connection to MAC server shows No route to host solution
- Springboot error, unable to read configuration file: could not resolve placeholder ‘xxx’ in value “${XXX}
- Error: bundling failed: error: unable to resolve module
- react Error: Unable to resolve module mobx-react
- Solution to the error cannot resolve symbol reported by build.sbt
- Tns-03505: the ultimate solution to failed to resolve name
- Solutions to the problem of using sudo caused by Ubuntu’s wrong modification of sudoers
- A solution to the default invalid host only mode of CentOS virtual machine in VirtualBox
- Failed to load bundle…Unable to resolve module `xxx` from xxx: Module `xx` does not exist
- Solution of invalid host header in vue-cli3