hombrew install show up "curl failed to verify the legitimacy of the server " - homebrew

when i install hombebrew itself,
i keyin
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
in my terminal.
then,
in my terminal pop up:
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

Related

need sudo access when installing homebrew

i type this code in terminal in visual studio code: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
and hit enter and it says "Checking for sudo access (which may request your password)...
Password:
but it doesn't let me type anything.
i am on the administrator account
i cant type anything after password

curl SSL certificate

I have problem with downloading docker on ubuntu server.
if I put :
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
I get :
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
I google it and I try several thinks like:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
sudo apt-get install ca-certificates
but nothing helps,...
if I do
cd /etc/ssl/certs/; wget https://curl.haxx.se/ca/cacert.pem.sha256; shasum -c cacert.pem.sha256; rm -f cacert.pem.sha256
I get :
--2019-06-03 12:19:31-- https://curl.haxx.se/ca/cacert.pem.sha256
Resolving curl.haxx.se (curl.haxx.se)... 151.101.194.49, 151.101.130.49, 151.101.66.49, ...
Connecting to curl.haxx.se (curl.haxx.se)|151.101.194.49|:443... connected.
ERROR: cannot verify curl.haxx.se's certificate, issued by ‘emailAddress=our.email,...OU=..,L=..ST=,..NC=..,O=..C=..’:
Unable to locally verify the issuer's authority.
To connect to curl.haxx.se insecurely, use `--no-check-certificate'.
How do I solve this, and how do I found the certificate that was signed by our email,...

Non zero code returned when installing project docker ubuntu

I tried to install a project from docker and after running the command:
docker-compose -f docker-compose.yml up -d --build
at step 5 I'm receiving a Connection timed out saying:
curl: (7) Failed to connect to download.icu-project.org port 80: Connection timed out
ERROR: Service 'app' failed to build: The command '/bin/sh -c curl -sS -o /tmp/icu.tar.gz -L http://download.icuproject.org/files/icu4c/60.1/icu4c-60_1-src.tgz && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make && make install' returned a non-zero code: 7
I tried running into bash, but when I type 'docker-compose ps' I got no containers so I don't know how to properly fix this.
Have any of you encounter this issue and want to share with me ?
As is evident from the ERROR, the url that's being accessed as part of the docker-compose i.e. http://ftp.lfs-matrix.net/pub/blfs/conglomeration/icu/icu4c-60_1-src.tgz is inaccessible which is why the docker-compose fails with timeout. You can try accessing the URL from the browser and yes its unreachable.
You must change it to something else something like http://ftp.lfs-matrix.net/pub/blfs/conglomeration/icu/. While you do that please make sure that you are indeed downloading the zip from a reliable source.

TightVNC authentication failed, how to get encrypted password?

I'm trying to set RSelenium with docker following these instructions.
In "Remote control/debugging with Windows" I noticed something really strange. I installed TightVNC and set the passwords, but I got "Authentication Failed" while using these passwords. The guide said:
You will be asked for a password which is secret. This can be seen by reading the images Dockerfile:
and there is following code
RUN apt-get update -qqy \
&& apt-get -qqy install \
x11vnc \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p ~/.vnc \
&& x11vnc -storepasswd secret ~/.vnc/passwd
I may be wrong but this seems to me like linux command. Despite of this I tried to paste in docker but I got
bash: apt-get: command not found
Does this guide need to be fixed or am I missing something? Right now I'm unable to connect and complete VNC debugging.
So you got few things wrong conceptually. The guide is absolutely fine. VNC has two parts VNC Server and VNC Viewer. When you installed VNC locally on your system you may have installed the server version which asks you for password. This password is for you system's VNC Server. With that a VNC Client name VNC viewer or something would have been installed also.
Now the docker image that you run hosts a VNC server on port 5901 and the password for connection is secret. So the only thing you need to do is Open VNC Viewer, Connect to :5901. When asked for password enter secret.
The dockerfile was shown to you for explaining how the author got the password and those commands have nothing to do with your system.

Docker installation just downloads index.html file

Following these instructions:
Ubuntu installation
on Ubuntu Server 12.04. I've set my https_proxy in /etc/environment. Next I do:
sudo wget https://get.docker.com/
and the response is "cannot verify get.docker.com's certificate... to connect insecurely use '--no-check-certificate'.
So I do:
sudo wget --no-check-certificate https://get.docker.com/
I'm still getting a message complaining "cannot verify get.docker.com's certificate" and wget downloads the index.html file from get.docker.com rather than an installation package.
I am very new to Linux - please can anyone tell me what I'm doing wrong?
You are doing this:
sudo wget https://get.docker.com/
The instructions to which you linked tell you to do this:
wget -qO- https://get.docker.com/ | sh
That retrieves the shell script and pipes it to the shell for execution. For the record I am morally opposed to this sort of installation, but that's what you need to do to follow those instructions.

Resources