You are not logged in.

#1 2023-07-17 08:19:42

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

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

After I installed Arch Linux and GRUB to my SSD.

I reboot the computer. I login as root.

I enter a command for wired Ethernet.
dhcpcd

I get “Failed to revert interface configuration:” errors.

I enter “wifi-menu” and connect to my router.

I enter “ping -c 5 google.com” to make sure I have internet. The command line failed and I’m not connected to internet.

Has anyone have this issue too while installing Arch Linux?

Is there a way to fix it?

Edit: Turns out there was a bug or something where Arch Linux won’t grab a DNS Server from our main network. We just have to manually add DNS Server. Here’s a fix.

Enter “nano /etc/resolv.conf” and insert

nameserver 1.1.1.1
nameserver 1.0.0.1

Last edited by ABOhiccups (2023-08-18 21:39:06)

Offline

#2 2023-07-17 11:12:58

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

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

sounds like you may already be running a network service that is started before logging in.

What is the output of ip link, ip -addr, ip route and ip -6 route just after logging in ?


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

Online

#3 2023-07-17 11:26:31

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

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

Lone_Wolf wrote:

sounds like you may already be running a network service that is started before logging in.

What is the output of ip link, ip -addr, ip route and ip -6 route just after logging in ?

I tried to run pacman -Sy command and all mirrors url has errors. That tells me I’m not connected to the internet.

Offline

#4 2023-07-17 11:51:48

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

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

pacman -Sy command

Don't run that , run pacman -Syu instead.

The failure of the pacman command indicates DNS resolution on your system doesn't work, but that's not the same as having no network connection .

In order to connecct with a website/url many things have to work together.
The output of the commands I asked should give enough info to verify a big part of those things and allow narrowing down possible causes..


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

Online

#5 2023-07-17 21:13:52

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

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

Lone_Wolf wrote:
pacman -Sy command

Don't run that , run pacman -Syu instead.

The failure of the pacman command indicates DNS resolution on your system doesn't work, but that's not the same as having no network connection .

In order to connecct with a website/url many things have to work together.
The output of the commands I asked should give enough info to verify a big part of those things and allow narrowing down possible causes..

I run pacman -Syu. All mirrors has errors and won’t update.

There is something wrong with Arch Linux that won’t connect online after installing to SSD. I can connect online in ISO Boot just fine.

Offline

#6 2023-07-17 21:30:52

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

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

There's nothing wrong with archlinux.
What network daemon did you install and configure and how did you configure it?
What is the output of

ip a; ip r; ping -c 1 _gateway; ping -c1 google.com

Don't narrate that, link a screenshot in doubt.

Offline

#7 2023-07-17 21:39:32

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

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

seth wrote:

There's nothing wrong with archlinux.
What network daemon did you install and configure and how did you configure it?
What is the output of

ip a; ip r; ping -c 1 _gateway; ping -c1 google.com

Don't narrate that, link a screenshot in doubt.

Here’s a list of Network Drivers I’ve installed before reboot to SSD.

dhcpcd
dialog
netctl
ppp
wireguard-tools
wireless_tools
wpa_supplicant

Offline

#8 2023-07-17 21:42:51

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

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

This are not "network drivers", "dialog" doesn't even relate to networking and you've not explained how you configured those.
Add

netctl list

to the list of commands you'll post the output for.

Offline

#9 2023-07-17 22:01:14

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

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

seth wrote:

This are not "network drivers", "dialog" doesn't even relate to networking and you've not explained how you configured those.
Add

netctl list

to the list of commands you'll post the output for.

I enter netctl list. It’s not listing profiles or drivers.

Offline

#10 2023-07-17 22:02:41

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

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

seth wrote:

Don't narrate that, link a screenshot in doubt.

Offline

#11 2023-07-17 22:34:34

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

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

seth wrote:
seth wrote:

Don't narrate that, link a screenshot in doubt.

https://i.ibb.co/sHhSsN6/IMG-3417.jpg

Last edited by ABOhiccups (2023-07-17 22:45:22)

Offline

#12 2023-07-17 22:40:26

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

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

*link*, the board has a 250x250px max rule. Replace the image with a thumbnail or link.
Also it's not most of the commands that I asked for roll but "no interfaces have a carrier" is an *OBVIOUS* roadblock.
You'll have to plug a cable into the ehternet port…

Offline

#13 2023-07-17 22:47:12

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

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

seth wrote:

*link*, the board has a 250x250px max rule. Replace the image with a thumbnail or link.
Also it's not most of the commands that I asked for roll but "no interfaces have a carrier" is an *OBVIOUS* roadblock.
You'll have to plug a cable into the ehternet port…

The Ethernet cable was plugged in to my laptop. I can connect to internet in ISO boot. But I can't connect to internet in SSD Boot during post-installation.

Offline

#14 2023-07-17 22:55:16

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

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

The Ethernet cable was plugged in to my laptop.

