Page 1 of 1

how to update virtual box? needs admin privelidges [SOLVED]

PostPosted: Apr 19th, '13, 20:46
by geraldw321
hi there i want to upgrade virtualbox to VirtualBox-4.2.12-84980-Linux_amd64.run version but i get an error stating: This program must be run with administrator privileges. Aborting
how can i run this to update ? i dont see a root or admin option in the menus??? :?:

Re: how to update virtual box? needs admin privelidges

PostPosted: Apr 19th, '13, 22:23
by jkerr82508
Open a terminal (for example konsole) and enter:
Code: Select all
su -
When you are asked, enter your root password (that you set when you installed Mageia). It will not be displayed but after you have entered it the prompt will change to root@.... You can then run the installer in that terminal. If you have any Mageia virtualbox packages installed, then you should probably remove them before installing the generic version, to avoid any possible conflicts.

Jim

Re: how to update virtual box? needs admin privelidges

PostPosted: Apr 22nd, '13, 13:21
by geraldw321
ok looks like i was given permissions , BUT i got this when i ran install:
Code: Select all
[root@localhost win_c2]# VirtualBox-4.2.12-84980-Linux_amd64.run
bash: VirtualBox-4.2.12-84980-Linux_amd64.run: command not found
[root@localhost win_c2]#

Re: how to update virtual box? needs admin privelidges

PostPosted: Apr 22nd, '13, 14:17
by geraldw321
thanks isadora

Re: how to update virtual box? needs admin privelidges

PostPosted: Apr 22nd, '13, 15:11
by djennings
geraldw321 wrote:ok looks like i was given permissions , BUT i got this when i ran install:
Code: Select all
[root@localhost win_c2]# VirtualBox-4.2.12-84980-Linux_amd64.run
bash: VirtualBox-4.2.12-84980-Linux_amd64.run: command not found
[root@localhost win_c2]#


You need
Code: Select all
[root@localhost win_c2]# ./VirtualBox-4.2.12-84980-Linux_amd64.run


Linux always looks for executable programmes in specific places known as the PATH. You can see what your PATH is set to with the command
Code: Select all
$ echo $PATH
/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib64/qt4/bin:/home/derek/bin


If the programme you are trying to run is not in any of those locations then you need to specify where it can be found.
The characters './' mean 'look in the current directory'

BTW: If you are replacing the mageia supplied virtualbox, do not forget to uninstall the mageia packages first. You will need to uninstall
virtualbox
virtualbox-guest-additions
dkms-virtualbox (if installed)
virtualbox-kernel-xxxx (where xxxx depends on which kernel you are using)
You will also need to compile and install the virtualbox kernel module. I think the vbox installer will do it for you, but you will need to have the package kernel-desktop-devel-latest installed (assuming you are using the desktop kernel)