You are not logged in.

#26 2023-07-23 06:33:55

seth
Member
Registered: 2012-09-03
Posts: 61,600

Re: [SOLVED] I can’t connect to internet after installing Arch Linux!

Yes it is a DNS resolution problem - the last outputs you provided yelled that loud and clear.
And you now installed NM to handle that for you instead of whatever approach you took before.

Sanity check: post the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Online

#27 2023-07-23 09:30:47

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,401

Re: [SOLVED] I can’t connect to internet after installing Arch Linux!

ABOhiccups wrote:

It's not DNS server. dhcpcd and wifi-menu has issues where you can't connect to internet during post-installation. The best workaround is to boot into Arch Linux ISO. Mount Root Partition and run "arch-chroot /mnt" and then download networkmanager and enable networkmanager at startup. Then unmount everything and reboot.

Please stop spreading FUD.
The outputs you provided clearly show that your setup has a major problem with dns resolution .
Installing NM appears to hide the issue so things sorta work , but DOES NOT SOLVE IT.

Help us to figure out what is causing the problem and solve the root cause.

Last edited by Lone_Wolf (2023-07-23 09:31:02)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#28 2023-08-18 20:47:25

ABOhiccups
Member
Registered: 2017-08-27
Posts: 97

Re: [SOLVED] I can’t connect to internet after installing Arch Linux!

seth wrote:

Yes it is a DNS resolution problem - the last outputs you provided yelled that loud and clear.
And you now installed NM to handle that for you instead of whatever approach you took before.

Sanity check: post the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

I just installed Arch Linux (due to I screwed up LUKS with TPM2 trying to fix TPM2 minor bug) after boot into Arch Linux. I’m back to No Internet issue. Instead of reboot back to Arch Linux ISO to grab Network Manager. I should take a screenshot with a command you asked for.

Last edited by ABOhiccups (2023-08-18 21:33:31)

Offline

#29 2023-08-18 20:52:49

seth
Member
Registered: 2012-09-03
Posts: 61,600

Re: [SOLVED] I can’t connect to internet after installing Arch Linux!

That's not the same issue (or not likely, by symptom and context)

You've no service enabled to manage the network and started dhcpcd, but it's not clear whether you even got a lease:

ip a; ip r; cat /etc/resolv.conf

Online

#30 2023-08-18 20:56:59

ABOhiccups
Member
Registered: 2017-08-27
Posts: 97

Re: [SOLVED] I can’t connect to internet after installing Arch Linux!

seth wrote:

That's not the same issue (or not likely, by symptom and context)

You've no service enabled to manage the network and started dhcpcd, but it's not clear whether you even got a lease:

ip a; ip r; cat /etc/resolv.conf

Here’s another screenshot.

Last edited by ABOhiccups (2023-08-18 21:33:13)

Offline

#31 2023-08-18 21:04:52

seth
Member
Registered: 2012-09-03
Posts: 61,600

Re: [SOLVED] I can’t connect to internet after installing Arch Linux!

You've a lease but no dns (probably the dhcp server doesn't provide any)
Edit /etc/resolv.conf and insert

nameserver 8.8.8.8
nameserver 1.1.1.1

for the google and cloudflare DNS servers.

Online

#32 2023-08-18 21:10:57

ABOhiccups
Member
Registered: 2017-08-27
Posts: 97

Re: [SOLVED] I can’t connect to internet after installing Arch Linux!

seth wrote:

You've a lease but no dns (probably the dhcp server doesn't provide any)
Edit /etc/resolv.conf and insert

nameserver 8.8.8.8
nameserver 1.1.1.1

for the google and cloudflare DNS servers.

I can’t believe your method works!

Now I understand why I’m unable connect to internet after installing Arch Linux. It must be a bug or something where Arch Linux did not grab my DNS Server from my Router or Network. I have to manually add DNS Server as you showed me.

I gonna add this to my cheat sheet for future me to know.

Thank you!

Offline

#33 2023-08-21 18:58:12

lfitzgerald
Member
Registered: 2021-07-16
Posts: 173

Re: [SOLVED] I can’t connect to internet after installing Arch Linux!

The live ISO has some fancy network autodetection. It doesn't normally get installed to the OS if you follow the install instructions. You have to separately install and configure the relevant network utils. Since that's hard to do without internet, it is usually a good idea to do it from inside the chroot, while the live ISO provides internet.

With arch you have a lot of options for configuring the network. I've found that none of them are very pleasant to deal with and some just suck. The most newbie friendly one is NetworkManager (wiki has an article) which provides a GUI (if you use something like `extra/network-manager-applet`) and a limited TUI (`nmtui`) in case you don't have graphics.

Since the live ISO is able to work on your computer, you can also try to see how that is configured and replicate the setup in your OS. It might take some effort.

Offline

#34 2023-08-21 19:19:48

seth
Member
Registered: 2012-09-03
Posts: 61,600

Re: [SOLVED] I can’t connect to internet after installing Arch Linux!

If the DHCP server doesn't advertise a DNS you're not getting one from it regardless of what service you use - on the installed system or the iso and also not w/ NM
But: the iso is most likely using resolved and that has some fallback DNS servers built-in, ie. if you're not getting one otherwise, you're getting cloudflare or google.

I've found that none of them are very pleasant to deal with and some just suck.

Have you considered that you're maybe using the wrong distribution?
It's not like other distros would be shipping other tools to manage your network, but you'll typically get systemd-networkd or networkmanager chosen for you.

Online

Board footer

Powered by FluxBB