Cant able to upgrade CyberPanel on Google Cloud Platform

hi, HI, i am using CyberPanel v1.8.9 on Google Cloud Platform,
but i cant able to upgrade it to the latest version of cyberpanel.
i had followed this command [02 - Upgrading CyberPanel - 01 - Install/Upgrade - CyberPanel Community]
sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)

but it gave me this error : /dev/fd/63: 11: /dev/fd/63: /usr/local/CyberPanel/bin/python2: not found

what is the output of

ls -la /usr/local/CyberPanel

ls: cannot access ‘/usr/local/CyberPanel’: No such file or directory

Type your comment> @CyberPanel said:

what is the output of

ls -la /usr/local/CyberPanel
it gives me this

ls: cannot access ‘/usr/local/CyberPanel’: No such file or directory

had anyone tried to update cyberpanel 1.8.9 to latest version.
i had triend 9 times with no success.

@CyberPanel plz check it by yourself, updating gcp on cyberpanel is not working.
i you want i can give you my username & password

it says

Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1065 (1.0K) [text/plain]
Saving to: ‘requirements.txt’
requirements.txt 100%[=============================================>] 1.04K --.-KB/s in 0s
2020-01-12 09:29:54 (69.5 MB/s) - ‘requirements.txt’ saved [1065/1065]
/dev/fd/63: line 83: pip3: command not found
–2020-01-12 09:29:54-- http://www.litespeedtech.com/packages/lsapi/wsgi-lsapi-1.4.tgz
Resolving www.litespeedtech.com (www.litespeedtech.com)… 52.55.120.73
Connecting to www.litespeedtech.com (www.litespeedtech.com)|52.55.120.73|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 47890 (47K) [application/x-gtar]
Saving to: ‘wsgi-lsapi-1.4.tgz’
wsgi-lsapi-1.4.tgz 100%[=============================================>] 46.77K 83.2KB/s in 0.6s
2020-01-12 09:29:55 (83.2 KB/s) - ‘wsgi-lsapi-1.4.tgz’ saved [47890/47890]
/dev/fd/63: line 97: /usr/local/CyberPanel/bin/python: No such file or directory
make: *** No targets specified and no makefile found. Stop.
cp: cannot stat ‘lswsgi’: No such file or directory
Error getting authority: Error initializing authority: Exhausted all available authentication mechanisms (tried: EX
TERNAL) (available: EXTERNAL) (g-io-error-quark, 0)
Failed to restart lscpd.service: Access denied
See system logs and ‘systemctl status lscpd.service’ for details.
###################################################################
CyberPanel Upgraded
###################################################################

but actually i am still on v1.8.9

did you run sudo su before running the upgrade script?

To me, works changing (Ubuntu 18.04):

sudo nano /etc/ssh/sshd_config
PermitRootLogin prohibit-password to PermitRootLogin yes
PasswordAuthentication no to PasswordAuthentication yes
then, restart ssh service:

sudo service ssh restart
Thanks!

& i finally updated to latest version of cyberpanel.
super thanks to @Numeriku

@dhaval , could you share how you made it works?

Type your comment> @coldegg said:

@dhaval , could you share how you made it works?

ofcource, what error are you facing right now?