Sitelet https://web.archive.org/web/20200919055333/https://github.com/cli/cli/issues/1797
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got error: E: Unable to locate package gh #1797

Open
imojha opened this issue Sep 18, 2020 · 3 comments
Open

Got error: E: Unable to locate package gh #1797

imojha opened this issue Sep 18, 2020 · 3 comments

Comments

@imojha
Copy link

@imojha imojha commented Sep 18, 2020

Describe the feature or problem you’d like to solve

I am on Ubuntu 20.04 LTS Focal Fossa. When I hit the command "sudo apt install gh", it says "E: Unable to locate package gh".
I tried searching for package on ubuntu distribution site, but the only packages that got listed are "ghc, ghc-doc, ghc-prof, ghdl etc." Help me, please.

Proposed solution

How will it benefit CLI and its users?

Additional context

Add any other context like screenshots or mockups are helpful, if applicable.

@imojha imojha added the enhancement label Sep 18, 2020
@Lucaslah
Copy link

@Lucaslah Lucaslah commented Sep 18, 2020 •

Did you try sudo apt update? And then re run sudo apt install gh

@mislav
Copy link
Member

@mislav mislav commented Sep 18, 2020

@MarcosRugerio
Copy link

@MarcosRugerio MarcosRugerio commented Sep 18, 2020

@imojha I use Ubuntu 20.04 and I had the same issue, I tried and ran these command three times the command.

sudo apt install gh

Because the installation stops multiple times, three in my case, after that...

marcos@casa:~$ gh --version
gh version 1.0.0 (2020-09-16)
https://github.com/cli/cli/releases/tag/v1.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.