将 CentOS 从 7 升级到 8

将 CentOS 从 7 升级到 8

在执行此命令后安装 kernel-core 时出现以下错误:

dnf -y --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync

错误:

# dnf -y install kernel-core
Last metadata expiration check: 0:23:59 ago on Sat 25 Jul 2020 11:58:57 PM IST.
Error:
 Problem: package kexec-tools-2.0.20-14.el8.x86_64 requires dracut >= 049-24, but none of the providers can be installed
  - package dracut-049-70.git20200228.el8.x86_64 requires systemd-udev >= 219, but none of the providers can be installed
  - problem with installed package kexec-tools-2.0.15-43.el7.x86_64
  - package systemd-udev-239-30.el8_2.x86_64 obsoletes systemd < 229-5 provided by systemd-219-73.el7_8.8.x86_64
  - package kernel-core-4.18.0-193.6.3.el8_2.x86_64 conflicts with kexec-tools < 2.0.20-8 provided by kexec-tools-2.0.15-43.el7.x86_64
  - package systemd-sysv-219-73.el7_8.8.x86_64 requires systemd = 219-73.el7_8.8, but none of the providers can be installed
  - conflicting requests
  - problem with installed package systemd-sysv-219-73.el7_8.8.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

答案1

从 CentOS 7 升级到 CentOS 8 没有官方支持。如果您按照互联网上随机人员的指示进行操作,您很可能会遇到系统损坏的情况。官方建议是安装新的CentOS 8系统并迁移数据。

如果你最终运行某些东西并最终遇到问题,支持 CentOS 的人会告诉你重新安装操作系统。

答案2

dnf 删除 python3-pip-9.0.3-7.el7_7.noarch
dnf -y 安装内核核心 --best --allowerasing

遇到了同样的事情,但删除了我可以为 el7_7.noarch 所做的事情,上面的最后两个命令为我完成了它。

相关内容