Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

ebuild fails on go mod verify, network unreachable [SOLVED]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
xiwi
n00b
n00b
Posts: 23
Joined: Wed Aug 21, 2024 9:57 am

ebuild fails on go mod verify, network unreachable [SOLVED]

  • Quote

Post by xiwi » Wed Nov 26, 2025 5:17 pm

I'm trying to make an ebuild for a go program, but it fails on

Code: Select all

go mod verify
, more precisely:

Code: Select all

go: github.com/google/gopacket@v1.1.19: Get "https://proxy.golang.org/github.com/google/gopacket/@v/v1.1.19.mod": dial tcp: lookup proxy.golang.org on 192.168.131.177:53: dial udp 192.168.131.177:53: connect: network is unreachable
 * ERROR: net-analyzer/bettercap-2.41.3::xiwi failed (unpack phase):
 *   go mod verify failed
I can access https://proxy.golang.org/github.com/goo ... 1.1.19.mod just fine through my browser so I'm confused by the error :oops:

I followed the wiki on Go ebuilds and created both a vendor and deps tarball and added that to my SRC_URI

ful build log
ebuild attempt
Last edited by xiwi on Fri Nov 28, 2025 12:34 pm, edited 2 times in total.
Top
grknight
Retired Dev
Retired Dev
Posts: 2556
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Wed Nov 26, 2025 5:22 pm

xiwi wrote:

Code: Select all

192.168.131.177:53: connect: network is unreachable
This looks like a bad DNS lookup reference in /etc/resolv.conf.

Can you get to 192.168.131.177? What CIDR network is this machine on?
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3529
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Wed Nov 26, 2025 8:47 pm

That's Go packaging system trying to download something from within the network sandbox. Your distfiles are incomplete. I suggest recreating them.

I suspect you got confused with the already existing go-mod dir in /var/tmp/portage/<category>/bettercap/work. For the deps tarball you need to run the commands from within bettercap-2.41.3 (I guess this is the package and version as you didn't provide ebuild name) directory, not from within the work directory as it is for the vendor files.

I produced my own vendor and deps tarballs with which the compilation succeeded and none of their check sums matched yours.

Best Regards,
Georgi.
Top
xiwi
n00b
n00b
Posts: 23
Joined: Wed Aug 21, 2024 9:57 am

  • Quote

Post by xiwi » Fri Nov 28, 2025 12:33 pm

logrusx,

Indeed, I looked and played around with my deps tarball, which wasn't getting unpacking in the right work directory. I repacked them, and now the build succeeds. Thank you for the help.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy