2017-02-23 68 views
-2

我的公司有yum的防火墙规则,所以我们只能使用rpm在RHEL 6 SERVER上安装软件。所以,我得到了一个安装virtualbox 5.1的任务。我使用了virtualbox网站的rpm并安装了它,但是它失败了2个依赖关系,我也安装了它们。然后我得到了下面的错误。我只是搜索了一下,我需要一些内核开发RPM,但我dono,之后该怎么做,还有什么我需要使虚拟框运行。如何在不使用yum的情况下在RHEL 6上安装virtualbox?

# virtualbox 
    WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (2.6.32-642.4.2.el6.x86_64) or it failed to load. Please recompile the kernel module and install it by 

     sudo /sbin/vboxconfig 

    You will not be able to start VMs until this problem is fixed. 

的Qt FATAL:QXcbConnection:无法连接到显示 中止

+0

为什么没有人不会回答我的问题,如果事情是错了,请告诉我,我会改正 – Sadhan

+1

堆栈溢出是**编程问题**。由于你的问题不是关于编程,如果在更合适的站点上询问,你会得到更好的答案。例如,在[Unix和Linux](http://unix.stackexchange.com)或[超级用户](http://superuser.com)上。 – Tsyvarev

回答

0

将会有很大的依赖性,同时安装RPM的。您需要逐个检查并安装RPM。建议您建立不需要互联网的本地百胜储存库。你应该使用rhel 6 iso文件来构建本地回购。然后下载虚拟盒子的rpm,并尝试使用yum实用程序进行安装。 yum将使用本地回购来解决依赖关系。

构建回购: 1.安装DVD

[[email protected] Packages]# cd /etc/yum.repos.d 
[[email protected] yum.repos.d]# vi dvd.repo 
[[email protected] yum.repos.d]# cat dvd.repo 
[DVD_ISO] 
name= Linux 6 
baseurl=file:///mnt/cdrom 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY 
gpgcheck=1 
enabled=1 
[[email protected] rpm-gpg]# yum clean all 
Loaded plugins: rhnplugin 


[Errno 2] No such file or directory: '/var/cache/yum/x86_64/6Server' 

[[email protected] rpm-gpg]# yum repolist 
Loaded plugins: rhnplugin 
This system is not registered with ULN. 
ULN support will be disabled. 
DVD_ISO                          | 3.7 kB  00:00 ... 
DVD_ISO/primary_db                       | 3.1 MB  00:00 ... 
repo id             repo name               status 
DVD_ISO             Linux 6              3,379 
repolist: 3,379 
相关问题