解决驱动问题
https://blog.csdn.net/qq_42294095/article/details/124334860
问题接踵而至,在这个过程中的解决步骤如下,参考链接2、3:
(以下黄色亮底为实际操作或输入命令)
1)在终端以root身份执行:
sudo modprobe vboxdrv
2)vboxdrv 没有生效,是Linux内核专门用于驱动virtualBox驱动,叫做virtualbox-dkms
为当前内核重新安装一个驱动
sudo apt install --reinstall linux-headers-$(uname -r) virtualbox-dkms dkms
3)提示进程被占用
于是重启电脑
在终端重新输入上面两条命令
4)提示dpkg was iterruoted,you must manually run ‘dpkg…
sudo dpkg --configure -a
各种 linux 包
https://pkgs.org/search/?q=python3.6
配置 python 默认版本
查看已安装python
$ u82:~/Py_demo$ ls /usr/bin/python*
/usr/bin/python2 /usr/bin/python2.7 /usr/bin/python3 /usr/bin/python3.8
设置默认版本
$ u82:~/Py_demo$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
update-alternatives: 使用 /usr/bin/python2 来在自动模式中提供 /usr/bin/python (python)
$ u82:~/Py_demo$ sudo update-alternatives --list python
/usr/bin/python2
$ u82:~/Py_demo$ python -V
Python 2.7.18
https://blog.csdn.net/qq_41955338/article/details/120576068
Python2 dependency hell
You need to install the package python-is-python2 to make Virtualbox work. This will override your /usr/bin/python symlink, which you can force back to python3 using update-alternatives or by hand after the fact. That said, I don’t know why they can’t just list Python as recommended or optional dependencies instead of as a mandatory dependency. It can be done with the Debian package management system.
https://forums.virtualbox.org/viewtopic.php?t=101006
中文版参考
https://developer.aliyun.com/article/1158535
http://mirrors.kernel.org/ubuntu xenial-updates/multiverse
5.2.4.2
virtualbox-dkms
https://launchpad.net/ubuntu/bionic/amd64/virtualbox/5.2.42-dfsg-0~ubuntu1.18.04.1
重要
https://askubuntu.com/questions/900794/virtualbox-rtr3initex-failed-with-rc-1912-rc-1912
https://askubuntu.com/questions/900794/virtualbox-rtr3initex-failed-with-rc-1912-rc-1912
可以下载各种版本 ubuntu 包
http://archive.ubuntu.com/ubuntu/pool/universe/p/python2.7/