Skip to main content

Posts

Showing posts with the label proxy

gnutls_handshake() failed: Access was denied

Error when running apt-get: sudo apt-get update && sudo apt-get install yarn gnutls_handshake() failed: Access was denied The problem: There is proxy configuration error of apt-get The fix: Define proxy for apt-get 1.  sudo vim /etc/apt/apt.conf 2. Add line:   Acquire::http::proxy " http://web-proxy.il.hpecorp.net:8080 "; Source:  https://ubuntuforums.org/showthread.php?t=2011511

Fail to run docker hello world

After docker installed, it is recommended to check it with below command: sudo docker run hello-world When it fails to run, it might be a missing proxy configuration. Docker has its own proxy configuration and it does not use http_proxy  variable. Define docker proxy: Edit  etc/systemd/system/docker.service.d/http-proxy.conf and add proxy under [Service] section: [Service] Environment="http_proxy=http://PROXY_MACHINE_REAL_NAME:8080" "https_proxy=http://PROXY_MACHINE_REAL_NAME:8080" "no_proxy=127.0.0.1,localhost,mydyumserver"