Closed anandkkumar closed 6 years ago
Hi, it's possible the downloaded file is a html. Try download it from this url, and try import it again:
Are you still able to reproduce this issue?
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).
@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?
@kirill, I just used what you had and then rpm import. It worked for me on Ubuntu 16.04.5
sudo rpm --import RPM-GPG-KEY.txt
@Kirill, I just used what you had and then rpm import. It worked for me on Ubuntu 16.04.5
sudo rpm --import RPM-GPG-KEY.txt
@Krill, this works to me too, in RedHat, in an Azure VM
@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.
@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
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.