You are not logged in.

#1 2024-09-04 20:42:00

Unfinished632
Member
Registered: 2024-09-04
Posts: 6

[SOLVED] pacman not working after install

I have just finished installing arch linux on Virtual Box. The pacman command was working fine during the installation but after rebooting it just stopped working. After printing the name of the package its installing it just freezes.
https://i.imgur.com/UWxhQjQ.png

edit:
It printed this after a while: https://i.imgur.com/RNyER3q.png

Last edited by Unfinished632 (2024-09-05 15:07:33)

Offline

#2 2024-09-04 21:23:09

seth
Member
Registered: 2012-09-03
Posts: 56,292

Re: [SOLVED] pacman not working after install

Please replace the oversized image with a link, the board has a 250²px² max rule
Also avoid posting images of text, post the text.

ip a
ping -c3 mirror.osbeck.com
ping -c3 _gateway

Offline

#3 2024-09-04 23:04:49

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,896

Re: [SOLVED] pacman not working after install

How are you configuring your network?

Offline

#4 2024-09-04 23:10:53

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 12,261
Website

Re: [SOLVED] pacman not working after install

Mod note: moving to NC.


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

#5 2024-09-05 11:41:31

Unfinished632
Member
Registered: 2024-09-04
Posts: 6

Re: [SOLVED] pacman not working after install

seth wrote:

Please replace the oversized image with a link, the board has a 250²px² max rule
Also avoid posting images of text, post the text.

ip a
ping -c3 mirror.osbeck.com
ping -c3 _gateway

Sorry about the images. I couldn't get the clipboard to work and it seems the easy way to get it to work is to install some packages, which i can't do.
I'll post links from now on.

https://imgur.com/a/wvecoJh

Last edited by Unfinished632 (2024-09-05 11:41:52)

Offline

#6 2024-09-05 11:44:46

Unfinished632
Member
Registered: 2024-09-04
Posts: 6

Re: [SOLVED] pacman not working after install

Scimmia wrote:

How are you configuring your network?

pacman -S NetworkManager
systemctl enable NetworkManager

Offline

#7 2024-09-05 12:53:50

seth
Member
Registered: 2012-09-03
Posts: 56,292

Re: [SOLVED] pacman not working after install

Looks like a DNS problem, osbeck responds fast but the ping sequence lasts 6s. so it's gonna be the reverse lookup.
Please post the outputs of

find /etc/systemd -type l -exec test -f {} \; -print
resolvectl status

Offline

#8 2024-09-05 13:07:17

Unfinished632
Member
Registered: 2024-09-04
Posts: 6

Re: [SOLVED] pacman not working after install

seth wrote:

Looks like a DNS problem, osbeck responds fast but the ping sequence lasts 6s. so it's gonna be the reverse lookup.
Please post the outputs of

find /etc/systemd -type l -exec test -f {} \; -print
resolvectl status

https://imgur.com/a/6OYzbnG

Offline

#9 2024-09-05 13:09:07

seth
Member
Registered: 2012-09-03
Posts: 56,292

Re: [SOLVED] pacman not working after install

cat /etc/resolv.conf
dig google.com
dig @8.8.8.8 google.com

Offline

#10 2024-09-05 13:13:24

Unfinished632
Member
Registered: 2024-09-04
Posts: 6

Re: [SOLVED] pacman not working after install

seth wrote:
cat /etc/resolv.conf
dig google.com
dig @8.8.8.8 google.com

https://imgur.com/8UnCFiE

Offline

#11 2024-09-05 13:40:55

seth
Member
Registered: 2012-09-03
Posts: 56,292

Re: [SOLVED] pacman not working after install

https://wiki.archlinux.org/title/Networ … NS_servers
You're defaulting to your gateway which is likely your ISPs DNS, setting the default to 8.8.8.8 (google) or 1.1.1.1 (cloudflare)

Offline

#12 2024-09-05 15:04:05

Unfinished632
Member
Registered: 2024-09-04
Posts: 6

Re: [SOLVED] pacman not working after install

seth wrote:

https://wiki.archlinux.org/title/Networ … NS_servers
You're defaulting to your gateway which is likely your ISPs DNS, setting the default to 8.8.8.8 (google) or 1.1.1.1 (cloudflare)

Thx this worked!

Offline

#13 2024-09-05 15:15:19

seth
Member
Registered: 2012-09-03
Posts: 56,292

Re: [SOLVED] pacman not working after install

So it's a shitty, underdimensioned and locally uncached ISP DNS - vodafone or verizon? …

You might benefit from resolved, stubby or dnsmasq or any other local DNS stub responder and if your (likely ISP-issued?) router allows you to configure a custom DNS backend (ie. the server that it asks) you might want to adjust that there for the benefit of the entire LAN.

Offline

Board footer

Powered by FluxBB