hub icon indicating copy to clipboard operation
hub copied to clipboard

Switch `Ubuntu` instructions to just use the Debian instructions

Open antony opened this issue 4 years ago • 4 comments

The problem I'm trying to solve: Since the snap is no longer recommended, it might make sense to simply combine the Debian and Ubuntu instructions, since Ubuntu is a Debian derivative anyway, it's already available in the repositories, and the instructions work predictably.

If I ever find a tool without a specific Ubuntu package, I just use the Debian ones.

How I imagine hub could expose this functionality:

ant@veil:~/Projects$ sudo apt install hub
[sudo] password for ant: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  xsel
The following NEW packages will be installed
  hub xsel

This would just be a readme update. Happy to open a PR if people think this is a good idea.

antony avatar Jan 14 '21 09:01 antony

In trying to install this on Ubuntu 18.04.5 LTS the apt package was not found

sudo apt-get install hub
Reading package lists... Done
Building dependency tree
Reading state information... Done

No apt package "hub", but there is a snap with that name.
Try "snap install hub"

E: Unable to locate package hub

jswantek avatar Jan 15 '21 22:01 jswantek

Yeah I wouldn't expect anyone to build packages for a two+ year old unsupported distribution. I've tried it on the latest and I would expect it to install on a more recent LTS.

I'll try on 20.04 LTS to verify when I get a chance.

On Fri, 15 Jan 2021 at 22:33, Joseph Swantek [email protected] wrote:

In trying to install this on Ubuntu 18.04.5 LTS the apt package was not found

sudo apt-get install hub Reading package lists... Done Building dependency tree Reading state information... Done

No apt package "hub", but there is a snap with that name. Try "snap install hub"

E: Unable to locate package hub

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/github/hub/issues/2695#issuecomment-761232524, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABVORO6W2EO7U4SKFMNZC3S2C7FJANCNFSM4WCFJSQQ .

--


ꜽ . antony jones . http://www.enzy.org

antony avatar Jan 15 '21 22:01 antony

Since the snap is no longer recommended, it might make sense to simply combine the Debian and Ubuntu instructions, since Ubuntu is a Debian derivative anyway, it's already available in the repositories, and the instructions work predictably.

Sure! I'll accept whatever improvement to our installation instructions leads to a better/stabler experience for users.

mislav avatar Jan 18 '21 16:01 mislav

Opened a PR https://github.com/github/hub/pull/2697

I've retained the note about snap as a footnote to aid returning users, existing users, and pre-empt the "why not snap" question. Happy to remove it preferred.

antony avatar Jan 18 '21 16:01 antony