You are not logged in.

#1 2016-05-26 00:31:36

oliverlc
Member
From: Guildford, UK
Registered: 2016-05-26
Posts: 4

Packagekit module failing due to HookDir in pacman.conf

As the subject says:

My packagekit systemd module is failing to load, apparently due to the HookDir option in /etc/pacman.conf being used.


Is this an issue others have seen?
Is it fixable on my end or do we think this is a bug?
If it is a bug, is it arch specific (Given it's relating to pacman.conf I assume it is?)

Offline

#2 2016-05-26 02:04:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Packagekit module failing due to HookDir in pacman.conf

I gather you are posting this here as a result of some bug report you received from an arch linux user, correct?  While I appreciate you wanting to work to patch this up, if you want help from users here we are going to need a lot more information.

What is failing to load?  A kernel module can fail to load, but I don't know what a systemd module is.  Do you mean a systemd service?  If so, do you mean it is failing to start?  If so, what systemd service?  What's in the service file?  What is the error message?   What is the systemctl status output?

What makes you think this is due to the HookDir option in pacman.conf?  What is your HookDir option set to?  have you tried other settings?

Offering potential interpretations may be ok sometimes, but offering interpretations in the absence of the symptoms definitely isn't.  We can't see what you see.  Describe the problem.

Mod note: not a system adminstration issue.  Moved to N.C.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2016-05-26 19:19:00

oliverlc
Member
From: Guildford, UK
Registered: 2016-05-26
Posts: 4

Re: Packagekit module failing due to HookDir in pacman.conf

My apologies, I posted in the early morning and wasn’t particularly verbose in describing the issue.

The systemd service, packagekit.service, is failing to start upon system boot or using the ‘systemctl start packagekit.service’ command. Whilst this isn’t actually causing me any issues as far as I can tell the red “failed” text on boot irritates me.

I have narrowed it down to the ‘HookDir’ directive in the /etc/pacman.conf file directly from the output of the ‘systemctl status packagekit.service’. The pertinent line from the output is:

May 26 13:24:40 serenity packagekitd[581]: (packagekitd:581): PackageKit-alpm-ERROR **: Failed to initialize alpm: using /etc/PackageKit/alpm.d/pacman.conf: /etc/PackageKit/alpm.d/pacman.conf:8/etc/pacman.conf:18unrecognised directive 'HookDir'

I have commented out the ‘HookDir’ directive in /etc/pacman.conf and the service then starts fine. Thus showing me it is this causing the issue.

The output from systemctl status shows it is the directive itself that is causing the issue, not what it is set to. For sake of completeness, I currently have it set to:
“HookDir      = /opt/pacman_hooks/hooks/”

However interesting patching this issue would be, I simply do not have the time right now. The original post was meant to gauge if this is me doing something stupid instead of a bug; having written out this post I am more convinced that is not the case. I then aimed to ascertain if this was an Arch only issue and thus if the bug should be reported on the Arch package page, or upstream.

Offline

#4 2016-05-26 19:34:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Packagekit module failing due to HookDir in pacman.conf

Ah, thanks, this is much more clear.  I suspect packagekit has not been updated for pacman 5.0.  From a quick check of their bug tracker, it seems pacman-related bugs from last year have still not been addressed.  Do you use packagekit?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2016-05-27 17:18:10

oliverlc
Member
From: Guildford, UK
Registered: 2016-05-26
Posts: 4

Re: Packagekit module failing due to HookDir in pacman.conf

No I don't use packagekit, expect maybe unwittingly through another program.

My first thought when I saw it was failing was "can I just remove the package", but alas, it is needed by simple-scan.

I've tried disabling the service through systemctl, but the operation times out. Disable an 'optional' service such as GDM dosen't time out however.

Offline

#6 2016-05-27 17:39:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Packagekit module failing due to HookDir in pacman.conf

packagekit is (I believe) used by gnome's software center.  Otherwise (and perhaps even in this case) it probably shouldn't be used in arch linux.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB