Docker on Debian Stretch gnutls_handshake() failed - docker

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.

Related

Package 'cgroupfs-mount' has no installation candidate

I'm trying to install docker ce on wsl on windows home version 17134.765 (18.3). I'm following the directions in the screenshot after installing wsl with ubuntu 18.04 from https://github.com/Microsoft/WSL/issues/2291#issuecomment-477632663. It seems to be working until the line:
~$ sudo apt -y install cgroupfs-mount
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package cgroupfs-mount is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'cgroupfs-mount' has no installation candidate
How can I get this working?
The same issue. But I found cgroupfs-mount is not necessary. I run the follow command, then start docker successfully!
sudo chmod -R 777 /var/run/docker.sock

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

How to install the latest Docker .deb package?

On our production Ubuntu servers we are not allowed to make changes to the apt sources lists.
So, using the script located at https://get.docker.com/ubuntu/ is unfortunately not an option for me. Instead I need to download the docker .deb package for ubuntu and install it manually using dpkg.
However the docker installation documentation here: https://docs.docker.com/installation/ubuntulinux/#installing-docker-on-ubuntu does not detail how to get the deb package directly. Any ideas?
I ended up installing docker like so using direct deb package downloads:
#!/bin/bash
docker_version=1.6.2
get_docker=https://get.docker.io/ubuntu/pool/main/l
for package in lxc-docker lxc-docker-$docker_version; do
deb=${package}_${docker_version}_amd64.deb
curl -s $get_docker/$package/$deb -o $deb
done
sudo dpkg -i lxc-docker_${docker_version}_amd64.deb lxc-docker-${docker_version}_${docker_version}_amd64.deb
(Thanks to #eldos for pointing me in the right direction)
Latest docker packages (post 1.9) are now avaiable at https://apt.dockerproject.org/repo/pool/main/d/docker-engine/
You can download the one that suits your OS & architecture from here and install with 'sudo dpkg -i < package_name >'

Unable to install docker 1.5 on ubuntu 14.04 64bit

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/

php55w not installed, CentOS 6.5

I am installing php55 based on the instructions here: https://webtatic.com/packages/php55/
after I run the "yum install php55w", it says NO package,
then I tried this command to list: "yum --enablerepo=webtatic list | grep php", I got this list which does not make any sense:
cups-php.x86_64 1:1.4.2-52.el6_5.2 updates
eclipse-phpeclipse.noarch 1.2.1-6.el6 epel
graphviz-php.x86_64 2.26.0-10.el6 base
nntpgrab-php.x86_64 0.7.2-1.el6 epel
remctl-php.x86_64 3.8-2.el6 epel
rrdtool-php.x86_64 1.3.8-6.el6 base
sphinx-php.x86_64 2.0.8-1.el6 epel
uuid-php.x86_64 1.6.1-10.el6 base
can any one help?
this not not work for me either:
php55w-mysql not listed in webtatic repo
The guide you linked to has the repo from el5, which would be CentOS 5. If you install the webtatic repo for CentOS 6 instead, it will work, i.e.
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
and then install PHP 5.5 and any other modules, e.g.
yum install php55w php55w-{ldap,intl,xml,gd,pdo,pgsql}

Resources