RPM Fusionを使用してFedora 21にVirtualBoxをインストールすると問題が発生しました。

RPM Fusionを使用してFedora 21にVirtualBoxをインストールすると問題が発生しました。

私は最近Fedora 21 Workstationをインストールし、RPM FusionからVirtualBoxパッケージをインストールしたいと思います。しかし、これが私に問題を引き起こします。

$ uname -a
Linux a10-5800k 3.18.5-201.fc21.x86_64 #1 SMP Mon Feb 2 21:00:58 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

$ sudo yum install VirtualBox kmod-VirtualBox
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package VirtualBox.x86_64 0:4.3.20-3.fc21 will be installed
--> Processing Dependency: libSDL-1.2.so.0()(64bit) for package: VirtualBox-4.3.20-3.fc21.x86_64
---> Package kmod-VirtualBox.x86_64 0:4.3.20-4.fc21.3 will be installed
--> Processing Dependency: kmod-VirtualBox-3.18.6-200.fc21.x86_64 >= 4.3.20-4.fc21.3 for package: kmod-VirtualBox-4.3.20-4.fc21.3.x86_64
--> Running transaction check
---> Package SDL.x86_64 0:1.2.15-17.fc21 will be installed
---> Package kmod-VirtualBox-3.18.6-200.fc21.x86_64.x86_64 0:4.3.20-4.fc21.3 will be installed
--> Processing Dependency: kernel-uname-r = 3.18.6-200.fc21.x86_64 for package: kmod-VirtualBox-3.18.6-200.fc21.x86_64-4.3.20-4.fc21.3.x86_64
--> Finished Dependency Resolution
Error: Package: kmod-VirtualBox-3.18.6-200.fc21.x86_64-4.3.20-4.fc21.3.x86_64 (rpmfusion-free-updates)
           Requires: kernel-uname-r = 3.18.6-200.fc21.x86_64
           Installed: kernel-core-3.17.4-301.fc21.x86_64 (@koji-override-0/$releasever)
               kernel-uname-r = 3.17.4-301.fc21.x86_64
           Installed: kernel-core-3.18.5-201.fc21.x86_64 (@updates)
               kernel-uname-r = 3.18.5-201.fc21.x86_64
           Available: kernel-debug-core-3.17.4-301.fc21.x86_64 (fedora)
               kernel-uname-r = 3.17.4-301.fc21.x86_64+debug
           Available: kernel-debug-core-3.18.5-201.fc21.x86_64 (updates)
               kernel-uname-r = 3.18.5-201.fc21.x86_64+debug
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

問題はRPM Fusionkmod-VirtualBox.x86_64ですkmod-VirtualBox-3.18.6-200.fc21.x86_64kmod-VirtualBox

$ sudo yum install VirtualBox kmod-VirtualBox-3.18.5-201.fc21.x86_64.x86_64

しかし、まだ上記と同じ依存性チェックエラーが発生します。私の質問は、kmodFedora 21が使用するのと同じカーネルを使用するようにVirtualBoxをどのようにインストールしますか?

この記事を書いている時点で更新しようとしましたが、3.18.6-200.fc21Fedora 21で利用可能なカーネルはまだありません。

ベストアンサー1

私の質問は、Fedora 21で使用されているカーネルと同じkmodを使用するようにVirtualBoxをインストールする方法です。

問題に対する代替ソリューションがあります。これは次のことです。akmod-VirtualBox

一般的なバイナリkmod(カーネルモジュール)の代わりにrpmfusionの「自動」ソースakmodを使用する方法と理由。

akmods (similar to dkms) is a solution to the problem of some kernel modules
depending on specific versions of a kernel. If you want to use a custom kernel,
or a test kernel -- e.g. from updates-testing or koji -- or if there is a very
new kernel in the updates repo, then you must either wait for rpmfusion to
rebuild binary kmods to match, or you must yumdownload and rpmbuild the source
rpm manually. Enter a better way: automatic kmod rebuilding.

yumを使用してakmod-VirtualBoxをインストールする方法は次のとおりです。

rpmfusionリポジトリをインストールします。

Fedora 14を最新バージョンにアップグレードする:

su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'

akmodをインストールします。

yum install akmod-VirtualBox kernel-devel-$(uname -r); akmods

VirtualBoxパッケージをインストールしてシステムを再起動していない場合は、カーネルドライバをロードする必要があります。ルートとして " systemctl restart systemd-modules-load.service"を実行してください。

源泉

おすすめ記事