0

Any command I put into the LXTerminal of my raspberry pi, it says Sudo unable to resolve host (none) I can’t download anything, even Sudo apt-get update How do I fix this"?

  • This is indicative of an attempt to manually change hostname. You need to specify what you have done. – Milliways Jan 28 '18 at 23:02
1

Have a look at nano /etc/hostname

There you should find one line with the name of your machine.

Then have a look at nano /etc/hosts There you should find two lines. One localhost and one with your hostname:

127.0.0.1       localhost
127.0.1.1       your_host_name

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.