dhcp thinks differently.
Don't repeat some fairy tales over and over again, post the output of the commands I asked for.
And obviously check the cable seating. If it's loose (sometimes the latch protection collides with the case of your PC and prevents it from fixing) you'll get erratic behavior out of that.

While at it, also

lspci -k

Offline

#15 2023-07-17 23:19:07

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

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

seth wrote:
The Ethernet cable was plugged in to my laptop.

dhcp thinks differently.
Don't repeat some fairy tales over and over again, post the output of the commands I asked for.
And obviously check the cable seating. If it's loose (sometimes the latch protection collides with the case of your PC and prevents it from fixing) you'll get erratic behavior out of that.

While at it, also

lspci -k

I think it's not my PC or my own network. I use both Ethernet and Wi-Fi on ISO Boot. I can connect to the internet just fine and I can download and install packages that I need before reboot to SSD Boot.

In SSD Boot. I use both Ethernet and Wi-Fi. I can't connect to internet. For Ethernet, I need to enter dhcpcd and it has errors. I enter wifi-menu and connect to my router through Wi-Fi and enter pacman -Sy (and pacman -Syu) and all mirrors has errors. I enter ping -c 5 google.com and it tells me I'm not connected to internet.

I don't know if there's a extra step I missed.

Here's how I install Arch Linux.

In ISO Boot. First thing I need to connect to internet. For Ethernet, I'm good to go! But for Wi-Fi. I have to enter iwctl command. After I enter ping -c 5 google.com. I am connected to internet.

Then I use luks commands to create Encryption Partition and create 2 lvm2 group partitions in an Encryption Partition. 1 for Root and other for Home. I create Boot partition and I have EFI partition (512 MB) from Windows 10/11. I format both Boot partition and Root and Home groups as EXT4. Then I mount both partition and groups to /mnt directories.

Then I install Arch Linux to Root Group by using pacstrap command. Then I enter chroot-arch to go into /mnt.

Then I install Kernels, Networks, FS Formats, and other important packages I need with pacman command. I setup lvm2 encryption, locale, time zone, and Root Password. I mount EFI partition to /boot/efi. Then I install and setup GRUB. Exit /mnt. Run genfstab command. Umount all partitions and reboot to SSD boot.

I login to Root. I enter dhcpcd (for Ethernet) or wifi-menu (for Wi-Fi). I enter ping -c 5 google.com and pacman -Syu. And here I am. No internet for me. I can connect to internet on Windows 10/11, my Smartphone, my Smart TVs, and my Game Consoles. It's just post-installed Arch Linux I can't connect to internet right now.

If anyone knows there is a bug or extra steps I did not do. Please, with me know.

Offline

#16 2023-07-18 05:52:41

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

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

Post the outputs of the commands I asked for.
Otherwise this is going absolutely nowhere.

Offline

#17 2023-07-18 05:56:50

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

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

seth wrote:

Post the outputs of the commands I asked for.
Otherwise this is going absolutely nowhere.

How do I scroll up the terminal? So I can take a picture you asked for 1 by 1.

I can only take the picture at the end of outputs.
https://i.ibb.co/WGybJqg/IMG-3418.jpg

Last edited by ABOhiccups (2023-07-18 06:14:03)

Offline

#18 2023-07-18 09:41:10

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

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

Scroll up/down on text consoles was removed from linux sometime ago.

An alternative is to redirect the output of the commands to a text-file , example :

ip -a > output-of-ip-a.txt

copy those textfiles to an usb stick and post their contents using any system with internet access & usb ports.


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

Online

#19 2023-07-18 10:23:57

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

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

seth wrote:
The Ethernet cable was plugged in to my laptop.

dhcp thinks differently.
Don't repeat some fairy tales over and over again, post the output of the commands I asked for.
And obviously check the cable seating. If it's loose (sometimes the latch protection collides with the case of your PC and prevents it from fixing) you'll get erratic behavior out of that.

While at it, also

lspci -k

Here's lspci -k output file. Thanks to @Lone_Wolf!

00:00.0 Host bridge: Intel Corporation 10th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] 10th Gen Core Processor Host Bridge/DRAM Registers
	Kernel driver in use: skl_uncore
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 02)
	Subsystem: Micro-Star International Co., Ltd. [MSI] 6th-10th Gen Core Processor PCIe Controller (x16)
	Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
	DeviceName: Onboard - Video
	Subsystem: Micro-Star International Co., Ltd. [MSI] CometLake-H GT2 [UHD Graphics]
	Kernel driver in use: i915
	Kernel modules: i915
00:12.0 Signal processing controller: Intel Corporation Comet Lake PCH Thermal Controller
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Comet Lake PCH Thermal Controller
	Kernel driver in use: intel_pch_thermal
	Kernel modules: intel_pch_thermal
