Debian
VIrtualbox:NS_ERROR_FAILURE
大家好,我最近在我的 Windowsfx 10 筆記型電腦上安裝了 Virtualbox。
在我的筆記型電腦上安裝 Windows 10 之前,Virtualbox 執行完美。但由於我全新安裝了 Windowsfx 10。並嘗試在 Virtualbox 上執行 VM,這就是我得到的結果……
Failed to open a session for the virtual machine Boentoe. The virtual machine 'Boentoe' has terminated unexpectedly during startup with exit code 1 (0x1). Result Code: NS_ERROR_FAILURE (0x80004005) Component: MachineWrap Interface: IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}
我的作業系統
root@Windows-Fabor:/home/mohamedazizi# lsb_release -a No LSB modules are available. Distributor ID: Windowsfx Description: Windowsfx 10 Release: 10 Codename: ulyana
這是我的來源列表
root@Windows-Fabor:/home/mohamedazizi# cat /etc/apt/sources.list #deb cdrom:[Windowsfx 10 _Helloa_ - Release amd64 20200823]/ focal contrib main # This system was installed using small removable media # (e.g. netinst, live or single CD). The matching "deb cdrom" # entries were disabled at the end of the installation process. # For information about how to configure apt package sources, # see the sources.list(5) manual. deb http://ppa.launchpad.net/wseverin/ppa/ubuntu focal main deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian buster contrib
每次嘗試安裝 Virtualbox Extensions 包時都會遇到此錯誤
sudo apt install virtualbox-ext-pack
0%... Progress state: NS_ERROR_FAILURE VBoxManage: error: Failed to install "/usr/share/virtualbox-ext-pack/Oracle_VM_V irtualBox_Extension_Pack-6.1.16.vbox-extpack" VBoxManage: error: The installer failed with exit code 1: VBoxExtPackHelperApp: error: World writable: '/usr/lib' VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPac kManagerWrap, interface IExtPackManager VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg*)" at line 1424 of file VBoxManageMisc.cpp Installation error: License key incorrect or unknown problem during installation . dpkg: error processing package virtualbox-ext-pack (--configure): installed virtualbox-ext-pack package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: virtualbox-ext-pack E: Sub-process /usr/bin/dpkg returned an error code (1)
我的虛擬機版本
root@Windows-Fabor:/home/mohamedazizi# VBoxManage -v 6.1.16_Ubuntur140961
我的 Virtualbox 配置
root@Windows-Fabor:~/.config/VirtualBox# ls -l root@Windows-Fabor:~/.config/VirtualBox# ls -l total 112 -rw------- 1 root root 1184 Feb 1 14:21 compreg.dat -rw------- 1 root root 1493 Feb 1 16:20 selectorwindow.log -rw------- 1 root root 1089 Feb 1 14:42 selectorwindow.log.1 -rw------- 1 root root 1089 Feb 1 14:35 selectorwindow.log.2 -rw------- 1 root root 1562 Feb 1 14:27 selectorwindow.log.3 -rw------- 1 root root 4334 Feb 1 16:41 VBoxSVC.log -rw------- 1 root root 5097 Feb 1 16:21 VBoxSVC.log.1 -rw------- 1 root root 3916 Feb 1 16:14 VBoxSVC.log.2 -rw------- 1 root root 3916 Feb 1 16:13 VBoxSVC.log.3 -rw------- 1 root root 3916 Feb 1 15:43 VBoxSVC.log.4 -rw------- 1 root root 3915 Feb 1 14:42 VBoxSVC.log.5 -rw------- 1 root root 3915 Feb 1 14:38 VBoxSVC.log.6 -rw------- 1 root root 3915 Feb 1 14:28 VBoxSVC.log.7 -rw------- 1 root root 5388 Feb 1 14:28 VBoxSVC.log.8 -rw------- 1 root root 3800 Feb 1 14:21 VBoxSVC.log.9 -rw------- 1 root root 1690 Feb 1 16:20 VirtualBox.nope -rw------- 1 root root 1608 Feb 1 16:20 VirtualBox.xml -rw------- 1 root root 30001 Feb 1 14:21 xpti.dat
root@Windows-Fabor:~# ls -ld /usr/lib drwxrwxrwx 147 root root 12288 Aug 25 03:05 /usr/lib
我真的很感激任何幫助。
Linux mint Ulyana 基於 Ubuntu Focal Fossa
更改以下行:
deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian buster contrib
至(使用
eoan
代號):deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian eoan contrib
然後刪除已安裝的 virtualbox 並執行:
sudo apt update sudo apt-get install virtualbox-6.1 sudo apt install virtualbox-ext-pack
權限應該是
drwxr-xr-x
,這似乎是安裝失敗的原因。嘗試sudo chmod go-w /usr/lib
然後sudo apt install virtualbox-ext-pack
。我希望這是唯一具有錯誤權限的目錄。