Open hsakamoto123 opened 1 year ago
proxyconnect tcp: tls: first record does not look like a TLS handshake
There may be a problem with your network setting. Is your machine behind a proxy? If so, check the HTTPS_PROXY name and its value. Set a value with http://
. (not https://
)
Fisuda, thank you for your comment. There was a mistake in the description of the environment variable, so I fixed it.
However, the following error occurred, so we are investigating the cause.
$ ./services create
Building Docker images
[+] Building 409.0s (11/32)
=> [fiware/fast-rtps-examples internal] load build definition from Docke 0.1s
=> => transferring dockerfile: 32B 0.0s
=> [fiware/micro-rtps-examples internal] load build definition from Dock 0.1s
=> => transferring dockerfile: 32B 0.0s
=> [fiware/fast-rtps-examples internal] load .dockerignore 0.2s
=> => transferring context: 2B 0.0s
=> [fiware/micro-rtps-examples internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [fiware/fast-rtps-examples internal] load metadata for docker.io/phus 2.9s
=> [fiware/micro-rtps-examples 1/16] FROM docker.io/phusion/baseimage:0 9.2s
=> => resolve docker.io/phusion/baseimage:0.9.17@sha256:6a8479a522ffc9b1 0.0s
=> => sha256:e9c5e611068deac3cdd6ddc72a7df7329ac06dcdb 65.79MB / 65.79MB 0.0s
=> => sha256:c29de585b2252471b5e4ed4a8be32be1292ee506c 71.48kB / 71.48kB 0.0s
=> => sha256:0b3e3644d782261c5d480f15ba927ed8ddf47831e5013dd 679B / 679B 0.0s
=> => sha256:f9cf24c26853c770cb1f306f8b25575e7973f14ee 12.92kB / 12.92kB 0.0s
=> => sha256:ff82d8c50b3d88e4d29e559eb6343bf9cc2afe711 17.47MB / 17.47MB 0.0s
=> => extracting sha256:e9c5e611068deac3cdd6ddc72a7df7329ac06dcdb8b864ca 2.4s
=> => extracting sha256:c29de585b2252471b5e4ed4a8be32be1292ee506c28c2961 0.0s
=> => extracting sha256:0b3e3644d782261c5d480f15ba927ed8ddf47831e5013dd5 0.0s
=> => extracting sha256:f9cf24c26853c770cb1f306f8b25575e7973f14eef4f1005 0.0s
=> => extracting sha256:ff82d8c50b3d88e4d29e559eb6343bf9cc2afe711c85a10b 0.7s
=> [fiware/fast-rtps-examples 2/16] RUN echo 'debconf debconf/frontend 2.3s
=> [fiware/fast-rtps-examples 3/16] RUN echo "deb http://archive.ubuntu 0.7s
=> [fiware/fast-rtps-examples 4/16] RUN echo "deb http://cn.archive.ubu 0.6s
=> [fiware/fast-rtps-examples 5/16] RUN apt-get -y update 382.9s
=> ERROR [fiware/micro-rtps-examples 6/16] RUN DEBIAN_FRONTEND=noninte 10.1s
------
> [fiware/micro-rtps-examples 6/16] RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q python-software-properties software-properties-common:
#0 3.704 Reading package lists...
#0 9.987 Building dependency tree...
#0 9.988 Reading state information...
#0 9.989 Package python-software-properties is not available, but is referred to by another package.
#0 9.989 This may mean that the package is missing, has been obsoleted, or
#0 9.989 is only available from another source
#0 9.989 However the following packages replace it:
#0 9.989 software-properties-common
#0 9.989
#0 9.989 E: Package 'python-software-properties' has no installation candidate
------
failed to solve: executor failed running [/bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -q python-software-properties software-properties-common]: exit code: 100
Please let me know if you have any advice, such as research methods.
In addition to fixing the environment variables on the host, I also added the environment variables to the Dockerfile and the process proceeded.
ENV http_proxy "http://xxx.xxx.xxx.xxx:8080"
ENV https_proxy "http://xxx.xxx.xxx.xxx:8080"
In addition, added option "--fix-missing" to apt-get upgrade command in Dockerfile.
# Install Java 8
RUN apt-get update && \
apt-get upgrade -y --fix-missing && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:webupd8team/java -y && \
apt-get update && \
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \
apt-get install -y oracle-java8-installer
It's working fine, but now I'm getting the following error:
.....
#0 952.8 software-properties-common is already the newest version.
#0 952.8 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
#0 955.2 gpg: keyring `/tmp/tmpr1tezbuk/secring.gpg' created
#0 955.2 gpg: keyring `/tmp/tmpr1tezbuk/pubring.gpg' created
#0 955.2 gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
#0 956.4 gpg: /tmp/tmpr1tezbuk/trustdb.gpg: trustdb created
#0 956.4 gpg: key EEA14886: public key "Launchpad VLC" imported
#0 956.4 gpg: no ultimately trusted keys found
#0 956.4 gpg: Total number processed: 1
#0 956.4 gpg: imported: 1 (RSA: 1)
#0 956.4 ok
#0 957.1 Get:1 http://ppa.launchpad.net trusty InRelease [15.5 kB]
#0 957.1 Ign http://archive.ubuntu.com trusty InRelease
#0 957.3 Hit http://cn.archive.ubuntu.com trusty-updates InRelease
#0 957.4 Hit http://archive.ubuntu.com trustyRelease.gpg
#0 957.5 Hit http://cn.archive.ubuntu.com trusty-updates/main amd64 Packages
#0 957.6 Hit http://archive.ubuntu.com trusty Release
#0 957.6 Hit http://cn.archive.ubuntu.com trusty-updates/universe amd64 Packages
#0 957.8 Get:2 http://ppa.launchpad.net trusty/main amd64 Packages [20B]
#0 957.9 Hit http://archive.ubuntu.com trusty/main amd64 Packages
#0 957.9 Hit http://cn.archive.ubuntu.com trusty-updates/multiverse amd64 Packages
#0 958.1 Hit http://cn.archive.ubuntu.com trusty-updates/restricted amd64 Packages
#0 958.1 Hit http://archive.ubuntu.com trusty/universe amd64 Packages
#0 958.6 Fetched 15.5kB in 2s (7133B/s)
#0 958.6 Reading package lists...
#0 959.5 Reading package lists...
#0 960.3 Building dependency tree...
#0 960.4 Reading state information...
#0 960.4 E: Unable to locate package oracle-java8-installer
------
failed to solve: executor failed running [/bin/sh -c apt-get update && apt-get upgrade -y --fix-missing && apt-get install -y software-properties-common && add-apt-repository ppa: webupd8team/java -y && apt-get update && echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && apt-get install -y oracle- java8-installer]: exit code: 100
Please let me know if you have any advice on how to make it look like it should be.
Any new information on how to avoid it?
This tutorial is not actively maintained by me.
After running ./services create I got:
Please let me know how I can avoid this.