Bug 1076 - Failed to install the Extension Pack in Virtualbox because no polkit authentication agent was running
Summary: Failed to install the Extension Pack in Virtualbox because no polkit authenti...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-30 22:12 CEST by Manuel Hiebel
Modified: 2011-08-20 13:29 CEST (History)
4 users (show)

See Also:
Source RPM: virtualbox-4.0.6-2.mga1.src.rpm
CVE:
Status comment:


Attachments

Description Manuel Hiebel 2011-04-30 22:12:25 CEST
Description of problem:
Failed to install the Extension Pack in virtualbox

Version-Release number of selected component (if applicable):
virtualbox-4.0.6-2.mga1.x86_64.rpm

Steps to Reproduce:
1.download the extension pack from http://download.virtualbox.org/virtualbox/4.0.6/Oracle_VM_VirtualBox_Extension_Pack-4.0.6-71344.vbox-extpack
2.open virtualbox > file > preference > extensions > new
3.select the extension you have download

I get:

Failed to install the Extension Pack /home/manu/Oracle_VM_VirtualBox_Extension_Pack-4.0.6-71344.vbox-extpack.
The installer failed with exit code 127: Error creating textual authentication agent: Error opening current controlling terminal for the process (`/dev/tty'): No such device or address.


Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
ExtPackManager
Interface: 
IExtPackManager {2451b1ba-ab1c-42fb-b453-c58433bea8c7}
Comment 1 Ahmad Samir 2011-05-01 00:16:40 CEST
It should invoke a polkit dialogue to authenticate as root; this is what happened here, and the ext pack was installed successfully.

It looks like you're running VirtualBox as root, "you should never run VirtualBox as root", c.f. http://www.virtualbox.org/ticket/8473
Comment 2 Manuel Hiebel 2011-05-01 00:27:08 CEST
No, it was in single user.

before updating to 4.0.6 I had 4.0.4 version site (MDV) of oracle.

I noticed that I did not /usr/bin/virtualbox but /usr/bin/VirtualBox
is it maybe that?
Comment 3 Manuel Hiebel 2011-05-01 00:34:49 CEST
With installing gksu it's works.


"polkit dialogue to authenticate as root" is that the pop-up of the MCC ?
it should work with that then :/
Comment 4 Ahmad Samir 2011-05-01 01:26:14 CEST
Actually no, the authentication method I am talking about is polkit, not gksu.

You need to have a polkit authentication agent running. Which DE/window manager are you using?
Comment 5 Manuel Hiebel 2011-05-01 01:31:54 CEST
I use gnome (upgrade from mdv)
I don't know what is the polkit authentification, but the pop-up of the mcc works
Comment 6 Ahmad Samir 2011-05-01 01:40:10 CEST
mcc authentication doesn't use polkit, it uses consolehelper.

GNOME has polkit-gnome, and /usr/lib*/polkit-gnome-authentication-agent-1 should be running by default. What's the output of:
ps aux | grep polkit
rpm -qa | grep polkit
Comment 7 Manuel Hiebel 2011-05-01 01:52:06 CEST
ok for the mcc

[manu@vosdook ~]$ ps aux | grep polkit
root      1010  0.0  0.0 186228  3672 ?        Sl   00:55   0:00 /usr/lib64/polkit-1/polkitd
manu     24029  0.0  0.0  17060   864 pts/2    S+   01:49   0:00 grep --color polkit
[manu@vosdook ~]$ rpm -qa | grep polkit

polkit-gnome-0.101-1.mga1
polkit-0.101-1.mga1
lib64polkit1_0-0.101-1.mga1
lib64polkit-qt-core-1_1-0.99.0-1.mga1
lib64polkit2-0.9-8.mga1
Comment 8 Ahmad Samir 2011-05-01 02:46:33 CEST
Which display manager is used? 'cat /etc/sysconfig/desktop' , if it's not GDM, then that might be the problem.

With current polkit-gnome they've removed the autostart .desktop file from /etc/xdg/autostart, and now there's only use /usr/share/gdm/autostart/LoginWindow/polkit-gnome-authentication-agent-1.desktop which is included in the gdm package....

Which means GNOME users not using GDM are sort of screwed up... IIUC.

CC: (none) => mageia, misc, pterjan

Comment 9 Manuel Hiebel 2011-05-01 09:15:16 CEST
[root@vosdook ~]# cat /etc/sysconfig/desktop
DISPLAYMANAGER=GNOME
DESKTOP=LXDE

But I usually use GDM.

Also tested a new user,with gdm or kdm, I still get the same errors. :/
Comment 10 Ahmad Samir 2011-05-01 22:54:33 CEST
Maybe I am wrong and GNOME apps know how to invoke polkit-gnome-authentication-agent-1 only when needed, I'll need to test further.

To test if having the authentication agent running fixes the issue, as user:
/usr/lib64/polkit-gnome-authentication-agent-1

then try installing the ext pack again.
Comment 11 Manuel Hiebel 2011-05-01 23:39:51 CEST
"To test if having the authentication agent running fixes the issue, as user:
/usr/lib64/polkit-gnome-authentication-agent-1

then try installing the ext pack again."

Indeed it's works.
Comment 12 Ahmad Samir 2011-05-01 23:50:15 CEST
Actually /usr/share/gdm/autostart/LoginWindow/polkit-gnome-authentication-agent-1.desktop only pertains to the login window.

Right now even with GDM, polkit-gnome-authentication-agent-1 isn't running, and even nautilus can't mount/unmount internal HDD partitions as udev can't use polkit to authenticate without the agent running.

This looks like a packaging issue in latest gnome-polkit package, I'm looking into it.

Status: NEW => ASSIGNED

Comment 13 Ahmad Samir 2011-05-02 00:22:37 CEST
This should be fixed in the next polkit-gnome package, polkit-gnome-authentication-agent-1 will be autostarted when logging into GNOME.
Comment 14 Ahmad Samir 2011-05-02 00:33:04 CEST
This report is fixed with the next polkit-gnome, as not vbox can authenticate to install the ext pack.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED

Ahmad Samir 2011-05-02 00:34:05 CEST

Summary: Failed to install the Extension Pack in Virtualbox => Failed to install the Extension Pack in Virtualbox because no polkit authentication agent was running

Comment 15 Manuel Hiebel 2011-05-02 00:36:32 CEST
thank you to you ahmad !
Comment 16 eugeen solod 2011-08-20 13:20:40 CEST
i have no polkit-gnome installed. also, i have no installed gnome and kde.
i use sawfish and i have policykit-1 installed.
and what should i do?
i have to install it through "sudo VBoxManage extpack install <file>" ?
is this true way to install? 
i did this installation at my job's pc and i have no usb pass-trough in my virtualbox.

CC: (none) => devil_inside

Comment 17 Manuel Hiebel 2011-08-20 13:29:55 CEST
"i did this installation at my job's pc and i have no usb pass-trough in my
virtualbox."

yes it's a upstream bug, if am not wrong 

(and that is not this bug)

Note You need to log in before you can comment on or make changes to this bug.