ページの先頭行へ戻る
Enterprise Service Development Platform V1.2.0 トラブルシューティング集
FUJITSU Software

1.13 ローカルリポジトリ利用時にインストールに失敗する

■事象

オフライン環境下などで、ローカルリポジトリを使用する状態で本製品をインストールした場合、使用したローカルリポジトリによっては、パッケージ競合のエラーとなる場合があります。

TASK [yum] *********************************************************************
fatal: [172.20.0.23]: FAILED! => {"changed": false, "changes": {"installed": ["docker"]}, "msg": "Error: Package: policycoreutils-python-2.5-29.el7.x86_64 (RHEL7-Server-DVD)\n           Requires: policycoreutils = 2.5-29.el7\n           Installed: policycoreutils-2.5-29.el7_6.1.x86_64 (@rhui-rhel-7-server-rhui-eus-rpms)\n               policycoreutils = 2.5-29.el7_6.1\n           Available: policycoreutils-2.5-29.el7.x86_64 (RHEL7-Server-DVD)\n               policycoreutils = 2.5-29.el7\n", "rc": 1, "results": ["Loaded plugins: langpacks, product-id, search-disabled-repos\nResolving Dependencies\n--> Running transaction check\n---> Package docker.x86_64 2:1.13.1-108.git4ef4b30.el7 will be installed\n--> Processing Dependency: docker-common = 2:1.13.1-108.git4ef4b30.el7 for package: 2:docker-1.13.1-108.git4ef4b30.el7.x86_64\n--> Processing Dependency: docker-client = 2:1.13.1-108.git4ef4b30.el7 for package: 2:docker-1.13.1-108.git4ef4b30.el7.x86_64\n--> Running transaction check\n---> Package docker-client.x86_64 2:1.13.1-108.git4ef4b30.el7 will be installed\n---> Package docker-common.x86_64 2:1.13.1-108.git4ef4b30.el7 will be installed\n--> Processing Dependency: docker-rhel-push-plugin = 2:1.13.1-108.git4ef4b30.el7 for package: 2:docker-common-1.13.1-108.git4ef4b30.el7.x86_64\n--> Processing Dependency: skopeo-containers >= 1:0.1.26-2 for package: 2:docker-common-1.13.1-108.git4ef4b30.el7.x86_64\n--> Processing Dependency: oci-umount >= 2:2.3.3-3 for package: 2:docker-common-1.13.1-108.git4ef4b30.el7.x86_64\n--> Processing Dependency: oci-systemd-hook >= 1:0.1.4-9 for package: 2:docker-common-1.13.1-108.git4ef4b30.el7.x86_64\n--> Processing Dependency: oci-register-machine >= 1:0-5.13 for package: 2:docker-common-1.13.1-108.git4ef4b30.el7.x86_64\n--> Processing Dependency: container-storage-setup >= 0.9.0-1 for package: 2:docker-common-1.13.1-108.git4ef4b30.el7.x86_64\n--> Processing Dependency: container-selinux >= 2:2.51-1 for package: 2:docker-common-1.13.1-108.git4ef4b30.el7.x86_64\n--> Processing Dependency: atomic-registries for package: 2:docker-common-1.13.1-108.git4ef4b30.el7.x86_64\n--> Running transaction check\n---> Package atomic-registries.x86_64 1:1.22.1-29.gitb507039.el7 will be installed\n--> Processing Dependency: python-pytoml for package: 1:atomic-registries-1.22.1-29.gitb507039.el7.x86_64\n---> Package container-selinux.noarch 2:2.107-3.el7 will be installed\n--> Processing Dependency: policycoreutils-python for package: 2:container-selinux-2.107-3.el7.noarch\n---> Package container-storage-setup.noarch 0:0.11.0-2.git5eaf76c.el7 will be installed\n---> Package containers-common.x86_64 1:0.1.37-3.el7 will be installed\n---> Package docker-rhel-push-plugin.x86_64 2:1.13.1-108.git4ef4b30.el7 will be installed\n---> Package oci-register-machine.x86_64 1:0-6.git2b44233.el7 will be installed\n---> Package oci-systemd-hook.x86_64 1:0.2.0-1.git05e6923.el7_6 will be installed\n---> Package oci-umount.x86_64 2:2.5-3.el7 will be installed\n--> Running transaction check\n---> Package policycoreutils-python.x86_64 0:2.5-29.el7 will be installed\n--> Processing Dependency: policycoreutils = 2.5-29.el7 for package: policycoreutils-python-2.5-29.el7.x86_64\n--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-29.el7.x86_64\n--> Processing Dependency: libsemanage-python >= 2.5-14 for package: policycoreutils-python-2.5-29.el7.x86_64\n--> Processing Dependency: setools-libs >= 3.3.8-4 for package: policycoreutils-python-2.5-29.el7.x86_64\n--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-29.el7.x86_64\n--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-29.el7.x86_64\n--> Processing Dependency: libcgroup for package: policycoreutils-python-2.5-29.el7.x86_64\n--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-29.el7.x86_64\n--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-29.el7.x86_64\n--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-29.el7.x86_64\n--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-29.el7.x86_64\n--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-29.el7.x86_64\n---> Package python-pytoml.noarch 0:0.1.14-1.git7dea353.el7 will be installed\n--> Running transaction check\n---> Package audit-libs-python.x86_64 0:2.8.4-4.el7 will be installed\n---> Package checkpolicy.x86_64 0:2.5-8.el7 will be installed\n---> Package libcgroup.x86_64 0:0.41-20.el7 will be installed\n---> Package libsemanage-python.x86_64 0:2.5-14.el7 will be installed\n---> Package policycoreutils-python.x86_64 0:2.5-29.el7 will be installed\n--> Processing Dependency: policycoreutils = 2.5-29.el7 for package: policycoreutils-python-2.5-29.el7.x86_64\n---> Package python-IPy.noarch 0:0.75-6.el7 will be installed\n---> Package setools-libs.x86_64 0:3.3.8-4.el7 will be installed\n--> Finished Dependency Resolution\n You could try using --skip-broken to work around the problem\n You could try running: rpm -Va --nofiles --nodigest\n"]}

PLAY RECAP *********************************************************************
172.20.0.23                : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

■原因

インストールを実施するサーバー内にあらかじめインストールされていたパッケージと、使用したローカルリポジトリ内のパッケージで競合しているため、エラーが発生しています。

■対処方法

yum downgradeコマンドを使用することで、競合が解消される場合があります。以下はpolicycoreutilsというパッケージが競合した場合の実行例です。

$ sudo yum downgrade policycoreutils