rhel 7からcentos 7に変換すると、Yumトランザクション検証エラーが発生します。

rhel 7からcentos 7に変換すると、Yumトランザクション検証エラーが発生します。

ビジネス上の決定により、RHELサーバーをCentOSに移行する必要がありました。 RHEL6からCentOS6への移行は非常に簡単に見えますが、RHEL7からCentOS7への移行を試みている間にさまざまなエラーが発生しました。私たちはミラーから次のファイルをダウンロードし、rhel6からcentos6変換で見つけたさまざまなガイドを一致させようとしました。

centos-indexhtml-7-9.el7.centos.noarch.rpm
centos-logos-70.0.6-3.el7.centos.noarch.rpm
centos-release-7-4.1708.el7.centos.x86_64.rpm
python-urlgrabber-3.10-8.el7.noarch.rpm
redhat-support-lib-python-0.9.7-6.el7.noarch.rpm
redhat-support-tool-0.9.9-3.el7.noarch.rpm
rpm-4.11.3-25.el7.x86_64.rpm
rpm-build-libs-4.11.3-25.el7.x86_64.rpm
rpm-devel-4.11.3-25.el7.x86_64.rpm
rpm-libs-4.11.3-25.el7.x86_64.rpm
rpm-python-4.11.3-25.el7.x86_64.rpm
yum-3.4.3-154.el7.centos.noarch.rpm
yum-plugin-fastestmirror-1.1.31-42.el7.noarch.rpm

ディレクトリに。

私たちは次のスクリプトを使用しています。

    cd "$CENTOS7DIR"
rpm --import RPM-GPG-KEY-CentOS-7
yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes* redhat-support-tool redhat-support-lib-python -y
[[ "$(rpm -qa | grep redhat-release-server)" ]] && rpm -e --nodeps redhat-release-server 
rm -fr /usr/share/doc/redhat-release*
[[ "$(rpm -qa | grep subscription-manager)" ]] && subscription-manager clean
[[ "$(rpm -Uvh --force *.rpm)" ]] || { rpm -fr /usr/share/doc/redhat-release* && rpm -Uvh --force *.rpm; }
[ "$(find /etc/yum.conf.rpmnew -mmin +0.6 )" ] && mv /etc/yum.conf.rpmnew /etc/yum.conf
[[ "$(rpm -qa | grep subscription-manager)" ]] && yum remove subscription-manager -y
yum clean all 
yum -y upgrade
grub2-mkconfig -o /boot/grub2/grub.cfg

ただし、到着時にyum -y upgrade新しいcentos7 yumがアップグレードに必要なすべてのファイルをダウンロードした後、次のトランザクションエラーが発生しました。

    Transaction check error:
  file /usr/share/man/man5/limits.conf.5.gz from install of pam-1.1.8-18.el7.i686 conflicts with file from package pam-1.1.8-18.el7.x86_64
  file /usr/share/man/man5/pam_env.conf.5.gz from install of pam-1.1.8-18.el7.i686 conflicts with file from package pam-1.1.8-18.el7.x86_64
  file /usr/share/man/man8/faillock.8.gz from install of pam-1.1.8-18.el7.i686 conflicts with file from package pam-1.1.8-18.el7.x86_64
  file /usr/share/man/man8/pam_env.8.gz from install of pam-1.1.8-18.el7.i686 conflicts with file from package pam-1.1.8-18.el7.x86_64
  file /usr/share/man/man8/pam_exec.8.gz from install of pam-1.1.8-18.el7.i686 conflicts with file from package pam-1.1.8-18.el7.x86_64
  file /usr/share/man/man8/pam_faillock.8.gz from install of pam-1.1.8-18.el7.i686 conflicts with file from package pam-1.1.8-18.el7.x86_64
  file /usr/share/man/man8/pam_unix.8.gz from install of pam-1.1.8-18.el7.i686 conflicts with file from package pam-1.1.8-18.el7.x86_64
  file /usr/share/man/man8/pam_userdb.8.gz from install of pam-1.1.8-18.el7.i686 conflicts with file from package pam-1.1.8-18.el7.x86_64
  file /usr/share/man/man8/pwhistory_helper.8.gz from install of pam-1.1.8-18.el7.i686 conflicts with file from package pam-1.1.8-18.el7.x86_64

Error Summary
-------------

何が間違っているのか、そしてこの問題をどのように解決できるのか教えてください。

ベストアンサー1

今朝も同じことをしました。再インストールを実行してください:

yum reinstall pam.x86_64

これにより、問題なくシステムをアップグレードできます。

おすすめ記事