4

I've installed Arch Linux today and am a bit of a noob at using it, so when I had done the installation my system would connect too my network fine, but after rebooting it stopped and gave me an error

"Job for [email protected] failed because the control process exited with error code"

I done some research and found out my system does not have a DHCP daemon known as dhcpd

So since my system has no network connection i went on another computer and downloaded the tar file for dhcpd.service from the Arch Linux package website using this link dhcpd download package

Since this is a tar file I'm not quite sure how to download it, I've already ran the ./configure file as well as ran "make" and "sudo make install" but the daemon doesn't seem to be running on my system when I checked with systemctl. I'd really appreciate if someone could please help me.

3
  • You're better off installing software with pacman in the future. But, what happens when you attempt to run the binary? Did you enable the dhcpd service?
    – Pheric
    Commented Aug 21, 2020 at 23:56
  • Well I cant install it with pacman since I have no internet connection
    – programmer
    Commented Aug 22, 2020 at 10:40
  • Just for clarification: a DHCP server daemon dhcpd will distribute IP addresses and other network configuration information to other hosts. It will not help your system get a network connection if none exists. On the other hand, a DHCP client daemon dhcpcd (one-letter difference!) would request configuration information from a DHCP server, and use that to configure your network interface(s).
    – telcoM
    Commented Jun 5, 2021 at 14:03

1 Answer 1

6

What you want is the dhcpcd package. It’s part of the installation environment and I assume it worked when you installed. To install dhcpcd on your system do the following

  1. Boot the installation environment.
  2. arch-chroot into your new installation. The Arch installation guide tells you how to do this.
  3. In the new installation update packages with pacman -Syu
  4. Install dhcpcd with pacman -S dhcpcd
  5. Start the service with sudo systemctl enable dhcpcd so the dhcpcd client will be active after the reboot.
  6. Exit the chroot and reboot
  7. Check out the Arch wiki for dhcpcd configuration

Alternatively there is an article on the Arch wiki that describes how to install a package in a tar ball here https://wiki.archlinux.org/index.php/offline_installation_of_packages

Good luck

2
  • Try to use markdown formatting in order to enhance readability ;-)
    – mattia.b89
    Commented Aug 22, 2020 at 12:15
  • Very helpful answer! Don't forget to start/enable the dhcpcd service after configuring it (as mentioned on Arch Wiki). For systemd, you can do it like so: (sudo) systemctl enable dhcpcd. Commented Sep 18, 2022 at 22:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .