hal can't upgrade in chroot: polkit-auth call in postinst fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hal (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt | ||
Bug Description
Binary package hint: hal
Hello,
I'm running a modified LTSP chroot where I installed the 'hal' package. When running apt-get dist-upgrade, upgrading will fail because of a call to /usr/bin/
# Allow hal to query the PolicyKit database to enforce privileges
if ! /usr/bin/
fi
This is the resulting error message:
> polkit-auth: This operation requires the system message bus and ConsoleKit to be running
Since I'm inside a chroot environment, the 'system message bus' and consolekit can't be running. Can you make upgrading a bit smoother, please?
Here's the full aptitude log:
root@prometheus:/# LTSP_HANDLE_
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following partially installed packages will be configured:
gnome-
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up hal (0.5.11~
polkit-auth: This operation requires the system message bus and ConsoleKit to be running
polkit-auth: AuthorizationAl
dpkg: error processing hal (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of gnome-power-
gnome-
Package hal is not configured yet.
dpkg: error processing gnome-power-manager (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-session:
gnome-session depends on gnome-power-
Package gnome-power-manager is not configured yet.
dpkg: error processing gnome-session (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of network-manager:
network-manager depends on hal (>= 0.5.7.1); however:
Package hal is not configured yet.
dpkg: error processing network-manager (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of network-
network-
Package network-manager is not configured yet.
dpkg: error processing network-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of update-notifier:
update-notifier depends on hal; however:
Package hal is not configured yet.
dpkg: error processing update-notifier (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
hal
gnome-
gnome-session
network-manager
network-
update-notifier
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up hal (0.5.11~
polkit-auth: This operation requires the system message bus and ConsoleKit to be running
polkit-auth: AuthorizationAl
dpkg: error processing hal (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of update-notifier:
update-notifier depends on hal; however:
Package hal is not configured yet.
dpkg: error processing update-notifier (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of network-manager:
network-manager depends on hal (>= 0.5.7.1); however:
Package hal is not configured yet.
dpkg: error processing network-manager (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of network-
network-
Package network-manager is not configured yet.
dpkg: error processing network-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-power-
gnome-
Package hal is not configured yet.
dpkg: error processing gnome-power-manager (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-session:
gnome-session depends on gnome-power-
Package gnome-power-manager is not configured yet.
dpkg: error processing gnome-session (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
hal
update-notifier
network-manager
network-
gnome-
gnome-session
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
Having the same problem with hal 0.5.11~ rc2-1ubuntu7. Would appreciate a workaround.