hub icon indicating copy to clipboard operation
hub copied to clipboard

Modify installation instructions for Ubuntu

Open antony opened this issue 4 years ago • 4 comments

Changes to use apt, not snap. Fixes https://github.com/github/hub/issues/2695

antony avatar Jan 18 '21 16:01 antony

Ubuntu has currently hub in 2.7.0 (https://packages.ubuntu.com/source/groovy/hub)

side note: did you guys thinking of bumping it (or asking maintainers to do so) soon, to some more recent version?

lukaszstolarczuk avatar Jan 19 '21 15:01 lukaszstolarczuk

Thank you! Looks great

  1. Which version of hub does this install on Ubuntu?

2.7.0 is the latest I've found. It's not likely to be the latest version unless it is extremely actively maintained or automated. Most apt dependencies will install a slightly older version which has been tested by the Canonical team or contributors. It's the same with google cloud sdk and such.

  1. If Ubuntu 18 isn't supported by this, should we add a notice?

People should be able to reasonably expect installation instructions on the latest LTS and newer, after all - that's why it's called an LTS. Whether you want to support distributions that are now no longer supported (older than the 2 year long term support lifecycle) is up to you, but to keep things simple and clean, I would suggest not doing so.

antony avatar Jan 19 '21 19:01 antony

Which version of hub does this install on Ubuntu?

2.7.0 is the latest I've found.

This may be too ancient version that perhaps does not work well with latest Git credential helpers what may cause authentication problems, see https://github.com/github/hub/issues/2701

mloskot avatar Jan 27 '21 10:01 mloskot

Not only WSL is affected: I just had the same issue with the ubuntu:latest Docker container (which is 20.04 focal) where apt install hub installed version 2.7.0 which didn't work due to Unauthorized (HTTP 401) Bad credentials. (I posted on Stack Overflow at first because I didn't expect the outdated version to be the issue, but something with my GitHub Actions workflow.) The solution was to install the latest hub binary, manually, via wget. So, unfortunately, it seems like installing via apt can't be recommended at the moment.

finefoot avatar Jan 27 '21 20:01 finefoot