October 16, 2020 Linux
Fixed Debian 10 "Cannot write to ‘-’ (Broken pipe)."
Problem Description
When run the following command to install key in debian 10,
wget -O - https://repo.jellyfin.org/jellyfin_team.gpg.key | sudo apt-key add -,
terminal outputs an error:
"- 0%[ ] 0 --.-KB/s in 0s
Cannot write to ‘-’ (Broken pipe)."
How to Fix
We can run this combined command separately.
First, run wget https://repo.jellyfin.org/jellyfin_team.gpg.key.
It works well.
Then, run sudo apt-key add jellyfin_team.gpg.key.
Terminal gives a prompt:
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation.
OK, the problem is located.
Now, just install the gnupg to use this command:
sudo apt install gnupg.
When installation is end, it's done.
Just rerun to type:
wget -O - https://repo.jellyfin.org/jellyfin_team.gpg.key | sudo apt-key add -,
it will work perfectly.
That's all.
Oct 16, 2020