我有一台 CentOS 7.9 服务器,主要运行 ZFS 作为 Windows CIF 文件服务器和 NFS vmware 共享。 v7 运行良好。我尝试leapp/elevate进行迁移,但由于NFS而失败,所以我尝试升级到v8,看看是否可以跳转到Alma。
我按照以下步骤操作https://techglimpse.com/how-to-upgrade-centos-7-to-centos-8-linux/这个命令失败了:
dnf -y --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync
有一堆依赖错误。
但
cat /etc/redhat-release
显示CentOS Linux release 8.5.2111
.- 内核仍然是
3.10.0-1160.90.1.el7.x86_64
运行dnf update
表示它将安装 98 个软件包,更新 746 个软件包,并跳过 255 个软件包。但它失败了:
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing `dnf clean packages`.
Error: Transaction check error:
file /usr/lib64/libgdbm_compat.so.4.0.0 from install of gdbm-libs-1:1.18-1.el8.x86_64 conflicts with file from package gdbm-1.10-8.el7.x86_64
file /usr/bin/ibdev2netdev from install of rdma-core-35.0-1.el8.x86_64 conflicts with file from package ibutils-1.5.7-14.el7.x86_64
file /etc/httpd/conf.d/README from install of httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch conflicts with file from package httpd-2.4.6-99.el7.centos.1.x86_64
file /usr/bin/targetctl from install of target-restore-2.1.74-1.el8.noarch conflicts with file from package python-rtslib-2.1.74-1.el7_9.noarch
file /usr/bin/pflags from install of python3-linux-procfs-0.6.3-1.el8.noarch conflicts with file from package python-linux-procfs-0.4.11-4.el7.noarch
file /usr/bin/chardetect from install of python3-chardet-3.0.4-7.el8.noarch conflicts with file from package python-chardet-2.2.1-3.el7.noarch
file /usr/lib/python3.6/site-packages/pkg_resources/_vendor/__pycache__/six.cpython-36.opt-1.pyc from install of platform-python-setuptools-39.2.0-6.el8.noarch conflicts with file from package python3-setuptools-39.2.0-10.el7.noarch
file /usr/lib/python3.6/site-packages/setuptools/_vendor/__pycache__/six.cpython-36.opt-1.pyc from install of platform-python-setuptools-39.2.0-6.el8.noarch conflicts with file from package python3-setuptools-39.2.0-10.el7.noarch
file /usr/lib/python3.6/site-packages/pkg_resources/_vendor/__pycache__/six.cpython-36.pyc from install of platform-python-setuptools-39.2.0-6.el8.noarch conflicts with file from package python3-setuptools-39.2.0-10.el7.noarch
file /usr/lib/python3.6/site-packages/setuptools/_vendor/__pycache__/six.cpython-36.pyc from install of platform-python-setuptools-39.2.0-6.el8.noarch conflicts with file from package python3-setuptools-39.2.0-10.el7.noarch
file /usr/lib/python3.6/site-packages/setuptools-39.2.0.dist-info/METADATA from install of platform-python-setuptools-39.2.0-6.el8.noarch conflicts with file from package python3-setuptools-39.2.0-10.el7.noarch
file /usr/lib/python3.6/site-packages/setuptools-39.2.0.dist-info/RECORD from install of platform-python-setuptools-39.2.0-6.el8.noarch conflicts with file from package python3-setuptools-39.2.0-10.el7.noarch
还有更多。
该命令rpm -e `rpm -q kernel`
显示:
error: Failed dependencies:
kernel >= 3.10.0-384.el7 is needed by (installed) hypervfcopyd-0-0.34.20180415git.el7.x86_64
kernel >= 3.10.0-384.el7 is needed by (installed) hypervvssd-0-0.34.20180415git.el7.x86_64
kernel >= 2.6.32 is needed by (installed) lldpad-1.0.1-7.git036e314.el7_9.x86_64
kernel >= 3.10.0-1133.el7 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel >= 3.10.0-384.el7 is needed by (installed) hypervkvpd-0-0.34.20180415git.el7.x86_64
kernel(PDE_DATA) = 0x44f0d59d is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(___ratelimit) = 0x155f4108 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__bitmap_weight) = 0x4cbbd171 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__cond_resched_lock) = 0xe2cfb038 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__fentry__) = 0xbdfb6dbb is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__init_waitqueue_head) = 0xf432dd3d is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__kmalloc) = 0xd2b09ce5 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__list_add) = 0x0343a1a8 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__list_del_entry) = 0x65e75cb6 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__mutex_init) = 0x9a025cd5 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__stack_chk_fail) = 0xf0fdf6cb is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__vmalloc) = 0xa9bd2676 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__wake_up) = 0xcf21d241 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__x86_indirect_thunk_r10) = 0x7e526bfa is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__x86_indirect_thunk_r12) = 0x263ed23b is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__x86_indirect_thunk_r13) = 0xe7b00dfb is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__x86_indirect_thunk_r14) = 0xce8b1878 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__x86_indirect_thunk_r15) = 0x0f05c7b8 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__x86_indirect_thunk_r8) = 0x1ed8b599 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__x86_indirect_thunk_r9) = 0xdf566a59 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__x86_indirect_thunk_rax) = 0x2ea2c95c is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__x86_indirect_thunk_rbx) = 0x593c1bac is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__x86_indirect_thunk_rcx) = 0xc29957c3 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__x86_indirect_thunk_rdx) = 0xb601be4c is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(__x86_indirect_thunk_rsi) = 0xa1f9a134 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(_cond_resched) = 0xa1c76e0a is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(_raw_qspin_lock) = 0x4b7dcf38 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(_raw_qspin_lock_irq) = 0x3588d8ba is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(_raw_read_lock) = 0x9b0c8220 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(_raw_spin_lock_bh) = 0x1637ff0f is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(_raw_spin_lock_irqsave) = 0x9327f5ce is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(_raw_spin_unlock_bh) = 0xba63339c is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(_raw_spin_unlock_irqrestore) = 0x08f64aa4 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(_raw_write_lock) = 0x13a1a61a is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(autoremove_wake_function) = 0xc8b57c27 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(bdevname) = 0x8f619a88 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(bio_add_page) = 0x4554b079 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(bio_alloc_bioset) = 0xeb862489 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(bio_endio) = 0xdd5fbc2b is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(bio_put) = 0x867c68af is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(bio_reset) = 0x060f6a84 is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
kernel(bioset_create) = 0x1b57183e is needed by (installed) kmod-kvdo-6.1.3.23-5.el7.x86_64
还有很多。
有没有解决问题的路径?
答案1
建议修复...
几年前,CentOS 转变为CentOS 流,以及版本 8溪流生命周期结束日期为 2024 年 5 月 31 日,距此还有不到一年的时间!
洛基LinuxCentOS以前是这样的溪流,其 v8 EOL 日期为 5/31/2029。
虽然他们的下载页面没有注明 8.x 版本号,Rocky-8.8-x86_64-dvd1.iso
但当前下载的是 11.7gb,如果您不想要版本 9,您可以选择该版本。
https://rockylinux.org/download
迁移数据、重新格式化操作系统磁盘、全新安装Rocky-8.8-x86_64-dvd1.iso
、移回数据、安装所需的内容。