Artix Linux Forum

Artix Linux => Package management => Topic started by: booflet451 on 25 November 2021, 16:30:00

Title: [Solved] unable to synchronise or update any packages with pacman
Post by: booflet451 on 25 November 2021, 16:30:00
Hi,
I'm finding it impossible to do anything with pacman and yay today,
 -Syu, even -Syyu both not working
also  -S is not working for every package I have tried

I am super confused, have been trying to figure this out all day.
I remember this problem starting when I was changing pacman.conf to enable multilib,


here is me trying -Syu in yay:

Spoiler (click to show/hide)

here is "sudo pacman -S gedit" as an example:

Spoiler (click to show/hide)

my mirrorlist
Spoiler (click to show/hide)


my pacman conf


Spoiler (click to show/hide)
Title: Re: unable to synchronise or update any packages with pacman
Post by: strajder on 25 November 2021, 17:55:07
Check your Internet connection.
Code: [Select]
ping artixlinux.org
Title: Re: unable to synchronise or update any packages with pacman
Post by: booflet451 on 25 November 2021, 18:19:30
booflet451-Reboofed:[booflet451]:~$ ping artixlinux.org
PING artixlinux.org(2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012)) 56 data bytes
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=1 ttl=52 time=12.4 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=2 ttl=52 time=13.1 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=3 ttl=52 time=13.2 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=4 ttl=52 time=12.4 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=5 ttl=52 time=13.0 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=6 ttl=52 time=12.3 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=7 ttl=52 time=12.7 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=8 ttl=52 time=13.4 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=9 ttl=52 time=13.0 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=10 ttl=52 time=12.7 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=11 ttl=52 time=13.0 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=12 ttl=52 time=13.5 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=13 ttl=52 time=12.7 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=14 ttl=52 time=14.0 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=15 ttl=52 time=12.9 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=16 ttl=52 time=13.0 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=17 ttl=52 time=19.2 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=18 ttl=52 time=13.3 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=19 ttl=52 time=12.7 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=20 ttl=52 time=12.7 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=21 ttl=52 time=12.4 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=22 ttl=52 time=13.1 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=23 ttl=52 time=13.6 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=24 ttl=52 time=13.7 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=25 ttl=52 time=13.2 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=26 ttl=52 time=14.7 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=27 ttl=52 time=13.5 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=28 ttl=52 time=13.4 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=29 ttl=52 time=12.9 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=30 ttl=52 time=14.1 ms
64 bytes from 2606:4700:3039::6815:c012 (2606:4700:3039::6815:c012): icmp_seq=31 ttl=52 time=12.9 ms
^C
--- artixlinux.org ping statistics ---
31 packets transmitted, 31 received, 0% packet loss, time 30050ms
rtt min/avg/max/mdev = 12.320/13.310/19.170/1.190 ms

seems to be fine

edit:
clarification, even though I am able to ping, I am still having the issue  as originally described
Title: Re: unable to synchronise or update any packages with pacman
Post by: strajder on 25 November 2021, 18:28:17
Try rankmirrors (https://wiki.archlinux.org/title/Mirrors#Sorting_mirrors).
Title: Re: unable to synchronise or update any packages with pacman
Post by: nous on 25 November 2021, 20:28:15
Assuming your mirrorlist is /etc/pacman.d/mirrorlist: it contains the arch mirrors, not artix.
This is the artix mirrorlist (https://gitea.artixlinux.org/packagesA/artix-mirrorlist/src/branch/master/trunk/mirrorlist). The arch mirrorlist is named /etc/pacman.d/mirrorlist-arch. Fix this and it should all be fine again.
Title: Re: unable to synchronise or update any packages with pacman
Post by: booflet451 on 25 November 2021, 21:55:12
wow, that was it, thank you so much  :D
serves me right for looking in the arch forums for answers.

for people reading this:

I used
Code: [Select]
sudo nano edit /etc/pacman.d/mirrorlist

deleted everything

then went to
https://gitea.artixlinux.org/packagesA/artix-mirrorlist/src/branch/master/trunk/mirrorlist

clicker raw and  copied the mirrorlist

then ctrl X, Y to save and quit,

now I can run sudo pacman -Syu again.