Home > Uncategorized > PolicyKit Solutions with Ubuntu 8.04

PolicyKit Solutions with Ubuntu 8.04

Imagine my joy, when having just install all of the updates for Ubuntu 8.04, and finding that I have lost my network connection because the hardware access layer, hal, has failed. Not only that, I now have no access to the administration tools as the PolicyKit will not allow the Unlock process on any administrative tools, including my network connection. This is a total show stopper….no network connection, no permissions to change the no network connections!!!

Here is the Error after an Update:
Setting up hal (0.5.11~rc2-1ubuntu8.1) …
* Reloading system message bus config… [ OK ]
polkit-read-auth-helper: needs to be setgid polkituser
polkit-auth: NotAuthorizedToReadAuthorizationsForOtherUsers: uid 0 is not authorized to read authorizations for uid 111 (requires org.freedesktop.policykit.read)
polkit-read-auth-helper: needs to be setgid polkituser
polkit-auth: NotAuthorizedToReadAuthorizationsForOtherUsers: uid 0 is not authorized to read authorizations for uid 111 (requires org.freedesktop.policykit.read)
dpkg: error processing hal (–configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
hal
E: Sub-process /usr/bin/dpkg returned an error code (1)

Here is how I fixed it.

First…panic…this is a disaster, but it can be fixed.

Second…create a network connection.
You desperately need a network connection in order to fix this. Configure your network interface with a static IP Address as my problem was that it would no longer accept an IP supplied by DHCP.

sudo vim /etc/network/interfaces

iface eth0 inet static
address 192.168.5.2
netmask 255.255.255.0
gateway 192.168.5.1

auto eth0

Make sure you enter the information for your network. You also need to enter the gateway IP or internal IP Address of your router. Save your configuration and then restart your network with this command:

sudo /etc/init.d/networking restart

This should provide you with a network connection. It will allow you the ability to do research and download any updates that you might need.

Third…reinstall PolicyKit.
You can see from the information below that this is for PolicyKit .7-2. Before you make any changes verify that this is the version you are having problems with.

sudo dpkg -l policykit*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii policykit 0.7-2ubuntu7 framework for managing administrative polici
ii policykit-gnom 0.7-2ubuntu1.1 GNOME dialogs for PolicyKit

Now reinstall PolicyKit

apt-get install –reinstall policykit

Fourth…reinstall hal.

apt-get install –reinstall hal
Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/420kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database … 118858 files and directories currently installed.)
Preparing to replace hal 0.5.11~rc2-1ubuntu8.1 (using …/hal_0.5.11~rc2-1ubuntu8.1_i386.deb) …
* Stopping Hardware abstraction layer hald [ OK ]
Unpacking replacement hal …
Setting up hal (0.5.11~rc2-1ubuntu8.1) …
* Reloading system message bus config… [ OK ]
* Starting Hardware abstraction layer hald [ OK ]

Fifth….Restart Your System.
That should do it….just another fix.

About these ads
Categories: Uncategorized
  1. Bob
    July 31, 2008 at 11:45 pm

    apt-get install –reinstall policykit

    That’s, what I was looking for…

    HAL is very compley now: DBUS, policykit, network-manager… Huch! Who understands it?

  2. Cruddy
    August 10, 2008 at 4:33 pm

    $ sudo apt-get install –reinstall policykit
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 20 not upgraded.
    2 not fully installed or removed.
    After this operation, 0B of additional disk space will be used.
    Do you want to continue [Y/n]? Y
    Setting up policykit (0.7-2ubuntu7) …
    chown: invalid group: `root:polkituser’
    dpkg: error processing policykit (–configure):
    subprocess post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of hal:
    hal depends on policykit (>= 0.7); however:
    Package policykit is not configured yet.
    dpkg: error processing hal (–configure):
    dependency problems – leaving unconfigured
    Errors were encountered while processing:
    policykit
    hal
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  3. Cruddy
    August 10, 2008 at 4:34 pm

    To fix the above error…

    sudo groupadd polkituser
    then
    sudo apt-get install –reinstall policykit
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 20 not upgraded.
    2 not fully installed or removed.
    After this operation, 0B of additional disk space will be used.
    Do you want to continue [Y/n]? Y
    Setting up policykit (0.7-2ubuntu7) …

    Setting up hal (0.5.11~rc2-1ubuntu8.2) …
    * Reloading system message bus config… [ OK ]
    * Starting Hardware abstraction layer hald

    YAY!

  4. Mark
    September 19, 2008 at 2:54 pm

    You are awesome! Thanks!!!

  5. Ronald Rios
    November 6, 2008 at 1:24 pm

    Superb, you are the best! It was driving me crazy and now thanks to you is working!!!

  6. Travis
    August 6, 2009 at 2:54 am

    This is exactly what I was looking for, thank you so much! saved me from a re-install

  7. August 6, 2009 at 2:55 am

    Glad to help!

  8. Srikrishna Bhat
    September 29, 2010 at 2:12 pm

    I am getting the same error while trying to re-install the policykit

    sudo apt-get install –reinstall policykit

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    The following packages were automatically installed and are no longer required:
    libdns35 linux-headers-2.6.24-25-generic linux-headers-2.6.24-25
    Use ‘apt-get autoremove’ to remove them.
    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 31 not upgraded.
    4 not fully installed or removed.
    Need to get 0B/51.2kB of archives.
    After this operation, 0B of additional disk space will be used.
    Do you want to continue [Y/n]? Y
    (Reading database … 262133 files and directories currently installed.)
    Preparing to replace policykit 0.7-2ubuntu7 (using …/policykit_0.7-2ubuntu7_i386.deb) …
    Unpacking replacement policykit …
    Setting up policykit (0.7-2ubuntu7) …

    Setting up hal (0.5.11~rc2-1ubuntu8.3) …
    * Reloading system message bus config… [ OK ]
    polkit-read-auth-helper: needs to be setgid polkituser
    polkit-auth: NotAuthorizedToReadAuthorizationsForOtherUsers: uid 0 is not authorized to read authorizations for uid 111 (requires org.freedesktop.policykit.read)
    polkit-read-auth-helper: needs to be setgid polkituser
    polkit-auth: NotAuthorizedToReadAuthorizationsForOtherUsers: uid 0 is not authorized to read authorizations for uid 111 (requires org.freedesktop.policykit.read)
    dpkg: error processing hal (–configure):
    subprocess post-installation script returned error exit status 1

    Thanks for your time

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 57 other followers

%d bloggers like this: