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 リポジトリから永続的に除外できます/etc/yum.repos.d/epel.repo

答え2

EPEL リポジトリを削除しても--disablerep=epel役に立ちませんでした。最終的に を実行したところ、docker pull centos:centos6問題は解決したようです。イメージ内の一時的な問題だったと思いますが、最近のアップデートで修正されました。

関連情報