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.
About this post
- Posted
- Archived
- Edited
- Score
- 2 · 100% up
- Kind
- Text
- ID
- 8djrtk
26 comments
What is your networking hardware? Try starting dhcpcd and what is the output?
Eth: enp1s0, Wifi: wlp2s0
dhcpcd
...
no IPv6 routers available
timed out
...
(My router is most definitely configured for IPv6)
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 enp1s0ip link set enp1s0 upthis 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/netedit: nope I'm a dumbass. sorry just noticed this part of your original post:
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
Try first to
ping8.8.8.8. If this works butpingarchlinux.orgorpinggoogle.comdoesn't work, then it might be a problem with your DNS resolution. Check/etc/resolv.conffile, backup it (cp /etc/resolv.conf /etc/resolv.conf.old) and change thenameserver in it: echo "nameserver208.67.222.222\nnameserver208.67.220.220" > /etc/resolv.conf: these are OpenDNS' DNS, which are among the fastest DNS.Check again by trying to
ping archlinux.org.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).
Hmm, if you even can't ping 8.8.8.8, it means you don't even have an internet access.
First, do you have an IP address ? As u/Bronin_Wrathbourne says below, can you ping your router ?
What about "wifi-menu"
can you setup your wifi with that then ping?
I/O error, dev loop0, sector 50214
(print_req_error, SQUASHFS error, unable to read fragment cache entry, etc.)
Alright, so there is a tool called
ipthat 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:Determine IP Interface name:
ip linkEnable IP Interface:
ip set INT upConfigure IP, Subnet, Brodcast address:
ip addr add IP/SUB broadcast BROAD dev INTAdd route:
ip route add default via GATEFor example:
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?
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 addrwill give you a more comprehensive summary of your current network configuration thanip linkwill. It's possible thatip linkwill only return anUPstatus when an actual connection is made. Regardless of whether or not you've set the interface up.EDIT: Try the following
If you are connected to the internet after that, install a Network Daemon such as
NetworkManager:pacman -S NetworkManagerThen configure it with
nmtuiand enable it withsystemctl enable networkmanagerso that you will be connected to the internet at boot. Otherwise you'll need to use thoseipcommands 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-networkdsystemctl disable systemd-resolvedTry 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).
>> 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.)
Deleted before we saved it.
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
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
Is there some "Beginners guide" on Arch Wiki? I thought they removed that
Now it just redirects to the Installation Guide :)
Deleted before we saved it.