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
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
- How to Fix Failed to add the host to the list of known hosts
- When configuring ROS distributed / Error report solution and command requirements encountered in the process of master-slave computer
- Someone is doing something abnormal
- A solution to the refusal of rdesktop connection to windows host
- FTP prompt in Linux — 553 could not create file (absolutely useful)
- Problem solving: failed to connect to github.com port 443: Operation timed out（2020.06.04）
- Centos8 modifying the host name
- SSH appears warning: remote host identification has changed!
- mac Upgrade: httpd: apr_sockaddr_info_get() failed for bogon
- ansible Q&A: Failed to connect to the host via ssh: ssh_exchange_identification and Authentication or per
- Rsync: failed to exec SSH: no such error in remote Rsync
- Could’t find path to unrear Library
- How to Fix ”is not in the sudoers file“ in Linux
- Linux’s method of clearing DNS cache and refreshing DNS in shell terminal (Ubuntu, Debian)
- TIP: Unable to initialize gtk, is DISPLAY set properly?
- The solution to the problem that the virtual machine and the host SSH can’t connect on vmvare
- Determining IP information for eth0… failed; no link present. Check cable?
- Ubuntu reads the shared folder under windows Unable to mount location Failed to retrieve share list from server
- QT learning 3: configuration and testing of QT creator 2.4.1 development environment
- Linux novice: unable to locate package error solution