ubuntu vbox 5.2 资源 virtualbox-dkms

31 篇文章 0 订阅

2024年7月9日 星期二
安装 virtualbox
https://askubuntu.com/questions/1322875/virtualbox-installation-problem-on-ubuntu-20-10

安装 guest iso
sudo apt-get upgrade
sudo apt-get install virtualbox-guest-additions-iso
sudo apt-get install virtualbox-guest-utils
restart virtual machine.
https://askubuntu.com/questions/573596/unable-to-install-guest-additions-cd-image-on-virtual-box

解决驱动问题
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/
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值