Page 1 of 1

Cannot install

Posted: 25. Dec 2017, 23:11
by CentOS7
I have a fairly new desktop. I downloaded and install Ubuntu and installed Firefox, Android Studio and other pieces of software. Been using for a few months.
No problems so far...
Next I tried to install VirtualBox. I tried many methods - including using Ubuntu Software, `sudo apt install virualbox`. But encounter an error:

sudo apt-get install virtualbox-ext-pack
"
Setting up virtualbox-ext-pack (5.1.30-2) ...
virtualbox-ext-pack: downloading: http://download.virtualbox.org/virtualb ... ox-extpack
The file will be downloaded into /usr/share/virtualbox-ext-pack
License accepted.
0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to install "/usr/share/virtualbox-ext-pack/Oracle_VM_VirtualBox_Extension_Pack-5.1.30.vbox-extpack"
VBoxManage: error: The installer failed with exit code 1: VBoxExtPackHelperApp: error: The owner is not root: '/usr/lib'
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg*)" at line 1201 of file VBoxManageMisc.cpp
dpkg: error processing package virtualbox-ext-pack (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
virtualbox-ext-pack
E: Sub-process /usr/bin/dpkg returned an error code (1)

"
Is this hardware not good? How can I get it installed?

Re: Cannot install

Posted: 25. Dec 2017, 23:17
by socratis
CentOS7 wrote: I tried many methods - including using Ubuntu Software, `sudo apt install virualbox`
That's not the official VirtualBox, that's the Ubuntu fork. If you want help with that, please ask the Ubuntu forums. Or, you can install the official one from https://www.virtualbox.org/wiki/Linux_Downloads . You could also add the repository if you want to use apt-get, just look at the instructions in the Debian-based distros.
CentOS7 wrote:VBoxManage: error: The installer failed with exit code 1: VBoxExtPackHelperApp: error: The owner is not root: '/usr/lib'
I hope the error is quite clear. For security reasons the "/usr/lib" must be root-owned. Yours isn't. You need to fix this.