本文主要作为笔记,为我这两天遇到的坑做一下备份。
JDK下载地址
在网上只要一查,就是给我官方地址,但是官方地址又要注册,下载速度还慢,所以在网上找了好久找到一个百度网盘地址。如下:
链接:https://pan.baidu.com/s/1ozCGy53AIeQIHWL6s9oAbw 提取码:04lf
网盘放的是jdk1.8版本中的1.8.0_152的版本
Virtualbox安装
Ubuntu上安装Virtualbox,不需要在网上扒资源下载,直接在控制台执行如下指令:
sudo apt-get install virtualbox
Virtualbox镜像加载
需要采用非ghost镜像安装,一定要注意,是“非ghost镜像”。最好是直接选择下载MSDN的镜像,否则,你会遇到各种各样的坑。
比如,如下错误:
1. no bootable medium found
2. could not read from the boot medium! system halted.
3. no more network device,could not read from the boot medium.
如果镜像选择错误,无论你怎么去尝试修改virtualbox都是徒劳。你要做的就是在MSDN找到一个你需要的镜像然后下载(注意图中左侧的操作系统):