Skip to content

DHCP broken after install

It’s been a while since I installed arch, so I worked through the installation guide at https://wiki.archlinux.org/index.php/Installation_guide

I installed the correct essential packages: pacstrap /mnt base linux linux-firmware

I added my hostname to /etc/hostname and added the entries to /etc/hosts

But after completing the install, I’m unable to access the internet. I set the enp4s0 Ethernet interface to up, but still nothing.

I tried to do systemctl enable dhcpcd , but it returned the error: “Failed to enable unit: unit file dhcpcd.service does not exist

2 points3 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 100% up
Kind
Text
ID
eaw8ca

Author

5
posts
7
comments
0
media
View profile

7 comments

unknown author3 hidden

Deleted before we saved it.

6 points

systemd-networkd and its cousin systemd-resolved are available because they come with systemd.

4 points
unknown author2 hidden

Deleted before we saved it.

1 points

This is it. I had the same problem as OP when I installed Arch. Once you’ve done:

arch-chroot

You’re in your new installation. Just follow the installation guide till the end, but do not reboot! First you have to install the dhcpcd service by running:

sudo pacman -S dhcpcd

After successfully installing dhcpcd on your new Arch install, run:

systemctl enable dhcpcd

This is how I solved the problem, let me know if it works

2 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.