Ubuntu 14.04 installing VirtualBox using the command line

Source: Internet
Author: User

Ubuntu 14.04 installing VirtualBox using the command line


    • Basic installation Commands:

#sudo sh-c ' echo ' deb Http://download.virtualbox.org/virtualbox/debian trusty contrib ' >>/etc/apt/sources.list '
Wget-q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc-o-| sudo apt-key adv--keyserver keyserver.ubuntu.com--recv-keys 54422a4b98ab5139

#sudo apt-get Update

#sudo Apt-get Install virtualbox-4.3


    • Meet the Pit halfway:

Encounter Error:


[Email protected]:~/vbox$ sudo apt-get install virtualbox-4.3
Reading Package Lists ... Done
Building Dependency Tree
Reading state information ... Done
virtualbox-4.3 is already the newest version.
You might want-to-run ' apt-get-f install ' to correct these:
The following packages has unmet dependencies:
VIRTUALBOX-4.3:DEPENDS:LIBGL1-MESA-GLX or
Libgl1
Depends:libqt4-network (>= 4:4.5.3) but it isn't going to be installed
Depends:libqt4-opengl (>= 4:4.7.2) but it isn't going to be installed
Depends:libqtcore4 (>= 4:4.8.0) but it isn't going to be installed
DEPENDS:LIBQTGUI4 (>= 4:4.8.0) but it isn't going to be installed
Depends:libsdl1.2debian (>= 1.2.11) but it isn't going to be installed
DEPENDS:LIBVPX1 (>= 1.0.0) but it isn't going to be installed
Depends:libxcursor1 (> 1.1.2) But it isn't going to be installed
DEPENDS:LIBXINERAMA1 but it isn't going to being installed
Depends:libxmu6 but it isn't going to being installed
Depends:libxt6 but it isn't going to being installed
Recommends:libasound2
Recommends:libpulse0 but it isn't going to being installed
recommends:libsdl-ttf2.0-0 but it isn't going to being installed
recommends:dkms but it isn't going to being installed
RECOMMENDS:GCC but it isn't going to being installed
Recommends:make
Recommends:binutils but it isn't going to being installed
Recommends:pdf-viewer
Recommends:libgl1
E:unmet dependencies. Try ' apt-get-f install ' with no packages (or specify a solution).


Workaround:


sudo apt-get purge virtualbox-4.3


Problem cause Analysis:


The suspicion is the problem caused by the incomplete installation of the VirtualBox.


    • Start Xmanager Passive


    • Export display=192.168.1.117:0.0


    • To load a virtual machine image:


Machine-->add--> Selecting a virtual machine image file


    • If the mirrored hard disk location is different from the previous one, re-adding the virtual machine hard disk will prompt the UUID to repeat the problem, use the following command to resolve:


Vboxmanage Internalcommands Sethduuid/home/work/vbox/disk_win2008_sql.vdi


    • To add a extension pack package:


File->preference...->extensions--> Select the extension pack to add


This article is from the "cultural Rogue dba Life" blog, please be sure to keep this source http://suntongle.blog.51cto.com/1129224/1652693

Ubuntu 14.04 installing VirtualBox using the command line

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.