0

After I enter sudo command in command-line it shows this error :

unable to resolve host linux98

linux98 is my PC name. i have tried these solution too : Error message when I run sudo: unable to resolve host (none) and Error message when I run sudo: unable to resolve host (none) but it did'nt solve my problem. please help me !

1 Answers1

1

That error shows up if you changed host name and /etc/hosts was not changes.

/etc/hosts will have 7 lines. You need to alter the 2nd word on the 2nd line to 127.0.0.1 linux98.

You will need to use a live session since /etc/hosts needs sudo to be able to save changes (sudo nano /etc/hosts) and if sudo complains ... not going to work.

Rinzwind
  • 299,756