CentOS:yumを使用してgitをインストールすると、glibcにインストールされているバージョンより前のバージョンのglibc-commonが必要であることを示すメッセージが表示されます。

CentOS:yumを使用してgitをインストールすると、glibcにインストールされているバージョンより前のバージョンのglibc-commonが必要であることを示すメッセージが表示されます。

DockerがCentOS 6を使用しているときにインストールすると、git次の依存関係エラーが発生します。

Error: Package: glibc-2.12-1.166.el6_7.7.i686 (updates)
           Requires: glibc-common = 2.12-1.166.el6_7.7
           Installed: glibc-common-2.12-1.192.el6.x86_64 (@CR/6.7)
               glibc-common = 2.12-1.192.el6
           Available: glibc-common-2.12-1.166.el6.x86_64 (base)
               glibc-common = 2.12-1.166.el6
           Available: glibc-common-2.12-1.166.el6_7.1.x86_64 (updates)
               glibc-common = 2.12-1.166.el6_7.1
           Available: glibc-common-2.12-1.166.el6_7.3.x86_64 (updates)
               glibc-common = 2.12-1.166.el6_7.3
           Available: glibc-common-2.12-1.166.el6_7.7.x86_64 (updates)
               glibc-common = 2.12-1.166.el6_7.7

You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Service 'docker-project' failed to build: The command '/bin/sh -c yum install -y \
    java-1.8.0-openjdk-devel.x86_64 \
    unzip \
    git \
    && yum clean all' returned a non-zero code: 1

数日前に動作しましたが、何も変更されませんでした。 CentOSリポジトリはどうなりましたか?

ちなみにこれは私のものですDockerfile

FROM centos:6
RUN yum install -y \
        java-1.8.0-openjdk-devel.x86_64 \
        unzip \
        git \
    && yum clean all

ベストアンサー1

EPELリポジトリがアクティブになるたびに、いくつかの競合が発生します。git次のコマンドを使用してインストールしてみてください。

yum install git --disablerepo=epel

exclude=git*ファイルにgitを追加すると、EPELリポジトリからgitを永久に除外できます/etc/yum.repos.d/epel.repo

おすすめ記事