Repository navigation
Description
I am attempting to install https://get.docker.com/rpm/1.7.0/centos-7/RPMS/x86_64/docker-engine-1.7.0-1.el7.centos.x86_64.rpm according to the docs at docs.docker.com using yum localinstall docker-engine-1.7.0-1.el7.centos.x86_64.rpm on a freshly build CentOS7 (64bit) box, but it is unable to resolve certain dependencies.
docker version: Attempting to install 1.7.0
docker info: N/A
uname -a: Linux build03.weikinhuang.com 3.10.0-229.4.2.el7.x86_64 #1 SMP Wed May 13 10:06:09 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/centos-release: CentOS Linux release 7.1.1503 (Core)
Environment details (AWS, VirtualBox, physical, etc.):
Physical
How reproducible:
Attempted on several CentOS 7 machines. All the same issues
Steps to Reproduce:
curl -O -sSL https://get.docker.com/rpm/1.7.0/centos-7/RPMS/x86_64/docker-engine-1.7.0-1.el7.centos.x86_64.rpmyum localinstall docker-engine-1.7.0-1.el7.centos.x86_64.rpm
Actual Results:
yum localinstall docker-engine-1.7.0-1.el7.centos.x86_64.rpm
Loaded plugins: fastestmirror
Examining docker-engine-1.7.0-1.el7.centos.x86_64.rpm: docker-engine-1.7.0-1.el7.centos.x86_64
Marking docker-engine-1.7.0-1.el7.centos.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package docker-engine.x86_64 0:1.7.0-1.el7.centos will be installed
--> Processing Dependency: libc.so.6 for package: docker-engine-1.7.0-1.el7.centos.x86_64
Loading mirror speeds from cached hostfile
* base: mirrors.centos.webair.com
* epel: mirror.us.leaseweb.net
* extras: mirror.vcu.edu
* updates: mirror.netdepot.com
--> Processing Dependency: libpthread.so.0 for package: docker-engine-1.7.0-1.el7.centos.x86_64
--> Processing Dependency: libsqlite3.so.0 for package: docker-engine-1.7.0-1.el7.centos.x86_64
--> Finished Dependency Resolution
Error: Package: docker-engine-1.7.0-1.el7.centos.x86_64 (/docker-engine-1.7.0-1.el7.centos.x86_64)
Requires: libpthread.so.0
Error: Package: docker-engine-1.7.0-1.el7.centos.x86_64 (/docker-engine-1.7.0-1.el7.centos.x86_64)
Requires: libsqlite3.so.0
Error: Package: docker-engine-1.7.0-1.el7.centos.x86_64 (/docker-engine-1.7.0-1.el7.centos.x86_64)
Requires: libc.so.6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
yum localinstall docker-engine-1.7.0-1.el7.centos.x86_64.rpm --skip-broken
Loaded plugins: fastestmirror
Examining docker-engine-1.7.0-1.el7.centos.x86_64.rpm: docker-engine-1.7.0-1.el7.centos.x86_64
Marking docker-engine-1.7.0-1.el7.centos.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package docker-engine.x86_64 0:1.7.0-1.el7.centos will be installed
--> Processing Dependency: libc.so.6 for package: docker-engine-1.7.0-1.el7.centos.x86_64
Loading mirror speeds from cached hostfile
* base: mirrors.centos.webair.com
* epel: mirror.us.leaseweb.net
* extras: mirror.vcu.edu
* updates: mirror.netdepot.com
--> Processing Dependency: libpthread.so.0 for package: docker-engine-1.7.0-1.el7.centos.x86_64
--> Processing Dependency: libsqlite3.so.0 for package: docker-engine-1.7.0-1.el7.centos.x86_64
Packages skipped because of dependency problems:
docker-engine-1.7.0-1.el7.centos.x86_64 from /docker-engine-1.7.0-1.el7.centos.x86_64
Expected Results:
Expects to use existing already installed dependencies.
Additional info:
[root@docker003 ~]$ yum provides '*/libpthread.so.0'
glibc-2.17-78.el7.x86_64 : The GNU libc libraries
Repo : @base
Matched from:
Filename : /lib64/libpthread.so.0
[root@docker003 ~]$ yum provides '*/libc.so.6'
glibc-2.17-78.el7.x86_64 : The GNU libc libraries
Repo : @base
Matched from:
Filename : /lib64/libc.so.6
[root@docker003 ~]$ yum install glibc
Package glibc-2.17-78.el7.x86_64 already installed and latest version
Nothing to do
[root@docker003 ~]$ yum provides '*/libsqlite3.so.0'
sqlite-3.7.17-4.el7.x86_64 : Library that implements an embeddable SQL database engine
Repo : @anaconda
Matched from:
Filename : /usr/lib64/libsqlite3.so.0
[root@docker003 ~]$ yum install sqlite
Package sqlite-3.7.17-4.el7.x86_64 already installed and latest version
Nothing to do
Activity
henrysher commentedon Jun 21, 2015
@weikinhuang could u plz show your yum conf and enabled yum repos? I have verified it in my fresh-installed centos7, no such problem, it works well as shown in below. It seems docker-engine rpm needs the dependencies from i686 packages like glibc, libgcc, libstdc++, sqilte, etc.
weikinhuang commentedon Jun 21, 2015
@henrysher Ah, why would this docker binary be compiled needing 32bit dependencies. I explicitly disable installing any
i*86packages on my systems. Myyum.confcontainsexclude=*.i386 *.i586 *.i686which would explain my issue. But as a separate issue. The docker binaries/rpm should be compiled needing the 32bit dependencies.I guess I will wait until 1.7.0 enters the extras repo in centos or perhaps 1.7.1 will be compiled properly.
thresheek commentedon Jun 22, 2015
The RPM package has hard-coded Requires, which are obviously wrong for a 64-bit system:
https://github.com/docker/docker/blob/master/hack/make/.build-rpm/docker-engine.spec#L36
Compare that to, say, glibc:
$ rpm -q --provides glibc | grep libc.so.6
libc.so.6()(64bit)
libc.so.6(GLIBC_2.10)(64bit)
libc.so.6(GLIBC_2.11)(64bit)
libc.so.6(GLIBC_2.12)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.2.6)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.2)(64bit)
libc.so.6(GLIBC_2.3.3)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.5)(64bit)
libc.so.6(GLIBC_2.6)(64bit)
libc.so.6(GLIBC_2.7)(64bit)
libc.so.6(GLIBC_2.8)(64bit)
libc.so.6(GLIBC_2.9)(64bit)
salimane commentedon Jun 28, 2015
👍
houqianming commentedon Jul 1, 2015
@weikinhuang @thresheek I got the same error, and there is no exclude config in my yum.conf,how to work around this problem? my system is 64bit too
LK4D4 commentedon Jul 1, 2015
Dunno who to ping, so I ping @jfrazelle and @vbatts :)
Djelibeybi commentedon Jul 7, 2015
Same issue on the CentOS7 build, which is unsurprising given they use the same underlying specfile.
jessfraz commentedon Jul 8, 2015
ping @vbatts idk how this is happening
jessfraz commentedon Jul 8, 2015
I cannot reproduce
Djelibeybi commentedon Jul 8, 2015
@jfrazelle interesting. Do you perhaps already have the i686 RPMs installed? It's 100% reproducible on a minimal install of Oracle Linux 7 using the current stable RPM (1.7.0).
jessfraz commentedon Jul 8, 2015
i have tried on all centos version and all fedora versions
On Tue, Jul 7, 2015 at 5:19 PM, Avi Miller [email protected] wrote:
vbatts commentedon Jul 8, 2015
The tab is open in my browser, but I didn't investigate it today. It's on
the docket for tomorrow.
On Jul 7, 2015 20:12, "Jessie Frazelle" [email protected] wrote:
Djelibeybi commentedon Jul 8, 2015
RPM AutoRequires should automatically pull in the necessary packages. I'm testing this theory now.
weikinhuang commentedon Jul 8, 2015
Happens when attempting to install via centos:latest docker image as well
jessfraz commentedon Jul 8, 2015
what makes no sense are the deps we dont even specify...
On Tue, Jul 7, 2015 at 6:01 PM, Wei Kin Huang [email protected]
wrote:
vbatts commentedon Jul 8, 2015
Ah. This looks like a meta-requires issue. The devicemapper libs are
requiring libc, which is fine and expected, but why it thinks the i686
libc satisfies this, will take a little investigation. Cc @lsm5 did you
have to deal with this in building the rpm spec for centos?
On Jul 7, 2015 21:06, "Jessie Frazelle" [email protected] wrote:
Djelibeybi commentedon Jul 8, 2015
Those are the dependencies for the ones you do. The yum output is pretty clear on the dependency chain. I think I've got a fix (removing the specific dependency calls and letting rpmbuild auto-detect the dependencies), but I need time to let all the builds run to test the output.
Djelibeybi commentedon Jul 8, 2015
Ok, have fixed it for C7/OL7. Now I need to run the same fix across all the RPM distros to make sure it still works on all of them. See you in a few hours. :)
lsm5 commentedon Jul 8, 2015
looking at the fedora spec file, lines 38-43 are probably not required, maybe try building without those? i'll look deeper and post if i see anything else.
Update:
Requires: libcgroupneeded for 0%{?centos} <= 6Update2: my 1337 markdown skills lol
lsm5 commentedon Jul 8, 2015
looks like @Djelibeybi has a PR going for that already, nvm me :)
jessfraz commentedon Jul 10, 2015
fixed by #14456