Cannot write to ‘-’ (Broken pipe) on centos 8

[hi_asecid@asec-1 ~]$ sudo su - sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0su: user sh does not exist
100 1304 100 1304 0 0 2225 0 --:–:-- --:–:-- --:–:-- 2225
(23) Failed writing body
–2020-07-25 00:24:05-- https://cyberpanel.net/install.sh
Resolving cyberpanel.net (cyberpanel.net)… 104.27.163.149, 104.27.162.149, 172.67.189.17, …
Connecting to cyberpanel.net (cyberpanel.net)|104.27.163.149|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1304 (1.3K) [application/x-sh]
Saving to: ‘STDOUT’

  •                          0%[                                              ]       0  --.-KB/s    in 0s      
    

Cannot write to ‘-’ (Broken pipe).

Anyone know to fix this? I’ve already google it, but nothing answer can fix this. centos 8 (google cloud platform). I’ve install python 2.6 & 3. already yum update & upgrade.

I’m having this problem now as well on Ubuntu 20.04

I recently created a new sudo user and turned off Root Login, in accordance with security best practices. When I run the upgrade script, I get the same error message. It doesn’t matter if I do sudo su -, sudo -i [password] then run the script, or anything else.

How do we upgrade when we have disabled root user access?

I think I have solved this with this command

sudo su - -c "sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)"

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.