Install golang ubuntu 22. 22 instead and use the binaries from /usr/lib/go-1.

Install golang ubuntu 22. 04, Golang can be easily installed.