【问题标题】:Virtualbox installation error in Red Hat Enterprise Linux 8Red Hat Enterprise Linux 8 中的 Virtualbox 安装错误
【发布时间】:2019-08-29 06:39:05
【问题描述】:

我需要在具有开发者订阅的 RHEL 8 中安装 Virtualbox。由于 /etc/yum.repos.d/virtualbox.repo 没有找到 http://download.virtualbox.org/virtualbox/rpm/el/8/$basearch 我确实直接从 virtuallbox 下载了带有链接的 rpm,http://download.virtualbox.org/virtualbox/rpm/rhel/7/x86_64/VirtualBox-6.0-6.0.8_130520_el7-1.x86_64.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】:

    安装 RPM 包需要满足依赖关系。由于您正在下载单个 RPM 文件并且没有从何处获取依赖项的 repo,因此如果没有其他一些步骤,它将无法工作。

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

    什么是 RPM 融合?

    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 
    

    替代方案:将 Virt-Manager 与 KVM 一起使用

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-15
      • 2013-10-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-24
      相关资源
      最近更新 更多