Can't install docker on amazon linux instance - linux

My instance is on this AMI: amzn2-ami-hvm-2.0.20191116.0-x86_64-gp2 (ami-01f14919ba412de34)
I want to install docker following this document so here is the output of my commands:
[ec2-user#ip-10-193-192-42 ~]$ sudo amazon-linux-extras install docker
Installing docker
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Cleaning repos: amzn2-core amzn2extra-docker docker-ce-stable
12 metadata files removed
6 sqlite files removed
0 metadata files removed
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 2.4 kB 00:00
amzn2extra-docker | 1.3 kB 00:00
docker-ce-stable | 3.5 kB 00:00
(1/6): amzn2-core/2/x86_64/group_gz | 2.6 kB 00:00
(2/6): amzn2-core/2/x86_64/updateinfo | 174 kB 00:00
(3/6): docker-ce-stable/x86_64/updateinfo | 55 B 00:00
(4/6): docker-ce-stable/x86_64/primary_db | 37 kB 00:00
(5/6): amzn2extra-docker/2/x86_64/primary_db | 59 kB 00:00
(6/6): amzn2-core/2/x86_64/primary_db | 36 MB 00:00
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 0:18.09.9ce-2.amzn2 will be installed
--> Processing Dependency: runc = 1.0.0 for package: docker-18.09.9ce-2.amzn2.x8 6_64
--> Processing Dependency: containerd = 1.2.6 for package: docker-18.09.9ce-2.am zn2.x86_64
--> Processing Dependency: pigz for package: docker-18.09.9ce-2.amzn2.x86_64
--> Processing Dependency: libcgroup for package: docker-18.09.9ce-2.amzn2.x86_6 4
--> Running transaction check
---> Package containerd.io.x86_64 0:1.2.10-3.2.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.i o-1.2.10-3.2.el7.x86_64
---> Package libcgroup.x86_64 0:0.41-21.amzn2 will be installed
---> Package pigz.x86_64 0:2.3.4-1.amzn2.0.1 will be installed
--> Finished Dependency Resolution
Error: Package: containerd.io-1.2.10-3.2.el7.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2:2.74
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Installation failed. Check that you have permissions to install.
[ec2-user#ip-10-193-192-42 ~]$
How to get this work?
EDIT
My instance is in an Autoscaling GRoup so I terminated the previous one and I tried to do docker install in the new one:
I got to install docker but when I run the command:
sudo service docker start
I logged out from the instance and I got an error window:
network error: software caused connection abort
Any clue why is this happening ?

Just tried to install Docker to the exact same AMI and all went well. I guess you’re experiencing issues because of extra repo named docker-ce-stable. You don’t need it on Amazon Linux 2 AMI, so, as soon as you got SSH access to your new instance, execute:
sudo amazon-linux-extras install docker
and you should be ok.

got the same problem, but fixed with different way.
Check in your Amazon Linux 2 box, if there is a file name
/etc/yum.repos.d/docker-ce
You should delete it. Then it would be fine to run the install command
sudo amazon-linux-extras install docker

Related

Amazon Linux dependency error on yum update

When running:
sudo yum update
I get:
Loaded plugins: amzn_workspaces_filter_updates, halt_os_update_check, priorities, update-motd
remi-php74 | 3.0 kB 00:00:00
18186 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package python-s3transfer.noarch 0:0.1.13-1.0.1.el7 will be obsoleting
---> Package python2-s3transfer.noarch 0:0.3.3-1.amzn2.0.1 will be obsoleted
--> Processing Dependency: python2-s3transfer for package: awscli-1.18.147-1.amzn2.0.1.noarch
--> Processing Dependency: python2-s3transfer >= 0.3.0 for package: python2-boto3-1.15.6-1.amzn2.0.1.noarch
--> Finished Dependency Resolution
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I tried "rpm -Va --nofiles --nodigest", but doesn't change anything (yum update throws the same response).
If I try:
sudo yum update --skip-broken
I get:
Loaded plugins: amzn_workspaces_filter_updates, halt_os_update_check, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
firefox | 2.9 kB 00:00:00
workspaces-internal-dependencies | 2.2 kB 00:00:00
18186 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package python-s3transfer.noarch 0:0.1.13-1.0.1.el7 will be obsoleting
---> Package python2-s3transfer.noarch 0:0.3.3-1.amzn2.0.1 will be obsoleted
--> Processing Dependency: python2-s3transfer for package: awscli-1.18.147-1.amzn2.0.1.noarch
--> Processing Dependency: python2-s3transfer >= 0.3.0 for package: python2-boto3-1.15.6-1.amzn2.0.1.noarch
Packages skipped because of dependency problems:
python-s3transfer-0.1.13-1.0.1.el7.noarch from ol7_latest
I am not a Linux expert, and I do not know how to get past this error. What should I remove or add and how?

Where do I find the “libgconf-2.so.4()(64bit)” and “xdg-utils” dependneices on Amazon Linux?

I’m using Amazon Linux (cannot change this distro at this time) and trying to install Google Chrome (for purposes of running a Selenium server in headless mode) on our EC2 box. I am getting the below errors. Does anyone know where I can find the “libgconf-2.so.4()(64bit)” and “xdg-utils” dependencies?
davea#mydevbox ~$ sudo yum install google-chrome-stable
sudo password for davea:
Loaded plugins: fastestmirror, priorities, update-motd, upgrade-helper
Loading mirror speeds from cached hostfile
* amzn-main: packages.us-east-1.amazonaws.com
* amzn-updates: packages.us-east-1.amazonaws.com
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:49.0.2623.112-1 will be installed
--> Processing Dependency: xdg-utils for package: google-chrome-stable-49.0.2623.112-1.x86_64
--> Processing Dependency: libgconf-2.so.4()(64bit) for package: google-chrome-stable-49.0.2623.112-1.x86_64
--> Finished Dependency Resolution
Error: Package: google-chrome-stable-49.0.2623.112-1.x86_64 (google-chrome)
Requires: libgconf-2.so.4()(64bit)
Error: Package: google-chrome-stable-49.0.2623.112-1.x86_64 (google-chrome)
Requires: xdg-utils
You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
2000:jdk-1.6.0_45-fcs.x86_64 is a duplicate with 2000:jdk-1.6.0_35-fcs.x86_64
2000:jdk-1.6.0_65-fcs.x86_64 is a duplicate with 2000:jdk-1.6.0_45-fcs.x86_64
Thanks, - Dave
yum install libgconf2-4
yum install xdg-utils

How to install GitLab on CentOS 6 running WHM?

I am trying to install GitLab on my dedicated server with no luck.
Server info:
CENTOS 6.7 x86_64 standard
WHM 11.52.1 (build 2)
I tried this guide, but I keep getting the following error:
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.ca.planethoster.net
* epel: mirrors.mit.edu
* extras: centos.mirror.iweb.ca
* updates: centos.mirrors.atwab.net
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.6.6-6.el6_7.1 will be installed
--> Processing Dependency: mysql-libs for package: 2:postfix-2.6.6-6.el6_7.1.x86_64
--> Finished Dependency Resolution
Error: Package: 2:postfix-2.6.6-6.el6_7.1.x86_64 (updates)
Requires: mysql-libs
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
When I run the following command:
sudo yum install postfix
I get the following error:
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink | 12 kB 00:00
* base: centos.mirror.iweb.ca
* epel: mirrors.mit.edu
* extras: centos.mirrors.atwab.net
* updates: centos.mirror.netelligent.ca
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.8 MB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 2.6 MB 00:00
virtualbox/signature | 198 B 00:00
virtualbox/signature | 951 B 00:00 ...
No package mysql-libs available.
Error: Nothing to do
When I run the following command:
sudo yum install mysql-libs
What I eventually did was skip the installation of postfix. I skipped it like so:
sudo yum install --skip-broken curl openssh-server openssh-clients postfix cronie
Then I edited the gitlab.rb config file using something like nano:
nano /etc/gitlab/gitlab.rb
and changed the external_url' and added to it a random unused port number:
external_url 'http://example.com:8443/'
then run
sudo gitlab-ctl reconfigure
for the change to take effect.
Voila it works.
It looks like a common problem with CentOS. Similar question has been answered here on fixing the yum install postfix and missing mysql-libs.
NOTE: Since I can't comment I will provide this as an answer and update based on any comments.
I suggest you use the Bitnami one-click install GitLab. It's very easy to install GitLab.
More info : https://bitnami.com/stack/gitlab
and Wiki is : https://wiki.bitnami.com/Applications/BitNami_GitLab#How_to_change_the_default_address_for_GitLab.3f

Installing R on RHEL 6

my questions is similar to this one -
Problems installing R on Linux CentOS 6.3
I installed epel, but when I run yum install R, I get the two dependency problems -
Error: Package: R-core-3.0.1-2.el6.x86_64 (epel)
Requires: libjpeg.so.62(LIBJPEG_6.2)(64bit)
Error: Package: R-core-devel-3.0.1-2.el6.x86_64 (epel)
Requires: texinfo-tex
I tried installing texinfo-tex using the rpm file from -
http://rpm.pbone.net/index.php3/stat/4/idpl/15993086/dir/scientific_linux_6/com/texinfo-tex-4.13a-8.el6.x86_64.rpm.html
However, this takes me into a long tree of missing dependencies. I downloaded and tried installing 5 different rpm files and each time there were some missing dependencies. Ans this was just one branch of this tree of dependencies. I figured, there has got to be a better way. Can some one help? This has been driving me nuts.
Edit: Another option I'm trying is building R from source. Not sure if this will work given the missing packages though. For now however, it says it can't find a fortran compiler ("No F77 compiler found"). I installed gcc, thinking that it would have one, but apparently not.
on RHEL6.4 do
subscription-manager repos --enable rhel-6-server-optional-rpms
yum install texinfo-tex
rpm -ivh http://mirror.unl.edu/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install R
cheers Marten
I have the exact same problem and have spent about 3 hours attempting to find a yum repository out there for RHEL 6 that can solve this problem. So far, it appears that whoever added this dependency didn't actually try and install it once they added the dependency. These dependency mappings don't appear to exist anywhere in any repo that I can find.
…
So I got frustrated and tried this command
yum install texinfo-tex-4.13a-8.el6.x86_64.rpm
and it worked
Loaded plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
CentALT | 951 B 00:00
elrepo | 2.9 kB 00:00
epel/metalink | 13 kB 00:00
epel-testing/metalink | 13 kB 00:00
mongodb | 951 B 00:00
puppetlabs-enterprise-extras | 1.9 kB 00:00
remi | 2.9 kB 00:00
rhel-source | 2.5 kB 00:00
rhel-x86_64-server-6 | 1.8 kB 00:00
rpmforge | 1.9 kB 00:00
scl_python27 | 2.9 kB 00:00
scl_ruby193 | 2.9 kB 00:00
Setting up Install Process
Examining texinfo-tex-4.13a-8.el6.x86_64.rpm: texinfo-tex-4.13a-8.el6.x86_64
Marking texinfo-tex-4.13a-8.el6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package texinfo-tex.x86_64 0:4.13a-8.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
texinfo-tex x86_64 4.13a-8.el6 /texinfo-tex-4.13a-8.el6.x86_64 387 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total size: 387 k
Installed size: 387 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : texinfo-tex-4.13a-8.el6.x86_64 1/1
Verifying : texinfo-tex-4.13a-8.el6.x86_64 1/1
Installed:
texinfo-tex.x86_64 0:4.13a-8.el6
Complete!
# yum install R
Loaded plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package R.x86_64 0:3.0.1-2.el6 will be installed
--> Processing Dependency: R-devel = 3.0.1-2.el6 for package: R-3.0.1-2.el6.x86_64
--> Running transaction check
---> Package R-devel.x86_64 0:3.0.1-2.el6 will be installed
--> Processing Dependency: R-java-devel = 3.0.1-2.el6 for package: R-devel-3.0.1-2.el6.x86_64
--> Processing Dependency: R-core-devel = 3.0.1-2.el6 for package: R-devel-3.0.1-2.el6.x86_64
--> Running transaction check
---> Package R-core-devel.x86_64 0:3.0.1-2.el6 will be installed
---> Package R-java-devel.x86_64 0:3.0.1-2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
R x86_64 3.0.1-2.el6 epel 19 k
Installing for dependencies:
R-core-devel x86_64 3.0.1-2.el6 epel 90 k
R-devel x86_64 3.0.1-2.el6 epel 19 k
R-java-devel x86_64 3.0.1-2.el6 epel 19 k
Transaction Summary
================================================================================
Install 4 Package(s)
Total download size: 147 k
Installed size: 326 k
Is this ok [y/N]:
Installing R on 6.6 RHEL 64 bit machine
After going through many pages i found this steps, so thought to share as a quick steps:
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
"It's a package which is preferred for RHEL machine."
sudo yum install tcl
“The Tcl package contains the Tool Command Language, a robust general-purpose scripting language. This package is known to build and work properly using an LFS-7.7 platform. This package is known to build and work properly using the gcc-5 compiler.”
sudo yum clean all
“Cleans the yum cache”
sudo yum install R
“For installing R”
Try this one
rpm -ivh http://mirror.unl.edu/epel/6/x86_64/epel-release-6-7.noarch.rpm
The second is:
#yum install R
Thanks & Regards,
Alok
Try sudo yum groupinstall “Development Tools”
This installs development tools which includes all compilers.
I am also trying to install the same. Tried building from source. Now trying to build with yum. Let's see how it goes
"I tried this.. it said "package epel-release-6-8.noarch is already installed". "
But not enabled... See: https://bluehatrecord.wordpress.com/2014/10/13/installing-r-on-red-hat-enterprise-linux-6-5/
I was having the same issue, And many seem to be getting stuck on this.
The dependencies are available in the RedHat Repo [rhel-6-server-optional-rpms]. Enable the repo and R should install.

How can I solve this Sphinx search dependency issue?

I'm trying to install Sphinx search on a CentOS VPS via SSH but I keep getting dependency issues that I can't seem to resolve.
Here's the OS I'm using:
cat /etc/redhat-release
CentOS 6.4 (Final)
uname -a
Linux host.example.com 2.6.32-042stab074.10 #1 SMP Fri Mar 1 09:18:44 MSK 2013 i686 i686 i386 GNU/Linux
This to me looks like I need the 32-bit CentOS 6 rpm so I tried to install it with this command:
sudo yum install http://sphinxsearch.com/files/sphinx-2.0.8-1.rhel6.i386.rpm
but I get the following error message:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.advancedhosters.com
* extras: centos.mirror.constant.com
* updates: mirror.lug.udel.edu
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
updates | 3.4 kB 00:00
Setting up Install Process
sphinx-2.0.8-1.rhel6.i386.rpm | 5.6 MB 00:30
Examining /var/tmp/yum-root-oMekz6/sphinx-2.0.8-1.rhel6.i386.rpm: sphinx-2.0.8-1.rhel6.i386
Marking /var/tmp/yum-root-oMekz6/sphinx-2.0.8-1.rhel6.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package sphinx.i386 0:2.0.8-1.rhel6 will be installed
--> Processing Dependency: libmysqlclient.so.16 for package: sphinx-2.0.8-1.rhel6.i386
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: sphinx-2.0.8-1.rhel6.i386
--> Finished Dependency Resolution
Error: Package: sphinx-2.0.8-1.rhel6.i386 (/sphinx-2.0.8-1.rhel6.i386)
Requires: libmysqlclient.so.16
Error: Package: sphinx-2.0.8-1.rhel6.i386 (/sphinx-2.0.8-1.rhel6.i386)
Requires: libmysqlclient.so.16(libmysqlclient_16)
You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
frontpage-2002-SR1.2.i386 has missing requires of libexpat.so.0
sendmail-cf-8.14.4-8.el6.noarch has missing requires of sendmail = ('0', '8.14.4', '8.el6')
No matter what I try I always seem to be missing libmysqlclient.so.16.
Any idea where I can find this package?
yum install mysql-devel
should do it.
Install the remi repository:
[http://blog.famillecollet.com/pages/Config-en]
Enterprise Linux 6 (with EPEL) i386 or x86_64
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
then install compat-mysql51
yum --enablerepo=remi install compat-mysql51
then install sphinx from the rpm downloaded
yum localinstall sphinx-2.1.2-1.rhel6.SYSTEM-VERSION.rpm
Use the SphinxSearch docker files (docker hub link) to easily install SphinxSearch.
Grab it:
docker pull leodido/sphinxsearch:latest
If you want to see how to compile from source (which I recommend as the better mode to install SphinxSearch), look into them - e.g., here.

Resources