Repository: eza-community/eza (language: rust)

Issue:
bug: deb installation instructions use ascii-armored GPG key
in an ubuntu 20.04.6 container, I followed the deb instructions but get
```
$ sudo apt update
W: http://deb.gierens.de/dists/stable/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/gierens.asc are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: http://deb.gierens.de stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EC29E2090CE3FD43
E: The repository 'http://deb.gierens.de stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
```

this is because the GPG key is armored. de-armoring it works

```
$ wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/gierens.asc
$ sudo apt update
$ sudo chmod o+r /etc/apt/sources.list.dgierens.list 
$ apt list eza
Listing... Done
eza/stable 0.11.1 arm64
```


Discussion / hints:
Thanks for the issue and the hint, I'll update the `README.md` tomorrow.
For some reason the opposite worked for me. When I first tried to install the program, the `wget` line outputted unrecognizable characters. After a few minutes of troubleshooting, I removed the `gpg --dearmor` and it worked as normal.
![image](https://github.com/eza-community/eza/assets/133786254/0a311cf9-07f0-484a-ae87-27b6d5098fd0)

the unprintable characters are expected (that's what ascii-armoring is meant to prevent). that doesn't indicate an issue and actually means it's working

are you saying that, with the de-armored key, you weren't able to install eza? if so, what OS are you on (`cat /etc/issue*`) and what did it say when you tried to `apt update` @dng-nguyn?

if there is indeed a problem with de-armoring, it has nothing to do with containers. perhaps an older version doesn't support de-armored keys (unlikely) or a newer version wants to use `/etc/apt/keyrings` instead
Alright I googled around a bit, documentation on this is seems a little thin or often outdated. From what I understand the current suggestion is to store the key online in armored format but locally have it dearmored in `/etc/apt/keyrings`. I do agree however that `tee`ing the dearmored format does produce this very ugly and maybe confusing output. So either using `sudo gpg --dearmor -o ...` or `tee` with `1>/dev/null` is probably a good idea.

There were some comments suggesting that `/etc/apt/keyrings` might not even be present by default on all systems. To check this and verify the process with dearmoring in general I will spin up a few VMs tomorrow with the latest two releases of Ubuntu and Debian and test it for myself once more. Following that I will update the `README.md` with the then hopefully final recommendation.

Also @PThorpe92, I have to take back my "I told you so" soooorry :heart: 
I am currently on debian 12 bookworm. On my first, clean installation program, I ran the provided commands (the one with `gpg --dearmor`) and as far as I can remember it showed that the repository was not signed and eza had no installation candidate.
I was gonna poke around in a container but it looks like deb.gierens.de (resolving to 138.246.234.80 for me) is down right now
> I was gonna poke around in a container but it looks like deb.gierens.de (resolving to 138.246.234.80 for me) is down right now

Cooling issue at the data center, fabulous, I'll take care of it but could take a while ... gonna try to make the repo high available with multiple hosts once it's up again later the day.

Fix patch:
diff --git a/README.md b/README.md
index c9b435944..d605f0ba4 100644
--- a/README.md
+++ b/README.md
@@ -99,24 +99,24 @@ pacman -S eza
 Eza is available from [deb.gierens.de](http://deb.gierens.de). The GPG public
 key is in this repo under [deb.asc](/deb.asc).
 
-To install eza from this repo use:
+First make sure you have the `gpg` command, and otherwise install it via:
 
 ```bash
-wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo tee /etc/apt/trusted.gpg.d/gierens.asc
-echo "deb http://deb.gierens.de stable main" | sudo tee /etc/apt/sources.list.d/gierens.list
 sudo apt update
-sudo apt install -y eza
+sudo apt install -y gpg
 ```
 
-**Note:** on some systems like Docker containers apt might require the key
-to be in dearmored format, then use this command instead:
+Then install eza via:
 
 ```bash
-wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/gierens.asc
+sudo mkdir -p /etc/apt/keyrings
+wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo gpg --dearmor -o /etc/apt/keyrings/gierens.gpg
+echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" | sudo tee /etc/apt/sources.list.d/gierens.list
+sudo chmod 644 /etc/apt/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.list
+sudo apt update
+sudo apt install -y eza
 ```
 
-before proceeding with the others from above.
-
 ### Nix (Linux, MacOS)
 
 [![nixpkgs unstable package](https://repology.org/badge/version-for-repo/nix_unstable/eza.svg)](https://repology.org/project/eza/versions)


Test patch: