【问题标题】:Installing Virtual box on a fresh SLES 11 machine - python在新的 SLES 11 机器上安装 Virtual box - python
【发布时间】:2014-02-12 16:53:27
【问题描述】:

如何在新的 SLES 11 机器上安装虚拟机?

我已经从以下位置下载了 rpm:

wget http://download.virtualbox.org/virtualbox/4.3.6/VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586.rpm

当我尝试yast2 -irpm -ivh 时,我收到以下错误:

 Package VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586.rpm could not be installed.

 Details:
 Subprocess failed. Error: RPM failed: error: Failed dependencies:
         libasound.so.2 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586
         libGL.so.1 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586    
         libICE.so.6 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586   
         libSDL-1.2.so.0 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i58
         libSM.so.6 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586    
         libX11.so.6 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586   
         libXcursor.so.1 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i58
         libXext.so.6 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586  
         libXinerama.so.1 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i5
         libXmu.so.6 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586   
         libXrender.so.1 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i58
         libXt.so.6 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586 

我试过了:

# zypper install libasound libGL libSDL

但它没有安装...

Retrieving repository 'SLES-11-SDK-SP3-Updates' metadata [done]
Building repository 'SLES-11-SDK-SP3-Updates' cache [done]
Retrieving repository 'SLES-11-SP3-Updates' metadata [done]
Building repository 'SLES-11-SP3-Updates' cache [done]
Loading repository data...
Reading installed packages...
'libGL' not found in package names. Trying capabilities.
No provider of 'libGL' found.
'libSDL' not found in package names. Trying capabilities.
No provider of 'libSDL' found.
'libasound' not found in package names. Trying capabilities.
No provider of 'libasound' found.
Resolving package dependencies...

目前,这些是添加的存储库:

# zypper repos
# | Alias                   | Name                                           | Enabled | Refresh
--+-------------------------+------------------------------------------------+---------+--------
1 | SLES-11-RZG-SP3         | SLES-11-RZG-SP3                                | Yes     | Yes    
2 | SLES-11-SDK-SP3-Updates | SLES-11-SDK-SP3-Updates                        | Yes     | Yes    
3 | SLES-11-SP3             | SLES-11-SP3                                    | Yes     | Yes    
4 | SLES-11-SP3-Updates     | SLES-11-SP3-Updates                            | Yes     | Yes    
5 | devel_tools_scm         | Software configuration management (SLE_11_SP2) | Yes     | No  

来自uname -a

Linux ws4-clarind 3.0.101-0.8-default #1 SMP Fri Nov 1 12:51:09 UTC 2013 (2417eb9) x86_64 x86_64 x86_64 GNU/Linux

【问题讨论】:

    标签: installation virtualbox rpm suse


    【解决方案1】:

    我在安装 VirtualBox 时确实遇到了一些问题。最后我得到了一个解决方案并写了一篇关于它的博客文章。希望对您有所帮助:

    uname -a
    Linux dq1bc01b08 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64         x86_64 GNU/Linux
    
    zypper in kernel-default-devel-3.0.76-0.11.1.x86_64
    zypper in autoconf bison flex gcc gcc-c++ make m4
    
    cp -f /boot/config-$(uname -r) /usr/src/linux/.config
    cd /usr/src/linux
    make prepare
    make modules_prepare
    
    http://download.virtualbox.org/virtualbox/4.3.8/VirtualBox-4.3-4.3.8_92456_sles11.0-1.x86_64.rpm
    zypper install VirtualBox-4.3-4.3.8_92456_sles11.0-1.x86_64.rpm
    

    更详细:http://ehaselwanter.com/en/blog/2014/03/22/install-virtualbox-on-sles-11-sp3/

    【讨论】:

    • 请附上答案摘要,以防提供的链接消失。仅链接的答案在 SO 上没有那么有用。
    【解决方案2】:

    我建议安装这些依赖项并重试。

    快速的 Google 搜索让我发现 SLES 不使用 yum/apt-get,而是通过命令行使用“Zypper”作为包管理器。

    Zypper Documentation

    zypper install libasound libGL libSDL etc
    

    【讨论】:

    • 甚至没有依赖项的依赖项。这是一个无限zypper的恶性循环......
    【解决方案3】:

    uname -a举报:

    Linux ws4-clarind [...] x86_64 x86_64 x86_64 GNU/Linux
    

    你正在尝试安装:

    VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586.rpm
    

    问题是您试图在 64 位 系统上安装 32 位 版本的 Virtualbox。你应该使用这个:VirtualBox-4.3-4.3.6_91406_sles11.0-1.x86_64.rpm at http://download.virtualbox.org/virtualbox/4.3.6/VirtualBox-4.3-4.3.6_91406_sles11.0-1.x86_64.rpm

    【讨论】:

    • 还卡在这个上?
    • 是的。由于 101 个依赖项,这是不可能的,我放弃了,让 SUSE 专家为我安装依赖项。
    猜你喜欢
    • 2012-06-12
    • 1970-01-01
    • 2011-04-18
    • 2016-12-09
    • 2017-01-27
    • 1970-01-01
    • 2016-02-10
    • 2011-04-18
    • 1970-01-01
    相关资源
    最近更新 更多