在Ubuntu 16.04下安装 virtualbox 5.2

Posted leoking01

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Ubuntu 16.04下安装 virtualbox 5.2相关的知识,希望对你有一定的参考价值。

 

 
 

 

sudo sh -c ‘echo "deb http://download.virtualbox.org/virtualbox/debian xenial contrib" >> /etc/apt/sources.list.d/virtualbox.list‘

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

sudo apt update

sudo apt install virtualbox-5.2

-----------------------------------------分割线----------------------------
https://www.virtualbox.org/wiki/Linux_Downloads
附录:

Debian-based Linux distributions

Add the following line to your /etc/apt/sources.list. According to your distribution, replace ‘<mydist>‘ with ‘artful‘, ‘zesty‘, ‘yakkety‘, ‘xenial‘, ‘trusty‘, ‘stretch‘, ‘jessie‘, or ‘wheezy‘ (older versions of VirtualBox supported different distributions):

deb https://download.virtualbox.org/virtualbox/debian <mydist> contrib

The Oracle public key for apt-secure can be downloaded

  • here for Debian 8 ("Jessie") / Ubuntu 16.04 ("Xenial") and later
  • here for older distributions.

You can add these keys with

sudo apt-key add oracle_vbox_2016.asc
sudo apt-key add oracle_vbox.asc

or combine downloading and registering:

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 -

The key fingerprint for oracle_vbox_2016.asc is

B9F8 D658 297A F3EF C18D  5CDF A2F6 83C5 2980 AECF
Oracle Corporation (VirtualBox archive signing key) <[email protected]>

The key fingerprint for oracle_vbox.asc is

7B0F AB3A 13B9 0743 5925  D9C9 5442 2A4B 98AB 5139
Oracle Corporation (VirtualBox archive signing key) <[email protected]>

(As of VirtualBox 3.2, the signing key was changed. The old Sun public key for apt-secure can be downloaded  here.)

To install VirtualBox, do

sudo apt-get update
sudo apt-get install virtualbox-5.2

Replace virtualbox-5.2 by virtualbox-5.1 to install the latest VirtualBox 5.1 build.

What to do when experiencing The following signatures were invalid: BADSIG ... when refreshing the packages from the repository?

# sudo -s -H
# apt-get clean
# rm /var/lib/apt/lists/*
# rm /var/lib/apt/lists/partial/*
# apt-get clean
# apt-get update



 








以上是关于在Ubuntu 16.04下安装 virtualbox 5.2的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu 16.04下安装64位谷歌Chrome浏览器

ubuntu16.04下基于Python的OpenCV的安装

VirtualBox下安装Ubuntu Server 16.04

Ubuntu16.04下安装redis

ubuntu16.04下g++安装及使用

Ubuntu 16.04 下安装 PyCharm