虽然 Rocky Linux 专门写了一篇文档介绍如何从 CentOS 8 迁移过来,但实际迁移还是遇到了问题,这里简单记一下。
12345678910
Error:
Problem 1: cannot install both ibus-libs-1.5.19-14.el8_5.x86_64 and ibus-libs-1.5.19-12.el8.x86_64
- package ibus-devel-1.5.19-12.el8.x86_64 requires ibus-libs(x86-64) = 1.5.19-12.el8, but none of the providers can be installed
- cannot install the best update candidate for package ibus-libs-1.5.19-12.el8.x86_64
- problem with installed package ibus-devel-1.5.19-12.el8.x86_64
Problem 2: cannot install both marisa-0.2.4-36.el8.x86_64 and marisa-0.2.4-4.el7.x86_64
- package marisa-devel-0.2.4-4.el7.x86_64 requires marisa(x86-64) = 0.2.4-4.el7, but none of the providers can be installed
- cannot install the best update candidate for package marisa-0.2.4-4.el7.x86_64
- problem with installed package marisa-devel-0.2.4-4.el7.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Syncing packages
Last metadata expiration check: 0:00:13 ago on Tue Mar 8 12:23:04 2022.
Error:
Problem: package kyotocabinet-1.2.77-1.el7.x86_64 requires kyotocabinet-libs(x86-64) = 1.2.77-1.el7, but none of the providers can be installed
- kyotocabinet-libs-1.2.77-1.el7.x86_64 does not belong to a distupgrade repository
- problem with installed package kyotocabinet-1.2.77-1.el7.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Error during distro-sync.
An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage.
vboxclient the virtualbox kernel service is not running. exiting
查看 /var/log/vboxadd-setup.log,
12345678
/tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.c:204:14: error: implicit declaration of function ‘map_vm_area’; did you mean ‘get_vm_area’? [-Werror=implicit-function-declaration]
if (!map_vm_area(pVmArea, PAGE_KERNEL_EXEC,
^~~~~~~~~~~
get_vm_area
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:316: /tmp/vbox.0/combined-os-specific.o] Error 1
make[1]: *** [Makefile:1571: _module_/tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:117: vboxguest] Error 2
经过一番搜索,我意识到可能是 VBoxGuestAdditions.iso 的版本不对,因为之前确实有提示类似 unable to insert the virtual optical disk /usr/share/virtualbox/vboxguestadditions.iso 的错误,原因是我没有把之前版本的 VBoxGuestAdditions.iso 从虚拟光驱中弹出,于是先弹出再插入新版本,果然新版本成功安装。