Bagaimana cara memperbaikinya ketika menginstal klien boneka pada centos 7 dengan dockerfile mendapatkan Kesalahan: Paket: ruby-augeas-0.4.1-3.el6.x86_64


0

Saya mencoba untuk menginstal puppet-clientpada docker centos-latestdengan inidockerfile

# Base OS
FROM centos

# Install puppet
ENV PUPPET_VERSION 3.7.3
RUN rpm --import https://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs && rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
RUN yum install -y yum-utils && yum-config-manager --enable centosplus >& /dev/null
RUN yum install -y puppet-$PUPPET_VERSION

tetapi ketika saya menjalankannya saya dapatkan

---> Package ruby-irb.noarch 0:2.0.0.598-24.el7 will be installed
---> Package ruby-shadow.x86_64 1:2.2.0-2.el6 will be installed
--> Processing Dependency: libruby.so.1.8()(64bit) for package: 1:ruby-shadow-2.2.0-2.el6.x86_64
--> Finished Dependency Resolution
Error: Package: ruby-augeas-0.4.1-3.el6.x86_64 (puppetlabs-deps)
           Requires: libruby.so.1.8()(64bit)
Error: Package: 1:ruby-shadow-2.2.0-2.el6.x86_64 (puppetlabs-deps)
           Requires: libruby.so.1.8()(64bit)
Error: Package: ruby-augeas-0.4.1-3.el6.x86_64 (puppetlabs-deps)
           Requires: ruby(abi) = 1.8
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
INFO[0003] The command [/bin/sh -c yum install -y puppet-$PUPPET_VERSION] returned a non-zero code: 1 

Bagaimana cara memperbaiki dockerfileskrip itu? (Catatan: Saya ingin menggunakan yang terbaru centos)

Jawaban:


0

diselesaikan dengan mengganti:

http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm

dengan:

http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
Dengan menggunakan situs kami, Anda mengakui telah membaca dan memahami Kebijakan Cookie dan Kebijakan Privasi kami.
Licensed under cc by-sa 3.0 with attribution required.