What to do when you get an error saying "Name resolution temporarily failed" on linux

Failed to establish a new connection: [Errno -3] Name resolution temporarily failed')':

This is the one.

If you leave the Raspberry Pi unattended, this will happen frequently and you will forget how to deal with it.

sudo dhclient wlan0

Only this.

This command seems to set the IP address borrowed from the DHCP (Dynamic Host Configuration Protocol) server. The DHCP server is the one that assigns the IP to the device connected to wifi.

The first time I encountered it, apt-get failed. It seems that it was an error that I could not connect to the Internet because the IP was not assigned to Raspberry Pi.

Because I was able to ssh PC → wifi → Raspberry Pi This route was being followed Also, even if I hit the internal IP with ping, there was no problem, so I thought that I was able to connect to the Internet.

I was a little troubled because there seems to be a mysterious thing that even if the internal IPs are connected to each other, it is not possible to connect to the Internet via wifi.

Recommended Posts

What to do when you get an error saying "Name resolution temporarily failed" on linux
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you get an error when trying to load mnist
What to do if you get an error when installing Dlib (Ubuntu)
What to do if you get an error when vagrant up when you enable public_network or private_network on Vagrant + Arch Linux → Install netctl
What to do if you get an error when installing python with pyenv
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do if you get an error when running "certbot renew" in CakePHP environment
What to do if you get an Undefined error when trying to use pip with pyenv
What to do if you get stuck during Anaconda installation on Linux
What to do if you get an error saying c compiler cannot create executables in configure
What to do if you get a Permission denied (public key) error when trying to pull on Github
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you get an "unknown service" error from your gRPC server
What to do if you get a memory error when converting from PySparkDataFrame to PandasDataFrame
What to do when an error occurs with import _ssl
What to do if you can't use WiFi on Linux
What to do if you get an Undefined error:'Module_six_moves_urllib_parse' object has no attribute'urlencode' on MacOS
[Beanstalk] What to do when an error occurs with import uuid
What to do when you get "I can't see the site !!!!"
What to do if you get a must override `get_config` error when trying to model.save in Keras
What to do if you get angry if you don't have libxml / xmlversion.h when installing lxml on CentOS
EC2 / Amazon Linux2: What to do if you get an "unable to execute'gcc': No such file or directory" error with pip install
What to do if you forget your login password on Manjaro Linux
[Python] What to do when an error related to SSL authentication is returned
What to do if an error occurs when importing numpy with VScode
I built an environment from centos installation to php source expansion on linux, but what to do when a browser error occurs
[OSX] [pyenv] What to do when an SSL error occurs in pip
What to do when psycopg2 throws an error when pipenv lock under Pipenv environment
What to do if you get "The session could not be opened" when installing CentOS on VirtualBox
What to do if you get an error like'Qstring' has already been set to version 1 using mne python
What to do if you get a "No versions found" error in pipenv
What to do if you get angry with swapon failed: Operation not permitted
[python] What to do when an error occurs in send_keys of headless chrome
[Python] What to check when you get a Unicode Decode Error in Django
What to do if an SSL connection error (ssl.SSLError: [SSL: DH_KEY_TOO_SMALL]) occurs on Ubuntu 20.04
What to do when "cannot import name xxx" [Python]
When you get an error in python scraping (requests)
What to do when you can't bind CaboCha to Python
[Python] Type Error:'WebElement' object is not iterable What to do when an error occurs
What to do if you get "(35,'SSL connect error')" in pycurl (one of them)
What to do when "Type Error: must be _socket.socket, not socket" appears on GAE
I get an error when I try to raise Python to 3 series using pyenv on Catalina
What to do if you run python in IntelliJ and end with an error
What to do if you get the error "Error: opencv3: Does not support building both Python 2 and 3 wrappers" when installing openCV 3
[AWS] What to do when you want to pip with Lambda
What to do when Japanese is not displayed on matplotlib
What to do when a Remove Error occurs when updating conda
I get [Error 2055] when trying to connect to MySQL on Heroku
What to do if you get "coverage unknown" in Coveralls
What to do if you get Swagger-codegen in python and Import Error: No module named
[AWS EC2] Settings you want to do on Amazon Linux 2
When you want to use python2.x on modern Gentoo Linux
What to do if you get a Cannot retrieve metalink for repository error in yum
ImportError: No module What to do when you are told
What to do when no display name occurs when unittesting Python + Tkinter on Github Actions Memo
What to do if you get a minus zero in Python
When I get an error with Pylint in Atom on Windows
I get an error when trying to install maec 4.0.1.0 with pip