Unable to install docker 1.5 on ubuntu 14.04 64bit - docker

Currently I have docker 1.0 verion in my vm(Ubuntu 14.04 64bit) I want to upgrade it to latest version(1.5) but facing some issue. Kindly help.
First I tried getting key with below command, it is successful.
sudo apt-key adv --keyserver-options https-proxy="http://p72293:peedeE(6)#172.18.1.38:8080/" --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
Second, I do "sudo apt-get update" but I get below error message for get.docker.com
W: Failed to fetch
https://get.docker.com/ubuntu/dists/docker/main/binary-amd64/Packages
W: Failed to fetch
https://get.docker.com/ubuntu/dists/docker/main/binary-i386/Packages
E: Some index files failed to download. They have been ignored, or old
ones used instead.
Third, I do sudo apt-get install lxc-docker but I get below error.
E: Unable to locate package lxc-docker
Kindly help me to resolve this issue and upgrade to newer version. I want to use --bridge option which is not available in 1.0.
Note: I am behind a proxy. But all required setting is done.

Check the doc for Ubuntu installation at https://docs.docker.com/installation/ubuntulinux/ or you can try the script that guesses your OS and installs curl -sSL https://get.docker.com/ubuntu/ | sudo sh

Are you sure you're using 64-bit ubuntu? I was using 32-bit ubuntu and that was the reason of error. Then I changed it to 64-bit, that was the fix.
Docker requires a 64-bit installation regardless of your Ubuntu version.
Details is here https://docs.docker.com/installation/ubuntulinux/ and here http://blog.marcelotmelo.com/linux/ubuntu/vagrant-and-docker-provisioner/

Related

Trying to download docker on my raspberry pi 4

