如何在新的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 -i
或rpm -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
答案 0 :(得分:2)
我确实遇到了安装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/
答案 1 :(得分:0)
我建议安装这些依赖项并重试。
快速谷歌搜索让我认为SLES不使用yum / apt-get,而是通过命令行为包管理器使用“Zypper”。
zypper install libasound libGL libSDL etc
答案 2 :(得分:0)
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