小小方法,問題錦集。


   1 安裝RPM包時,若出現某些依賴包太多,yum又沒有找到,可以用以下的強制安裝方式:

#rpm -ivh *.rpm --force --nodeps

------->OK! 

 

  2 使用 yum 安裝 virtualbox 虛擬機:

#cd /etc/yum.repos.d/

#mkdir bakup

#mv rh* ./bakup

  ## Fedora 17/16/15/14/13/12 users
    wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

  ## CentOS 6.2/6.1/6/5.8 and Red Hat (RHEL) 6.3/6.2/6.1/6/5.8 users
    wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo

#yum clean all

#yum list all

#yum  upgrade

#yum install VirtualBox*

-------->OK!(Ubuntu users can try # apt-get install virtualbox )

 

GoodBlog:http://orochihuang.iteye.com/blog/1546004  Command AS:

[root@Linux ]# cd /etc/yum.repos.d/ 
[root@Linux ]# wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo 

[root@Linux ]# cat virtualbox.repo 

[root@Linux ]# wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | gpg --quiet --with-fingerprint 

[root@Linux ]# yum info VirtualBox-4.1 

[root@Linux ]# yum install VirtualBox-4.1 

[root@Linux ]# /usr/sbin/usermod -a -G vboxusers username 

[root@Linux ]# yum install kernel-headers kernel-devel gcc 

[root@Linux ]# KERN_DIR=/usr/src/kernels/2.6.32-220.2.1.el6.i686 

[root@Linux ]# export KERN_DIR 

[root@Linux ]# echo $KERN_DIR 

[root@Linux ]# /etc/init.d/vboxdrv setup 

[root@Linux ]# /usr/sbin/usermod -a -G vboxusers username 

 

 

   Redhat 下VBOXADDITIONS插件kernel modules編譯失敗!!!

# yum install kernel-devel kernel-headers

------->OK!

 

   下載VirtualBox的rpm包安裝,但是安裝的時 如下錯誤:

warning: VirtualBox***.rpm: Header V4 DSA signature: NOKEY, key ID 98ab5139
error: Failed dependencies:
        libSDL-1.2.so.0 is needed by VirtualBox-****

 

#cd /etc/yum.repos.d

#wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo

#yum --enablerepo rpmforge install dkms

#yum groupinstall "Development Tools"
#yum install kernel-devel

#yum install VirtualBox-3.2

#usermod -G vboxusers username    

#yum install bitmap-fonts-cjk   

  

  5 Linux kernel module refuses to load

  If the VirtualBox kernel module (vboxdrv) refuses to load, i.e. you get an "Error inserting vboxdrv: Invalid argument", check (as root) the output of the dmesg command to find out why the load failed. Most probably the kernel disagrees with the version of the gcc used to compile the module. Make sure that you use the same compiler as used to build the kernel.

   more :https://www.virtualbox.org/manual/ch12.html#idp19181568 

 

   6 yum.repo

  baseurl=http://mirrors.ustc.edu.cn/ *****

  baseurl=http://mirrors.163.com/ ****

 

 一些有用的命令:

 #yum repolist all    //查看yum的源訂閱

#yum-config-manager --disable rhel-6-server-rpms

#yum-config-manager --enable rhel-6-server-rpms

#rhn-channel --add -c rhel-x86_64-server-6-rhevm-3  //添加


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM