Skip to content

Got stuck on the beginners guide

[SOLVED]

Hi all - first time trying to install Arch Linux. Following the beginner's guide seemed simple enough, few issues were easily troubleshooted. After partitioning and mounting my drives however, during the installation step, it started returning could not resolve host when trying to get the files from the mirror websites. Things spiraled down from there: even though it had been working earlier, ping archlinux.org now returned temporary failure in name resolution. As per the guide instructions, I disabled the dhcpcd service, and kept trying. I spent several solid hours on google and the newbie corner trying different things to figure this out, but nothing is working. My ethernet and wifi are both in the UP state, and I can't seem to find the point of failure. I'm at a loss - any help/suggestions are helpful. Also, if anyone needs any info in trying to identify the issue, please let me know, as I don't know what to provide. Thanks!

Edit: Figured this might help you guys --

>> systemctl --type=service

...

dhcpcd@enp1s0.service: loaded, failed, failed

...

system-resolved.service: loaded, failed, failed (could be why it says temporary failure in name resolution)

Edited 20 Apr 2018. We only hold this version.

2 points24 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
2 · 100% up
Kind
Text
ID
8djrtk

Author

4
posts
45
comments
2
media
View profile

26 comments

What is your networking hardware? Try starting dhcpcd and what is the output?

3 points

Eth: enp1s0, Wifi: wlp2s0

dhcpcd

...

no IPv6 routers available

timed out

...

(My router is most definitely configured for IPv6)

1 points

I'm admittedly not experienced with arch linux, but I have been building my own setup script(s) that let me go from archiso to a full install automatically.

Try this:

dhcpcd enp1s0

ip link set enp1s0 up

this might not even be the "systemd" way to do it, but that's how I initially get internet connectivity back after you reboot in the install guide.

also I assume you're confident it's enp1s0 also but don't forget to check w/ ls -l /sys/class/net

edit: nope I'm a dumbass. sorry just noticed this part of your original post:

I spent several solid hours on google and the newbie corner trying different things to figure this out, but nothing is working. My ethernet and wifi are both in the UP state, and I can't seem to find the point of failure.

you've done the obvious things like reboot, and take the interface down and then up manually / etc right? i'm gonna go read more about dhcpcd. also I don't even have resolved (or networkd) running if I do systemctl --type=service | grep "resolve". but I'm in a VM so that's a big difference

2 points

Try first to ping 8.8.8.8. If this works but ping archlinux.org or ping google.com doesn't work, then it might be a problem with your DNS resolution. Check /etc/resolv.conf file, backup it (cp /etc/resolv.conf /etc/resolv.conf.old) and change the nameserver in it : echo "nameserver 208.67.222.222\nnameserver 208.67.220.220" > /etc/resolv.conf: these are OpenDNS' DNS, which are among the fastest DNS.

Check again by trying to ping archlinux.org.

3 points

ping 8.8.8.8

connect: Network is unreachable

ping archlinux.org

ping: archlinux.org: Temporary failure in name resolution

I followed all your steps, and tried again, but got the same result both times (before and after).

1 points

Alright, so there is a tool called ip that you can use to manually connect to the internet without modifying any files as long as you know your network subnetting and routing. For example:

  1. Determine IP Interface name: ip link

  2. Enable IP Interface: ip set INT up

  3. Configure IP, Subnet, Brodcast address: ip addr add IP/SUB broadcast BROAD dev INT

  4. Add route: ip route add default via GATE

For example:

ip link set eth0 up
ip addr add 192.168.1.2/24 broadcast 192.168.1.255 dev eth0
ip route add default via 192.168.1.1
2 points

First of all, if I run ip link, it shows right now enp1s0 (eth0) down, and wlp2s0 (wan0) up. However, if I run ip link set enp1s0 up, and check ip link again, it doesn't change to state up. So that's definitely weird.

Also, what is the BROAD you refer to? and the GATE? where do I find this information?

1 points

BROAD was a placeholder for Broadcast Address. Which if you haven't customized is likely 192.168.1.255. This address is used to broadcast a packet to an entire subnet.

GATE was a placeholder for your Default Gateway. A Default Gateway is basically the router for each subnet. Unless you've customized it, or are operating on a nonstandard subnet, this is likely 192.168.1.1.

ip addr will give you a more comprehensive summary of your current network configuration than ip link will. It's possible that ip link will only return an UP status when an actual connection is made. Regardless of whether or not you've set the interface up.

EDIT: Try the following

ip link set wlp2s0 down
ip link set enp1s0 up
ip addr add 192.168.1.240/24 broadcast 192.168.1.255 dev enp1s0
ip route add default via 192.168.1.1

If you are connected to the internet after that, install a Network Daemon such as NetworkManager: pacman -S NetworkManager

Then configure it with nmtui and enable it with systemctl enable networkmanager so that you will be connected to the internet at boot. Otherwise you'll need to use those ip commands every time you turn on your computer.

Don't forget to disable the default networking daemon. You don't want multiple daemons fighting to connect to the internet each time you turn on your computer.

systemctl disable systemd-networkd

systemctl disable systemd-resolved

4 points

Try with dhclient, and read about netctl (that's what's underneath wifi-menu). If you do not have network, you can't proceed with installation. Do you know which wifi device you have (lspci or lsusb should help find out) if your device is not a supported device for the kernel drivers, you have to find and launch the appropriate driver (Broadcom for example).

2 points

>> dhclient

summary: print_req_error: I/O error, dev loop0, sector 9464 to 9482

SQUASHFS error: ...read data failed to read block

zsh: input/output error: dhclient

Will definitely read up on netctl, and get back to you afterwards :)

Ethernet controller: Realtex RTL8111/8168/8411

Network controller: Intel Corp. Wireless 3160

I'm pretty sure the devices are supported

Edit: in trying to use netctl, the command netctl-list itself returns many errors (I/O error, dev loop0, sector xxxxx, SQUASHFS, etc.)

1 points
unknown author

Deleted before we saved it.

1 points

Basic networking troubleshooting might help, you've probably already done this but just to be sure:

Try another device on the same cable to rule out physical problems

Check the hardware itself, flashy NIC lights?

Check to be sure you have a valid IP address/mask set (ip addr)

Ping the router itself

2 points

Ethernet cable checked with desktop (Windows 10), working perfectly. Wifi on all other hardware is up and running as well.

Modem flashing, router flashing, lots of flashing :)

>> ip addr

...

enp1s0: ... inet6 fe80::xxxxxxxx...

wlp2s0: ... inet 192.xxx.x.xx/24

"valid_lft forever" for both

1 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.