Leapp 不想将 Oracle Linux 从 7.9 升级到 8.x

Leapp 不想将 Oracle Linux 从 7.9 升级到 8.x

我从CentOS 7.9迁移到Oracle linux 7.9,现在我想使用leapp应用程序从7.9升级到8。它是一个裸机安装,运行 apache、PHP、MySQL、sendmail。没有什么特别的,也没有奇怪或异国情调的包。我不得不卸载 sysvinit-tools,它卸载了 sendmail 和其他一些东西,因为leapp 抱怨它。升级完成后我可以再次安装它们。

升级前检查始终成功。最终失败的是升级。

升级过程仍然报告错误并停止。它说我也应该卸载lepp。没有lepp,我就无法升级。我尝试卸载/重新安装lepp,但没有帮助。我还检查了错误消息中提到的软件包 rpcsvc-proto-devel libnsl2-devel rpcgen。它们没有安装。我尝试将它们安装到 OL 7.9,但它们不可用?

系统已更新为最新更新。有人有想法吗,我该如何继续?

这是升级的错误输出:

STDERR:
Warning: Packages marked by Leapp for install not found in repositories metadata: rpcsvc-proto-devel libnsl2-devel rpcgen
Warning: Packages marked by Leapp for upgrade not found in repositories metadata: python2-leapp leapp-upgrade-el7toel8 leapp
RPM: warning: Generating 6 missing index(es), please wait...
Error: Transaction test error:
  file /usr/lib/python2.7/site-packages/six.py from install of python2-six-1.11.0-6.module+el8.4.0+20050+79c7b4ee.noarch conflicts with file from package python-six-1.9.0-2.el7.noarch
  file /usr/lib/python2.7/site-packages/six.pyc from install of python2-six-1.11.0-6.module+el8.4.0+20050+79c7b4ee.noarch conflicts with file from package python-six-1.9.0-2.el7.noarch
  file /usr/lib/python2.7/site-packages/six.pyo from install of python2-six-1.11.0-6.module+el8.4.0+20050+79c7b4ee.noarch conflicts with file from package python-six-1.9.0-2.el7.noarch
  file /usr/lib64/python2.7/site-packages/cairo/__init__.py from install of python2-cairo-1.16.3-6.module+el8+5156+a8abff8b.x86_64 conflicts with file from package pycairo-1.8.10-8.el7.x86_64
  file /usr/lib64/python2.7/site-packages/cairo/__init__.pyc from install of python2-cairo-1.16.3-6.module+el8+5156+a8abff8b.x86_64 conflicts with file from package pycairo-1.8.10-8.el7.x86_64
  file /usr/lib64/python2.7/site-packages/cairo/__init__.pyo from install of python2-cairo-1.16.3-6.module+el8+5156+a8abff8b.x86_64 conflicts with file from package pycairo-1.8.10-8.el7.x86_64
  file /usr/lib64/python2.7/site-packages/cairo/_cairo.so from install of python2-cairo-1.16.3-6.module+el8+5156+a8abff8b.x86_64 conflicts with file from package pycairo-1.8.10-8.el7.x86_64
  file /usr/lib/python2.7/site-packages/idna/__init__.pyc from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/lib/python2.7/site-packages/idna/__init__.pyo from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/lib/python2.7/site-packages/idna/codec.pyc from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/lib/python2.7/site-packages/idna/codec.pyo from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/lib/python2.7/site-packages/idna/compat.pyc from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/lib/python2.7/site-packages/idna/compat.pyo from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/lib/python2.7/site-packages/idna/core.py from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/lib/python2.7/site-packages/idna/core.pyc from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/lib/python2.7/site-packages/idna/core.pyo from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/lib/python2.7/site-packages/idna/idnadata.pyc from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/lib/python2.7/site-packages/idna/idnadata.pyo from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/lib/python2.7/site-packages/idna/intranges.pyc from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/lib/python2.7/site-packages/idna/intranges.pyo from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/lib/python2.7/site-packages/idna/uts46data.pyc from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/lib/python2.7/site-packages/idna/uts46data.pyo from install of python2-idna-2.5-7.module+el8.3.0+7833+4aaf98ce.noarch conflicts with file from package python-idna-2.4-1.el7.noarch
  file /usr/bin/pyinotify from install of python3-inotify-0.9.6-13.el8.noarch conflicts with file from package python-inotify-0.9.4-4.el7.noarch

添加:我发现 rpcgen 包位于 Code Ready Builder 存储库中。因此,必须使用 .repository 手动将存储库添加到leapp命令中--enablerepo 'ol8_codeready_builder'

这消除了第一个警告,但并没有解决leapp包的问题。

答案1

事实证明,软件包python-sixpycairo、 和python-idna是与 CentOS EPEL 的 certbot 一起安装的。这就是为什么 Oracle Linux 每次都找不到升级候选并中止升级的原因。解决方案是重新安装这些软件包:

yum reinstall python-six pycairo python-idna

下一次升级尝试报告了一些更多的软件包也被重新安装。

yum reinstall python-ipaddress python-backports python-backports-ssl_match_hostname

之后的升级就经历了这个阶段。现在,efibootmgr 报告一个错误,因为我相信我的 UEFI BIOS 有问题,但那是另一个话题了。 :(

相关内容