Unable to Upgrade to latest version 2.1.2

Hello Everyone, I tried upgrading my Cyberpanel but it shows an error:

`Reading state information… Done
libffi-dev is already the newest version (3.3-4).
python3-dev is already the newest version (3.8.2-0ubuntu2).
build-essential is already the newest version (12.8ubuntu1.1).
libssl-dev is already the newest version (1.1.1f-1ubuntu2.10).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
python3-venv is already the newest version (3.8.2-0ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit:1 Index of /ubuntu focal InRelease
Hit:2 Index of /ubuntu focal-updates InRelease
Hit:3 Index of /ubuntu focal-backports InRelease
Hit:4 Index of /ubuntu focal-security InRelease
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Requirement already satisfied: virtualenv==16.7.9 in /usr/local/lib/python3.8/dist-packages (16.7.9)

No need to resetup virtualenv at /usr/local/CyberPanel…

–2021-12-11 00:29:20-- https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.1.2/requirments.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 185.199.109.133, 185.199.110.133, 185.199.111.133, …
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1468 (1.4K) [text/plain]
Saving to: ‘/usr/local/requirments.txt’

/usr/local/requirments.txt 100%[====================================================================================================>] 1.43K --.-KB/s in 0s

2021-12-11 00:29:20 (9.35 MB/s) - ‘/usr/local/requirments.txt’ saved [1468/1468]

Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named ‘encodings’

Current thread 0x00007f7a8c0f9740 (most recent call first):
/usr/local/cyberpanel_upgrade.sh: line 467: 3133 Aborted (core dumped) pip3 install --default-timeout=3600 virtualenv==16.7.9
above command failed…
`

Can anyone please help regarding the same?

Which OS (including version number) and which Hosting provider? Is it contabo?

Tell us about your hosting provider. And the progress of the Internet.

hello, were you able to solve it?
I have Ubuntu 20.04 LTS, internet works fine

resolved after installing multiple version of python

python2.7/ python3/ python3.10/ python3.11/ python3.7/ python3.8/

also for

fatal error: Python.h: No such file or directory

sudo apt-get install python3.8-dev

change 3.8 to all other python versions

Which os is this ?

ubuntu 22.04 upgraded from 20.04

Wrong move. Rollback your server or backup all your mail data and website files. Reinstall os Ubuntu 22.04 or 20.04 and install the latest copy of cyberpanel.

Upgrade of cyberpanel server os to a major release is not supported.

no need my CP is working fine now i am posting the solution not asking about the issue

this error got resolved after i install multiple version of python

python2.7/ python3/ python3.10/ python3.11/ python3.7/ python3.8/

Just a general advise to all users:
Only perform OS upgrade if you are well aware of the linux commands and operations because sometimes due to certain packages and some config files being replaced using distro upgrade, the server may fail to function properly or malfunction.

The best way I suggest for everyone is to create a fresh server with latest OS update, install cyberpanel and then move all your domains using the remote transfer option in cyberpanel which will copy all the sites including files and databases as it is along with its SSL data too. Server to server copy method is fastest and safe. This way, nothing really breaks and you get the latest OS, cyberpanel installed.

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