在Ubuntu18.04上安装Virtualbox5.2

Install the Latest VirtualBox on Ubuntu 18.04 LTS

!robot | 01/01/2018 | Applications, Labs, Linux Ubuntu | 6 Comments

Since Ubuntu 18.04 LTS was released, I have been testing it in my lab environment using VMware Workstation Pro… this steps below is how I got the latest version of VirtualBox installed on Ubuntu 18.04 LTS…

VirtualBox gets new updates very frequently on Windows and Linux systems… if you want to consistently get these updates when they become available, you’ll want to add VirtualBox repository to your systems… doing that will make all future updates available to your systems immediately…

For those who don’t know what VirtualBox is, it’s a cross-platform virtualization software that allows you to run guest operating system inside a windows of the host computer. The guest machine can Windows, Linux or Mac operating systems.

This brief tutorial shows students and new users how to add VirtualBox repository to Ubuntu to always get the latest releases when they become available..

To get started with adding VirtualBox’s repository to Ubuntu systems, follow the steps below:

Step 1: Add VirtualBox Repository Key

To install VirtualBox repositories, you must first add the repository key… the key allows Ubuntu to authenticate and validate that all packages downloaded from the repository are trusted and signed with the repository key… this adds a layer of security

To add the repository key, run the commands below:

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

Step 2: Add VirtualBox Repository

Now that the repository key is added to Ubuntu system, run the commands below to add the Repository

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list'

After that, run the commands below to update Ubuntu repositories..

Step 3: Installing VirtualBox

At this point, the Ubuntu system should be ready to install the latest version of VirtualBox…

First you may want to remove older versions of the software if you’re still running it… to do that, run the commands below:

sudo apt remove virtualbox virtualbox-5.1

Next, run the commands below to install some requirement packages for VirtualBox

sudo apt update
sudo apt-get -y install gcc make linux-headers-$(uname -r) dkms

Finally, run the commands below to install the latest version of the software.

sudo apt update
sudo apt-get install virtualbox-5.2

You should have the latest version of VirtualBox installed after running the above commands… Now go to search for the package and launch it.

Enjoy!

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值