Linux Mint:virtualboxを削除/削除できません

Linux Mint:virtualboxを削除/削除できません

私はLinux Mint 17を使用しており、システムからvirtualbox-4.3を削除する必要がありますが、次のエラーが発生します。

$ sudo apt-get remove --purge virtualbox-4.3

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  virtualbox-4.3*

0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 155 MB disk space will be freed.
Do you want to continue? [Y/n] y

(Reading database ... 194033 files and directories currently installed.)

Removing virtualbox-4.3 (4.3.12-93733~Ubuntu~raring) ...
/etc/init.d/vboxdrv: 85: .: Can't open /etc/init.d/functions
invoke-rc.d: initscript vboxdrv, action "stop" failed.

dpkg: error processing package virtualbox-4.3 (--purge):
 subprocess installed pre-removal script returned error exit status 2

Errors were encountered while processing:

 virtualbox-4.3

E: Sub-process /usr/bin/dpkg returned an error code (1)

助けてください。本当にありがとうございます。

ベストアンサー1

アップストリーム VirtualBox パッケージには、デプロイを検出しようとする init スクリプトが含まれています。これはあなたのシステムでは正しく機能しません。/etc/init.d/functionsRed Hat製品でなければならないDebianベースのシステムを探しています。

スクリプトを変更しようとする代わりにパッケージを消去するので、変更する方が簡単です。ファイルの上部に次の行を追加します/etc/init.d/vboxdrv

#!/bin/sh
rmmod vboxpci vboxnetadp vboxnetflt vboxdrv
rm /dev/vboxdrv
exit 0

そして走る

apt-get remove --purge virtualbox-4.3

おすすめ記事