I'm trying to download docker on my raspberry pi 4 but I keep getting the same error.
The error message I get is:
W: https://deb.nodesource.com/node_14.x/dists/buster/InRelease: No system certificates available. Try installing ca-certificates.
W: https://deb.nodesource.com/node_14.x/dists/buster/Release: No system certificates available. Try installing ca-certificates.
E: The repository 'https://deb.nodesource.com/node_14.x buster Release' no longer has a Release file.
I don't understand this because I've re-installed ca-certificate but that still doesn't fix it.
(Note: I don't know if this means anything but I also get the same error when I run sudo apt update)
Okay I fixed the problem by simple running sudo apt-get install --reinstall ca-certificates

Docker on Debian Stretch gnutls_handshake() failed

I'm trying to install docker on my Stretch Debian.
I Followed the guide but when I use "sudo apt-get update" I get :
https://download.docker.com/linux/debian stretch/stable amd64 Packages
gnutls_handshake() failed: Public key signature verification has
failed.
"curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -"
returned OK
This is a known issue on Debian Stretch installations that have been upgraded from Debian Jessie. The issue is described here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=834724. As described in the Debian bug report, you can fix this by removing the now obsolete library libgnutls-deb0-28.
If you have been a user of deb-multimedia like I have, removing this particular version of libgnutls is not entirely straight-forward because you probably have a version of librtmp1 from deb-multimedia installed that is newer than what is provided by Debian Stretch and that depends on libgnutls-deb0-28. The solution is to first downgrade librtmp1 to the version provided by Stretch and then remove libgnutls:
sudo apt install librtmp1=2.4+20151223.gitfa8646d.1-1
sudo apt remove libgnutls-deb0-28
If you are using aptitude instead of apt then aptitude will automatically suggest to downgrade librtmp1.

centos 7.3 docker-engine conflicts with docker-common-2

After following the official installation document below
https://docs.docker.com/engine/installation/linux/centos/
I still end up with failure with docker-common-2 transaction conflict
Transaction check error:
file /usr/bin/docker from install of docker-engine-1.13.0-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.10.3-59.el7.centos.x86_64
I tried yum remove docker-common-2 immediately but apparently there is no such package found so I yum clean all but the failure is still there.
I had encountered that selinux conflict before and I did remove conflict the package docker-selinux if it is the case.
How can I solve this?
OK I managed to solve it by myself.
I searched for docker-common instead of docker-common-2 and I found that conflict package. It should be installed from centos yum repos so just yum remove -y docker-common to remove it before you install docker-engine
Try the following:
step 1: sudo yum erase docker
step 2: sudo yum clean all
and then, Install the required packages,
step 3: sudo yum install docker-common-2
After remove docker its good to run following
sudo yum autoremove
Remove packages that has not dependencies and can be removed from machine.
"yum autoremove" tries to remove any packages that waren’t installed explicitly by the user and which aren’t required.
Using the flowing command solve the problem, actually it is easier.
curl -fsSL https://get.docker.com/ | sh

erlang is no longer supported by Red Hat Enterprise Linux?

I'm trying installing Erlang on my REHL7.2, but unfortunately I failed. I tried two approaches
First I tried downloading a RPM package from official site of erlang (in fact the rpm package is for CentOS, but there's no RPM package for RHEL anyway), but
error: Failed dependencies:
libwx_baseu-2.8.so.0()(64bit) is needed by esl-erlang-19.0-1.x86_64
libwx_baseu-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-19.0-1.x86_64
Then I tried
$ wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
$ rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
But it failed too because
No package erlang available.
Error: Nothing to do
I wonder whether Erlang is no longer supported by RHEL? Otherwise how can I install Erlang on my RHEL7.2?
One simple solution to install the Erlang Solutions package is install the epel repository:
yum install epel-release
Then
wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
sudo yum install erlang
The epel repo contains the libwx_* libraries required.
As instructed here:
enter link description here
Run the following commands (note: the commands on the above link use R15B01, but in the following commands, I changed it to the last release of Erlang (R15B03) It will take a while to finish with the installation. Run commands line by line
sudo yum install gcc glibc-devel make ncurses-devel openssl-devel autoconf
wget http://erlang.org/download/otp_src_R15B03.tar.gz
tar zxvf otp_src_R15B03.tar.gz
cd otp_src_R15B03
./configure && make && sudo make install
After everything is done, you will be still at otp_src_R15B03 where Erlang is installed. Type erl and Enter, then, it should run and open Erlang prompt. I tried running Erlang from my home directory and from the root by just typing erl and it worked too. This way, Erlang is working good for me. To quit Erlang press CTRL + g then q and Enter
There is another way to install and useful info on this link:
enter link description here
I have figured it out! I found two solutions.
The first solution which is also the easiest way is to install a zero dependency version of erlang, please refer to my another Question. But I only tried this way after installing erlang from source, so if you failed this way, just try the following soltuion.
The other one is to build erlang from source (or by kerl which is essentially the same thing).
Install necessary dependencies:$sudo yum install ncurses-devel openssl-devel *openjdk-devel unixODBC unixODBC-devel
Download source code of erlang, unzip it and cd into the direcotry
sudo ./configure sudo make sudo make install
Please refer to this article.
Thank you everyone!
Try this, worked for me.
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
sudo yum install erlang erlang-nox

Xvfb not found on your system

I try to use Xvfb to make the headless code run. However, I encountered the problem that "Xvfb not found on your system" when I tried to run my ruby code. Then I tried to install Xvfb using
sudo apt-get install xvfb
However, "apt-get: command not found" is showed. Thus, I have not idea what should be installed to avoid the original Xvfb error. Any helps? Thank you.
Old question, but found it will trying to find the apt-get commands. The command not found is likely because you are not on a debian system. So you should probably be using yum.
Some potentially useful links:
https://serverfault.com/questions/344793/install-xvfb-via-yum-yum-repository-for-xvfb
How to install Xvfb (X virtual framebuffer) on Redhat 6.5?
In CentOS 7, the following command will install it:
$ sudo yum install xorg-x11-server-Xvfb

Resources