You are not logged in.
I'm trying to re-install yay. I'm following the instructions here: https://github.com/Jguer/yay under Installation -> Source.
When I run `makepkg -si`, a `go build` command is eventually run, which tries to run down the a number of packages, but they all error out with "connect: network is unreachable" (see output below)
What should I do to troubleshoot this error?
* I have internet access
* I'm able to ping 8.8.8.8 from my bash terminal
* I'm able to successfully install the latest from pacman (`pacman -Syu`)
$ makepkg -si
==> Making package: yay 12.3.5-1 (Sat 18 May 2024 07:56:41 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading yay-12.3.5.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 444k 100 444k 0 0 1136k 0 --:--:-- --:--:-- --:--:-- 1136k
==> Validating source files with sha256sums...
yay-12.3.5.tar.gz ... Passed
==> Extracting sources...
-> Extracting yay-12.3.5.tar.gz with bsdtar
==> Starting build()...
go build -trimpath -mod=readonly -modcacherw -ldflags '-X "main.yayVersion=12.3.5" -X "main.localePath=/usr/share/locale/" -linkmode=external -compressdwarf=false' -buildmode=pie -o yay
go: downloading github.com/Jguer/aur v1.2.3
go: downloading github.com/Jguer/go-alpm/v2 v2.2.2
go: downloading github.com/Jguer/votar v1.0.0
go: downloading github.com/Morganamilo/go-srcinfo v1.0.0
go: downloading github.com/deckarep/golang-set/v2 v2.6.0
go: downloading github.com/leonelquinteros/gotext v1.5.2
go: downloading golang.org/x/sys v0.18.0
go: downloading github.com/Morganamilo/go-pacmanconf v0.0.0-20210502114700-cff030e927a5
go: downloading golang.org/x/term v0.18.0
go: downloading github.com/adrg/strutil v0.3.1
go: downloading github.com/hashicorp/go-multierror v1.1.1
clean.go:8:2: github.com/Jguer/aur@v1.2.3: Get "https://proxy.golang.org/github.com/%21jguer/aur/@v/v1.2.3.zip": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
cmd.go:11:2: github.com/Jguer/go-alpm/v2@v2.2.2: Get "https://proxy.golang.org/github.com/%21jguer/go-alpm/v2/@v/v2.2.2.zip": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
vote.go:8:2: github.com/Jguer/votar@v1.0.0: Get "https://proxy.golang.org/github.com/%21jguer/votar/@v/v1.0.0.zip": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
pkg/text/errors.go:3:8: github.com/leonelquinteros/gotext@v1.5.2: Get "https://proxy.golang.org/github.com/leonelquinteros/gotext/@v/v1.5.2.zip": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
pkg/db/ialpm/alpm.go:11:2: github.com/Morganamilo/go-pacmanconf@v0.0.0-20210502114700-cff030e927a5: Get "https://proxy.golang.org/github.com/%21morganamilo/go-pacmanconf/@v/v0.0.0-20210502114700-cff030e927a5.zip": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
pkg/intrange/intrange.go:8:2: github.com/deckarep/golang-set/v2@v2.6.0: Get "https://proxy.golang.org/github.com/deckarep/golang-set/v2/@v/v2.6.0.zip": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
pkg/query/metric.go:7:2: github.com/adrg/strutil@v0.3.1: Get "https://proxy.golang.org/github.com/adrg/strutil/@v/v0.3.1.zip": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
pkg/query/query_builder.go:13:2: github.com/adrg/strutil@v0.3.1: Get "https://proxy.golang.org/github.com/adrg/strutil/@v/v0.3.1.zip": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
pkg/query/source.go:7:2: github.com/hashicorp/go-multierror@v1.1.1: Get "https://proxy.golang.org/github.com/hashicorp/go-multierror/@v/v1.1.1.zip": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
pkg/dep/dep_graph.go:10:2: github.com/Morganamilo/go-srcinfo@v1.0.0: Get "https://proxy.golang.org/github.com/%21morganamilo/go-srcinfo/@v/v1.0.0.zip": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
pkg/runtime/runtime.go:20:2: github.com/Jguer/aur@v1.2.3: Get "https://proxy.golang.org/github.com/%21jguer/aur/@v/v1.2.3.zip": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
pkg/runtime/runtime.go:21:2: github.com/Jguer/aur@v1.2.3: Get "https://proxy.golang.org/github.com/%21jguer/aur/@v/v1.2.3.zip": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
pkg/runtime/pacman.go:10:2: golang.org/x/term@v0.18.0: Get "https://proxy.golang.org/golang.org/x/term/@v/v0.18.0.zip": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
print.go:16:2: golang.org/x/sys@v0.18.0: Get "https://proxy.golang.org/golang.org/x/sys/@v/v0.18.0.zip": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
make: *** [Makefile:114: yay] Error 1
==> ERROR: A failure occurred in build().
Aborting...
Offline
I don't know anything about go, so I started working through their 'getting started' page (https://go.dev/doc/tutorial/getting-started).
When I tried to have a package added to my module I got the same message. So this appears to be an issue with go, I will look further into that.
go mod tidy
go: finding module for package rsc.io/quote
go: example/hello imports
rsc.io/quote: module rsc.io/quote: Get "https://proxy.golang.org/rsc.io/quote/@v/list": dial tcp: lookup proxy.golang.org on [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: dial udp [2601:44:c280:def:6238:e0ff:feb6:baa0]:53: connect: network is unreachable
Offline
The failure is all IPv6, do you resolve IPv4 for the domain?
getent ahostsv4 proxy.golang.org
ping -c1 2001:4860:4860::8888 # google ipv6 DNS
https://wiki.archlinux.org/title/IPv6#Disable_IPv6
https://wiki.archlinux.org/title/IPv6#P … _over_IPv6 (no idea whether this will affect anything go does)
Offline
I get a different IP address from the ahostsv6 lookup (assuming you meant v6?) than what I get from the go command.
getent ahostsv6 proxy.golang.org
2607:f8b0:4006:80c::2011 STREAM proxy.golang.org
2607:f8b0:4006:80c::2011 DGRAM
2607:f8b0:4006:80c::2011 RAW
But in both cases I get 'network is unreachable'
$ ping -c1 2601:44:c280:def:6238:e0ff:feb6:baa0
ping: connect: Network is unreachable
$ ping -c1 2607:f8b0:4006:80c::2011
ping: connect: Network is unreachable
Offline
No, I meant *4* since apparently you don't have a routable ipv6
ip a
Offline
[removing duplicate message]
Last edited by TimeTrap00 (2024-05-19 21:47:39)
Offline
Why did you report #4??
The important questions remain:
1. do you have a publically routable IPv6 address # ip a
2. can you resolve an IPv4 address # getent ahostsv4 proxy.golang.org
Offline
Sorry, didn't mean to repost that prior message.
It looks like I can get a routable v4 address, I have to figure out how to force go to use v4.
$ getent ahostsv4 proxy.golang.org
142.251.40.145 STREAM proxy.golang.org
142.251.40.145 DGRAM
142.251.40.145 RAW
$ ping -c1 142.251.40.145
PING 142.251.40.145 (142.251.40.145) 56(84) bytes of data.
64 bytes from 142.251.40.145: icmp_seq=1 ttl=116 time=20.2 ms
--- 142.251.40.145 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 20.201/20.201/20.201/0.000 ms
I tried disabling v6 using the below command and restarting my laptop, but that didn't work so I reverted.
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
Offline
https://wiki.archlinux.org/title/IPv6#Disable_IPv6
https://wiki.archlinux.org/title/IPv6#P … _over_IPv6 (no idea whether this will affect anything go does)
The sysrq call will not survive a reboot.
Offline
Never found a resolution to the "network is unreachable" error, but ended up following the instructions for building the binary and that worked without issue.
Offline
Mod note: Moving to AUR Issues.
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