The GC CLI authentication failure on Ubuntu 22.04 is almost certainly a keyring dependency issue.
The gc CLI tries to store OAuth tokens in the system keyring. On Ubuntu 22.04 minimal server installs, the gnome-keyring or libsecret packages aren’t installed. The CLI silently fails to cache the token and prompts you to re-authenticate on every command. Install gnome-keyring or use the --no-keyring flag and store the profile in a dotfile instead.