00:14.0 USB controller: Intel Corporation Comet Lake USB 3.1 xHCI Host Controller
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Comet Lake USB 3.1 xHCI Host Controller
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Comet Lake PCH Shared SRAM
	DeviceName: Onboard - Other
	Subsystem: Intel Corporation Comet Lake PCH Shared SRAM
00:14.3 Network controller: Intel Corporation Comet Lake PCH CNVi WiFi
	DeviceName: Onboard - Ethernet
	Subsystem: Intel Corporation Wi-Fi 6 AX201 160MHz
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
00:15.0 Serial bus controller: Intel Corporation Comet Lake PCH Serial IO I2C Controller #0
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Comet Lake PCH Serial IO I2C Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:15.2 Serial bus controller: Intel Corporation Comet Lake PCH Serial IO I2C Controller #2
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Comet Lake PCH Serial IO I2C Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation Comet Lake HECI Controller
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Comet Lake HECI Controller
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Device 06d3
	DeviceName: Onboard - SATA
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12bc
	Kernel driver in use: ahci
00:1d.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #9 (rev f0)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Comet Lake PCI Express Root Port
	Kernel driver in use: pcieport
00:1d.6 PCI bridge: Intel Corporation Device 06b6 (rev f0)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 12bc
	Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Comet Lake LPC Controller
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Comet Lake LPC Controller
00:1f.3 Audio device: Intel Corporation Comet Lake PCH cAVS
	DeviceName: Onboard - Sound
	Subsystem: Micro-Star International Co., Ltd. [MSI] Comet Lake PCH cAVS
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci_intel_cnl
00:1f.4 SMBus: Intel Corporation Comet Lake PCH SMBus Controller
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Comet Lake PCH SMBus Controller
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
00:1f.5 Serial bus controller: Intel Corporation Comet Lake PCH SPI Controller
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Comet Lake PCH SPI Controller
	Kernel driver in use: intel-spi
	Kernel modules: spi_intel_pci
01:00.0 VGA compatible controller: NVIDIA Corporation TU104M [GeForce RTX 2070 SUPER Mobile / Max-Q] (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] TU104M [GeForce RTX 2070 SUPER Mobile / Max-Q]
	Kernel driver in use: nouveau
	Kernel modules: nouveau
01:00.1 Audio device: NVIDIA Corporation TU104 HD Audio Controller (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] TU104 HD Audio Controller
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
01:00.2 USB controller: NVIDIA Corporation TU104 USB 3.1 Host Controller (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] TU104 USB 3.1 Host Controller
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
01:00.3 Serial bus controller: NVIDIA Corporation TU104 USB Type-C UCSI Controller (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] TU104 USB Type-C UCSI Controller
	Kernel driver in use: nvidia-gpu
	Kernel modules: i2c_nvidia_gpu
02:00.0 Non-Volatile memory controller: Sandisk Corp WD Black SN750 / PC SN730 NVMe SSD
	Subsystem: Sandisk Corp WD Black SN750 / PC SN730 NVMe SSD
	Kernel driver in use: nvme
	Kernel modules: nvme
03:00.0 Ethernet controller: Qualcomm Atheros Killer E2500 Gigabit Ethernet Controller (rev 10)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Killer E2500 Gigabit Ethernet Controller
	Kernel driver in use: alx
	Kernel modules: alx

Offline

#20 2023-07-18 12:04:02

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

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

Did you forget to install linux-firmware?
Otherwise post the output of the other commands.

Offline

#21 2023-07-18 16:35:21

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

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

seth wrote:

Did you forget to install linux-firmware?
Otherwise post the output of the other commands.

No, linux-firmware was installed.
Here’s a picture of outputs of other commands.
https://i.ibb.co/4MXz2YJ/IMG-3420.jpg

Last edited by ABOhiccups (2023-07-18 16:35:36)

Offline

#22 2023-07-18 17:56:38

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

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

You've a lease and can ping the gateway, this is exclusively a dns issue.

resolvectl status
cat /etc/resolv.conf

Offline

#23 2023-07-18 20:26:37

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 and can ping the gateway, this is exclusively a dns issue.

resolvectl status
cat /etc/resolv.conf

I enter that command and I get this.

# Resolver configuration file.
# See resolv.conf(5) for details.

I was using Cloudflare DNS with 1.1.1.2 to block malware sites. Did Cloudflare thinks hdcpcd and wifi-menu is a malware?

Is there an option to add DNS to local Arch Linux Network? Or I have to change DNS on Router?

Offline

#24 2023-07-18 20:35:17

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

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

You haven't configured any DNS server
You can temporarily append "nameserver 8.8.8.8" to that file (or 1.1.1.1 or 1.1.1.2) and then post a complete system journal so we can finally see wtf you're doing over there

sudo journalctl -b | curl -F 'f:1=<-' ix.io

Offline

#25 2023-07-23 05:30:03

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

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

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.

I should be able connect to the internet and finish setting up Arch Linux.

Offline

Board footer

Powered by FluxBB