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

Get an error when installing on CENTOS7 with error message: "Invalid version flag: or" (Re-post of Desktop issue 18551) #1061

Open
vharihar2 opened this issue May 7, 2024 · 6 comments
Labels
blocked-external Issues that are stuck due to constraints beyond our current control installers/rpm Issues related to the RPM installer upstream-dependencies

Comments

@vharihar2
Copy link

Operating System/Distribution

Which distribution of Linux are you using?
CENTOS7 Linux

Installer

Which version of the app?
Which installer type?

What happened?

I followed the instructions at https://www.matthewthom.as/mirrors/#github-desktop to install Github-desktop on my CENTOS7 Linux system.

I wasn't able to import the GPG key, kept getting an error msg "key 1 import failed". I tried several workarounds, none seemed to work. Eventually I disabled the GPG checking with "yum --nogpgcheck install ..." (even though not recommended, I admit) and that seemed to go ahead. But down the line, it failed with the following error:

...
(6/6): epel/x86_64/primary_db                              | 7.0 MB   00:45     
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
--> Running transaction check
---> Package github-desktop.x86_64 0:3.3.12.linux2-1 will be installed
**Error: Invalid version flag: or**

How do I resolve this?

@nuernbergerA
Copy link

i think this is the same issue #1062

@vharihar2
Copy link
Author

i think this is the same issue #1062

Looked at it, but a solution isn't stated. What's the solution/workaround?

@vharihar2
Copy link
Author

Additional info (that I perhaps ought to have stated before) ...

The error I get when importing the GPG key is:

$ sudo rpm --import https://rpm.packages.shiftkey.dev/gpg.key
curl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate.
error: https://rpm.packages.shiftkey.dev/gpg.key: import read failed(2).

Any advise on how to fix this?

@shiftkey
Copy link
Owner

**Error: Invalid version flag: or**

This is not a new issue - see #320 for more context.

At the time I closed that out because I didn't want to get into the realm of crafting distro-specific issues, for what is a limitation of yum: #320 (comment)

@shiftkey shiftkey added upstream-dependencies blocked-external Issues that are stuck due to constraints beyond our current control installers/rpm Issues related to the RPM installer labels May 13, 2024
@vharihar2
Copy link
Author

**Error: Invalid version flag: or**

This is not a new issue - see #320 for more context.

At the time I closed that out because I didn't want to get into the realm of crafting distro-specific issues, for what is a limitation of yum: #320 (comment)

So looks like no resolution other than moving from YUM to DNF. I'm hesitant to do that lest I cause some instability in the system (as regards whatever is installed till date and whatever we may install in future).

If package-installs is so complex, is there a way I can install Github-desktop-for-Linux from source?

@shiftkey
Copy link
Owner

is there a way I can install Github-desktop-for-Linux from source?

This isn't supported corrently. There is an AppImage version that is intended to be used standalone, independent of the installed package manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked-external Issues that are stuck due to constraints beyond our current control installers/rpm Issues related to the RPM installer upstream-dependencies
Projects
None yet
Development

No branches or pull requests

3 participants