httpie / cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://httpie.io
BSD 3-Clause "New" or "Revised" License
32.67k stars 3.68k forks source link

it is not possible install for arm linux #1562

Closed AndriySidliarskiy closed 1 month ago

AndriySidliarskiy commented 4 months ago

Checklist


Minimal reproduction code and steps

  1. curl -SsL https://packages.httpie.io/deb/KEY.gpg | gpg --dearmor -o /usr/share/keyrings/httpie.gpg && \ echo "deb [arch="arm64" signed-by=/usr/share/keyrings/httpie.gpg] https://packages.httpie.io/deb ./" > /etc/apt/sources.list.d/httpie.list && \ apt update && apt install httpie

Current result

exit code 1 …

Expected result

installed tools …


siddharth07-ui commented 4 months ago

Hi, I am trying to create a conda environment with Python version3.8 and trying to run this code inside it. I am getting the below error:

====================================================================================

curl -SsL https://packages.httpie.io/deb/KEY.gpg | gpg --dearmor -o /usr/share/keyrings/httpie.gpg &&

echo "deb [arch="arm64" signed-by=/usr/share/keyrings/httpie.gpg] https://packages.httpie.io/deb ./" > /etc/apt/sources.list.d/ httpie.list && apt update && apt install httpie

File '/usr/share/keyrings/httpie.gpg' exists. Overwrite? (y/N) y

gpg: can't create '/usr/share/keyrings/httpie.gpg': Permission denied

gpg: no valid OpenPGP data found.

gpg: dearmoring failed: Permission denied

curl: (23) Failed writing body

====================================================================================

I tried the below command and seems I am able to install httipe version 3.2.1. Can you please try it and let me know.

====================================================================================

curl -SsL https://packages.httpie.io/deb/KEY.gpg | sudo gpg --dearmor -o /usr/share/keyrings/httpie.gpg && echo "deb ###[arch=amd64 signed-by=/usr/share/keyrings/httpie.gpg] https://packages.httpie.io/deb ./" | sudo tee -a /etc/apt/sources.list.d/httpie.list && sudo apt update && sudo apt upgrade httpie

Output --

http --version

3.2.1

====================================================================================

AndriySidliarskiy commented 4 months ago

@siddharth07-ui but you use arch=amd64 in my case arch=arm64 it`s two different architecures.

siddharth07-ui commented 3 months ago

Yes, I have tried both the arch's as you can see, and just thought of sharing my results with you.

Ousret commented 1 month ago

The installation tutorial has been updated it seems. For anyone stumbling here and still facing this or similar issue, ping us. The gpgarmor was missing privilege elevation via sudo.