Red Hat Enterprise Linux 8中的Virtualbox安装错误

问题描述 投票:0回答:1

我需要在具有开发者订阅的RHEL 8中安装Virtualbox。由于/etc/yum.repos.d/virtualbox.repo找不到http://download.virtualbox.org/virtualbox/rpm/el/8/ $ basearch,因此我确实直接从virtuallbox并通过链接http://download.virtualbox.org/virtualbox/rpm/rhel/7/x86_64/VirtualBox-6.0-6.0.8_130520_el7-1.x86_64.rpm下载了rpm。

但是再次出现此错误,

Error: 
 Problem: conflicting requests
  - nothing provides libpython2.6.so.1.0()(64bit) needed by VirtualBox-6.0-6.0.8_130520_el6-1.x86_64
  - nothing provides python(abi) = 2.6 needed by VirtualBox-6.0-6.0.8_130520_el6-1.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

我发现RHEL 8支持Python2和Python3,但对Python一无所知。无论如何,是否可以在RHEL 8中安装Virtualbox?

python repository virtualbox redhat rhel
1个回答
0
投票

安装RPM软件包需要满足依赖性。当您下载单个RPM文件时,没有从那里获取依赖项的存储库,如果没有其他步骤,它将无法正常工作。

[如果您不介意添加外部第三方存储库,更简单的方法是添加RPM Fusion存储库

什么是RPM Fusion?

RPM Fusion是由一群志愿者维护的Fedora和EL + EPEL附加软件包的存储库。 RPM Fusion不是独立的存储库,而是Fedora的扩展。 RPM Fusion分发了Fedora认为不可接受的软件包。

在RHEL 8或CentOS 8中启用RPM Fusion存储库:

sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm

安装VirtualBox:

# notice the uppercase V and B
yum install VirtualBox

# add your user to the vboxusers group:
usermod -a -G vboxusers $username 

替代:在KVM中使用Virt-Manager

检查following article in Red Hat Developers portal on how to configure Virt-Manager and KVM for virtual machines。它就像VirtualBox一样容易,并且得到更好的支持,因为这是真实的虚拟机在服务器中运行的方式。

您可以阅读有关RPM Fusion存储库here的更多信息。

如果您想尝试Virt-Manager并需要帮助,请给我评论。

© www.soinside.com 2019 - 2024. All rights reserved.