duckietown / duckietown-shell

Other
3 stars 6 forks source link

Temporary failure resolving 'archive.ubuntu.com' #38

Closed maivincent closed 6 years ago

maivincent commented 6 years ago

The dts challenges submit command hangs with the following error:

$ dts challenges submit 
INFO:dts:duckietown-shell 3.0.30

dts :  Problems with a command?
    :  
    :  Report here: https://github.com/duckietown/duckietown-shell-commands/issues
    :  
    :  Troubleshooting:
    :  
    :  - If some commands update fail, delete ~/.dt-shell/commands
    :  
    :  - To reset the shell to "factory settings", delete ~/.dt-shell
    :  
    :    (Note: you will have to re-configure.)
/usr/local/lib/python2.7/dist-packages/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
  warnings.warn(warning, RequestsDependencyWarning)
Duckietown Shell commands version 1.0.15
DEBUG:dts:Checking docker environment for user duckie
['docker', 'build', '-t', u'maivincent/aido1_luck-v3-submission:2018_10_31_15_08_17', '-f', 'Dockerfile', '.']
Sending build context to Docker daemon    105kB
Step 1/7 : FROM ubuntu:18.04
 ---> ea4c82dcd15a
Step 2/7 : ARG REFRESHED=2
 ---> Using cache
 ---> 913f47360973
Step 3/7 : RUN apt-get update && apt-get install -y git python-pip
 ---> Running in e5a5e722f1d0

Also, docker run -it ubuntu apt-get update returns the following error:

Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease                  
  Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu bionic-security InRelease        
  Temporary failure resolving 'security.ubuntu.com'

@breandan

breandan commented 6 years ago

Please check to see if your /etc/NetworkManager/NetworkManager.conf file contains the line dns=dnsmasq and comment it out, as per https://github.com/moby/moby/issues/26330#issuecomment-246304015.

maivincent commented 6 years ago

This worked, thanks!