desktop icon indicating copy to clipboard operation
desktop copied to clipboard

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

Open vharihar2 opened this issue 1 year ago • 6 comments

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?

vharihar2 avatar May 07 '24 03:05 vharihar2

i think this is the same issue #1062

nuernbergerA avatar May 08 '24 10:05 nuernbergerA

i think this is the same issue #1062

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

vharihar2 avatar May 08 '24 10:05 vharihar2

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?

vharihar2 avatar May 13 '24 05:05 vharihar2

**Error: Invalid version flag: or**

This is not a new issue - see https://github.com/shiftkey/desktop/issues/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: https://github.com/shiftkey/desktop/issues/320#issuecomment-1100250294

shiftkey avatar May 13 '24 14:05 shiftkey

**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?

vharihar2 avatar May 14 '24 04:05 vharihar2

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.

shiftkey avatar May 14 '24 12:05 shiftkey