update yum 到指定版本_请问如何用dnf 或 yum 安装指定版本的包?

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

打算装一个 VirtualBox ,但是出现了问题。

Kernel driver not installed (rc=-1908

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executin

'/sbin/vboxconfig

as root

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

按照提示,安装了kernel-dev

[root@HY ~]# dnf list installed | grep kernel

abrt-addon-kerneloops.x86_64 2.10.4-3.fc27 @anaconda

kernel.x86_64 4.13.9-300.fc27 @anaconda

kernel-core.x86_64 4.13.9-300.fc27 @anaconda

kernel-devel.x86_64 4.14.8-300.fc27 @updates

kernel-headers.x86_64 4.14.8-300.fc27 @updates

kernel-modules.x86_64 4.13.9-300.fc27 @anaconda

kernel-modules-extra.x86_64 4.13.9-300.fc27 @anaconda

libreport-plugin-kerneloops.x86_64 2.9.2-1.fc27 @anaconda

感觉是这些,差不太多。。

然后运行

[root@HY ~]# /sbin/vboxconfig

Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /usr/lib/systemd/system/vboxdrv.service.

Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /usr/lib/systemd/system/vboxballoonctrl-service.service.

Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /usr/lib/systemd/system/vboxautostart-service.service.

Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /usr/lib/systemd/system/vboxweb-service.service.

vboxdrv.sh: Stopping VirtualBox services.

vboxdrv.sh: Building VirtualBox kernel modules.

This system is currently not set up to build kernel modules.

Please install the Linux kernel "header" files matching the current kernel

for adding new hardware support to the system.

The distribution packages containing the headers are probably:

kernel-devel kernel-devel-4.13.9-300.fc27.x86_64

This system is currently not set up to build kernel modules.

Please install the Linux kernel "header" files matching the current kernel

for adding new hardware support to the system.

The distribution packages containing the headers are probably:

kernel-devel kernel-devel-4.13.9-300.fc27.x86_

There were problems setting up VirtualBox. To re-start the set-up process, run

/sbin/vboxconfig

as root.

我想应该是我的 kernel-headers 和 kernel-core 版本不对吧。。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值