Paru/yay hang when installing packages - AUR connection timeout

General info

Kernel: 6.17.9-2-cachyos, but problem persists for around a month
Location: Russian Federation, Crimea

Problem

Both paru and yay hang indefinitely when trying to install packages from AUR. Regular pacman works fine, and system updates through paru -Syu work, but package installation commands hang:

  • paru -S <package> - hangs
  • yay -S <package> - hangs
  • paru hangs after updates at “Looking for devel upgrades” stage

The issue persists even when using VPN or proxychains with my own proxy server.

Diagnostic results

1. Network connectivity test to AUR

❯ curl -v --max-time 10 https://aur.archlinux.org
* Host aur.archlinux.org:443 was resolved.
* IPv6: (none)
* IPv4: 95.216.144.15
*   Trying 95.216.144.15:443...
* Connection timed out after 10005 milliseconds
* closing connection #0
curl: (28) Connection timed out after 10005 milliseconds

2. Traceroute to AUR server

❯ traceroute -n 95.216.144.15
traceroute to 95.216.144.15 (95.216.144.15), 30 hops max, 60 byte packets
 1  192.168.1.1  0.356 ms  0.457 ms  0.712 ms
 2  10.38.96.2  1.962 ms  1.978 ms  2.293 ms
 3  178.18.226.223  55.043 ms  52.109 ms  48.986 ms
 4  213.239.224.38  51.815 ms  49.638 ms  49.251 ms
 5  * * *
 6  213.239.228.46  53.111 ms 213.239.228.26  51.864 ms  51.356 ms
 7  * * *
 8  95.216.129.164  45.871 ms  45.591 ms  42.598 ms
 9  * * *
[continues with * * * until hop 30]

3. Active connections during hang

❯ sudo ss -tunap | grep -E '(paru|yay|git)'
tcp   SYN-SENT  0      1      192.168.1.153:60904 95.216.144.15:443   users:(("paru",pid=6259,fd=9))

4. tcpdump analysis

❯ sudo tcpdump -i any -nn 'host 95.216.144.15' -c 20
09:09:17.634337 enp10s0 Out IP 192.168.1.153.37524 > 95.216.144.15.443: Flags [S], seq 2245173332, win 64240, options [mss 1460,sackOK,TS val 836760857 ecr 0,nop,wscale 10], length 0
09:09:18.657097 enp10s0 Out IP 192.168.1.153.37524 > 95.216.144.15.443: Flags [S], seq 2245173332, win 64240, options [mss 1460,sackOK,TS val 836761880 ecr 0,nop,wscale 10], length 0
[repeated SYN packets with no SYN-ACK response]

5. Proxy test

❯ proxychains4 curl -v --max-time 10 https://google.com
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
*   Trying 224.0.0.1:443...
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
< HTTP/2 301 
[proxy works for Google]

But for https://aur.archlinux.org:

❯ proxychains4 curl -v --max-time 10 https://aur.archlinux.org
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.17
* Host aur.archlinux.org:443 was resolved.
* IPv6: (none)
* IPv4: 95.216.144.15
*   Trying 95.216.144.15:443...
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* SSL Trust Anchors:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
* Connection timed out after 10004 milliseconds
* closing connection #0
curl: (28) Connection timed out after 10004 milliseconds

6. VPS diagnostic (where proxy server is hosted)

# curl works with hostname
bio@vps:~$ curl -v --max-time 10 https://aur.archlinux.org
[Returns normal HTML content]

# Direct IP connection hangs
bio@vps:~$ telnet 95.216.144.15 443
[hangs indefinitely]

# Traceroute
bio@vps:~$ traceroute 95.216.144.15
[reaches 95.216.129.164 at hop 14, then * * * afterwards]

Attempted Solutions (Failed)

  1. ✗ Using proxychains with shadowsocks proxy
  2. ✗ Using openvpn connection on the same VPS as shadowsocks
  3. ✗ Changing DNS servers
  4. ✗ Various paru/yay configuration changes

Additional info

A friend in the same city using the same kernel is experiencing similar issues, but even worse - pacman itself doesn’t work for him, not just AUR helpers.

Question

How can I fix this?
If you need more info or diagnostics I will provide it.

Note: I have written this post with AI assistance for language clarity.

I have the same problem. In the terminal I’ve been having to use curl instead of wget.

I just tried paru -S pinta and the installation keeps hanging at the step when it tries to fetch https://api.nuget.org/v3/index.json