microsoft / Git-Credential-Manager-for-Mac-and-Linux

Git Credential Manager for Mac and Linux stores credentials for Git version control securely. Provides secure logon for Visual Studio Team Services (visualstudio.com).
Other
406 stars 240 forks source link

Error: key 1 not an armored public key #89

Closed anandkkumar closed 6 years ago

anandkkumar commented 6 years ago

I followed the instructions on https://github.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/blob/master/Install.md under section 'installing on linux using rpm'

I downloaded the rpm and key files but when I run this command below, I get an error.

$ sudo rpm --import RPM-GPG-KEY.txt error: RPM-GPG-KEY.txt: key 1 not an armored public key.

I am on Ubuntu 16.04.5 LTS (xenial)

Thanks.

lamkr commented 6 years ago

Hi, it's possible the downloaded file is a html. Try download it from this url, and try import it again:

https://raw.githubusercontent.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/master/RPM-GPG-KEY.txt

novak commented 6 years ago

Are you still able to reproduce this issue?

KirillOsenkov commented 6 years ago

Could you please include the exact linux command line to use? For us Linux noobs?

I'm trying wget https://raw.githubusercontent.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/master/RPM-GPG-KEY.txt and still seeing the error (not an armored public key) or Segmentation fault (core dumped).

anandkkumar commented 6 years ago

@lamkrodrigues using the txt file worked for me. However, I ran into a different problem the later step 5 https://github.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/issues/64 sudo rpm --install git-credential-manager-2.0.4-1.noarch.rpm rpm: RPM should not be used directly install RPM packages, use Alien instead! rpm: However assuming you know what you are doing... error: Failed dependencies: /bin/sh is needed by git-credential-manager-2.0.4-1.noarch

However /bin/sh is available on the server. This was reported at https://github.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/issues/64 and one of the folks here recommended the solution here: https://stackoverflow.com/questions/3959040/rpm-installation-fails-due-to-depencency-bin-sh-not-found/12758298#12758298

Can you please recommend what is the right way to do this?

anandkkumar commented 6 years ago

@kirill, I just used what you had and then rpm import. It worked for me on Ubuntu 16.04.5

wget https://raw.githubusercontent.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/master/RPM-GPG-KEY.txt

sudo rpm --import RPM-GPG-KEY.txt

lamkr commented 6 years ago

@Kirill, I just used what you had and then rpm import. It worked for me on Ubuntu 16.04.5

wget https://raw.githubusercontent.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/master/RPM-GPG-KEY.txt

sudo rpm --import RPM-GPG-KEY.txt

@Krill, this works to me too, in RedHat, in an Azure VM

lamkr commented 6 years ago

@lamkrodrigues using the txt file worked for me. However, I ran into a different problem the later step 5

64

sudo rpm --install git-credential-manager-2.0.4-1.noarch.rpm rpm: RPM should not be used directly install RPM packages, use Alien instead! rpm: However assuming you know what you are doing... error: Failed dependencies: /bin/sh is needed by git-credential-manager-2.0.4-1.noarch

However /bin/sh is available on the server. This was reported at #64 and one of the folks here recommended the solution here: https://stackoverflow.com/questions/3959040/rpm-installation-fails-due-to-depencency-bin-sh-not-found/12758298#12758298

Can you please recommend what is the right way to do this?

Sorry, I don know , because I'm using RedHat and this error do not occurs to me.

arthursoas commented 4 years ago

@lamkrodrigues using the txt file worked for me. However, I ran into a different problem the later step 5

64

sudo rpm --install git-credential-manager-2.0.4-1.noarch.rpm rpm: RPM should not be used directly install RPM packages, use Alien instead! rpm: However assuming you know what you are doing... error: Failed dependencies: /bin/sh is needed by git-credential-manager-2.0.4-1.noarch

However /bin/sh is available on the server. This was reported at #64 and one of the folks here recommended the solution here: https://stackoverflow.com/questions/3959040/rpm-installation-fails-due-to-depencency-bin-sh-not-found/12758298#12758298

Can you please recommend what is the right way to do this?

I Fixed it using alien: sudo alien --install git-credential-manager-2.0.4-1.noarch.rpm

To install alien, follow these steps: https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/install-rpm-packages-on-ubuntu-11-10.html