Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#23999 - [dhclient] package missing /var/lib/dhclient (and possibly others)

Attached to Project: Arch Linux
Opened by Owen Tuz (owentuz) - Saturday, 30 April 2011, 11:14 GMT
Last edited by Isenmann Daniel (ise) - Tuesday, 13 September 2011, 13:32 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Kevin Piche (kpiche)
Isenmann Daniel (ise)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

dhclient appears to be missing /var/lib/dhclient and will be unable to create a lease file.

I've put this here as I believe it may be a packaging error - my apologies if this is not the case.

I found this after becoming frustrated and uninstalling: my original error messages stated that it could not write to /var/state/dhclient either, but this didn't happen on the second install. I'm not sure why.


Workaround:

From a terminal, enter "sudo mkdir /var/lib/dhclient" (...without quotes).
If needs be, do the same for any other directories mentioned in /var/log/errors.log

Additional info:

Package version: 4.2.1.1-1
/var/log/errors.log shows messages along the lines of "could not create /var/lib/dhclient/[x].lease"

This seems to be a resurgence of an old bug:
https://bugs.archlinux.org/task/6333
https://bugs.archlinux.org/task/21649

Similarly https://bugs.archlinux.org/task/23308

Steps to reproduce:

Install dhclient and try to use it.
This task depends upon

Closed by  Isenmann Daniel (ise)
Tuesday, 13 September 2011, 13:32 GMT
Reason for closing:  Works for me
Additional comments about closing:  Can't really reproduce this bug. I will close it. If it still exists, then please reopen it.
Comment by Isenmann Daniel (ise) - Tuesday, 17 May 2011, 08:59 GMT
As you can see in the PKGBUILD (http://projects.archlinux.org/svntogit/packages.git/tree/dhcp/trunk/PKGBUILD) the dhclient and dhcp server are using /var/state/dhclient and /var/state/dhcp as directories for their lease files. The directories you mentioned aren't used by the package. Tested here in my PC and dhclient installation created /var/state/dhclient and dhclient creates a dhclient.leases there.

The same version you have entered: 4.2.1.1

Are you sure that you are using this version?
Comment by Owen Tuz (owentuz) - Tuesday, 17 May 2011, 12:57 GMT
Hmm, that's weird. I think so.

Running "dhclient --version" outputs "isc-dhclient-4.2.1-P1"

Loading...