You are not logged in.

#1 2024-11-09 20:25:32

4004cic
Member
Registered: 2024-11-09
Posts: 11

[SOLVED] pacman: Could not resolve host

I've installed Arch from a usb to another usb for testing purposes. While I was in the installer, the internet connection was fine, but when i booted from the place, where arch has been installed, suddenly pacman throws `error: failed retrieving file 'core.db' from ***: Could not resolve host: *`
I've already tried solving it but I made it only to make WAN lights blink and nothing to happen. Also i'm first time here and i don't know what to send.

Last edited by 4004cic (2024-11-10 14:29:30)

Offline

#2 2024-11-09 20:40:00

seth
Member
Registered: 2012-09-03
Posts: 58,698

Re: [SOLVED] pacman: Could not resolve host

What did you install to configure your network and how did you configure it?
https://wiki.archlinux.org/title/Instal … l_packages

Offline

#3 2024-11-09 21:14:48

4004cic
Member
Registered: 2024-11-09
Posts: 11

Re: [SOLVED] pacman: Could not resolve host

I downloaded .iso from https://archlinux.org/download/ (yandex.ru mirror) ...x86_64.iso (there is nothing in between 64 and .iso!) and configured it through archinstall command. From the installer drive, I configured it to have the b formatting (i dont remember its name) and that's all. I also installed a few drivers and MATE graphical part and nothing with the actual internet part
In short: it was coming like this out of the .iso.

Offline

#4 2024-11-09 21:22:10

seth
Member
Registered: 2012-09-03
Posts: 58,698

Re: [SOLVED] pacman: Could not resolve host

configured it through archinstall command … nothing with the actual internet part

Please read https://wiki.archlinux.org/title/Archinstall (all the warnings and all the notes) and  post the outputs of

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

Offline

#5 2024-11-09 21:41:13

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,402
Website

Re: [SOLVED] pacman: Could not resolve host

Mod note: moving to Archinstall subforum.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2024-11-09 21:54:36

4004cic
Member
Registered: 2024-11-09
Posts: 11

Re: [SOLVED] pacman: Could not resolve host

will send it later since I'm not on the computer now (approx. 6-8h)

Offline

#7 2024-11-10 00:17:00

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,402
Website

Re: [SOLVED] pacman: Could not resolve host

Please do not 'empty post'.

https://wiki.archlinux.org/title/Genera … mpty_posts

The forums are asynchronous. You do not need to give us a live update of your inability to provide logs, just return when you are able to provide the logs and post an update then.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2024-11-10 07:26:08

4004cic
Member
Registered: 2024-11-09
Posts: 11

Re: [SOLVED] pacman: Could not resolve host

Here are the results of the commands: https://i.imgur.com/6D1szu5.jpeg

Offline

#9 2024-11-10 08:07:30

seth
Member
Registered: 2012-09-03
Posts: 58,698

Re: [SOLVED] pacman: Could not resolve host

You've a wired NIC w/ a carrier but no network service is running, ie. whatever else you did during the configuration, you didn't enable one.
See what's there

pacman -Qs 'net|dhcp'

for what was maybe installed and then see the wiki and configure one, https://wiki.archlinux.org/title/Networ … management

Offline

#10 2024-11-10 08:27:50

4004cic
Member
Registered: 2024-11-09
Posts: 11

Re: [SOLVED] pacman: Could not resolve host

Here is what the pacman -Qs says.
https://i.imgur.com/8B4PtrA.jpeg

Offline

#11 2024-11-10 08:41:22

seth
Member
Registered: 2012-09-03
Posts: 58,698

Re: [SOLVED] pacman: Could not resolve host

8B4PtrA.jpeg
Can you read that? Cause I can't.

It also doesns't matter - you're supposed t o check what network config services you intalled and then use one of them to obtain a lease.

Offline

#12 2024-11-10 10:15:13

4004cic
Member
Registered: 2024-11-09
Posts: 11

Re: [SOLVED] pacman: Could not resolve host

Oh sorry, did not notice. Here is the fixed version of a screenshot: https://i.imgur.com/qeQwgFh.jpeg

Offline

#13 2024-11-10 10:18:52

seth
Member
Registered: 2012-09-03
Posts: 58,698

Re: [SOLVED] pacman: Could not resolve host

"rien" - boot the install iso, chroot into the system and install and enabled eg. dhcpcd.
A better approach would be to re-install arch and actually work through the official installation guide so you end up w/ a system that you actually know and understand.

Offline

#14 2024-11-10 11:20:12

progandy
Member
Registered: 2012-05-17
Posts: 5,259

Re: [SOLVED] pacman: Could not resolve host

seth wrote:

"rien" - boot the install iso, chroot into the system and install and enabled eg. dhcpcd.

Without using the install iso, you should be able to set up systemd-networkd with its dhcp client
https://wiki.archlinux.org/title/Systemd-networkd


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#15 2024-11-10 14:16:49

4004cic
Member
Registered: 2024-11-09
Posts: 11

Re: [SOLVED] pacman: Could not resolve host

hello again, thanks to seth i installed dhcpcd and fixed it with making a script that looks like this:
killall dhcpcd (if the service is running)
ip a (checking for the interfaces)
dhcpcd
iwconfig
dhcpcd --release enp4s0
dhcpcd enp4s0
ip link set enp4s0 up

Offline

#16 2024-11-10 14:26:22

seth
Member
Registered: 2012-09-03
Posts: 58,698

Re: [SOLVED] pacman: Could not resolve host

You don't need any of this nonsense, enabling the service will do, https://wiki.archlinux.org/title/Dhcpcd#Running
Get used to consult the wiki and please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB