Debian "Cannot write to ‘-’ (Broken pipe)." Problem HELP

Status
Not open for further replies.

sahamott

Free User
Joined
Jul 4, 2019
Messages
1
Reaction score
0
Hi,

I get error during installation with ssh.

1.Command for installation

Code:
wget -O- http://downloads-global.3cx.com/downloads/3cxpbx/public.key | sudo apt-key add -

And debian error code;
Code:
-                     0%[                    ]       0  --.-KB/s    in 0s


Cannot write to ‘-’ (Broken pipe).

Screen :
11221

what is problem ?
 
Hi,

I get error during installation with ssh.

1.Command for installation

Code:
wget -O- http://downloads-global.3cx.com/downloads/3cxpbx/public.key | sudo apt-key add -

And debian error code;
Code:
-                     0%[                    ]       0  --.-KB/s    in 0s


Cannot write to ‘-’ (Broken pipe).

Screen :
View attachment 11221

what is problem ?

The problem is that you are running the command with elevated privileges (as root?) and do not require 'sudo' on the apt-key add command.

If you see ": #" you are already running with elevated permissions.
If you see ": $:" you need to add sudo

Drop 'sudo' from the second half of the command after the "|"

The command should look like this:

Code:
wget -O- http://downloads-global.3cx.com/downloads/3cxpbx/public.key | apt-key add -
 
Status
Not open for further replies.

Forum statistics

Threads
111,930
Messages
589,801
Members
164,803
Latest member
fcentral