pull down to refresh
20.04
Then try to upgrade to the latest version:
- Make a backup of the current state of the server... just in case!
- Update Current Packages
bashsudo apt update && sudo apt upgrade -ysudo apt dist-upgrade -y# Handle dependency changessudo apt autoremove --purge# Remove obsolete packages - Reboot (if needed)
If the kernel was updated:bashsudo reboot - Install Upgrade Tool
Ensure update-manager-core is installed:bashsudo apt install update-manager-core -y - Start the Upgrade
For LTS-to-LTS upgrade (e.g., 20.04 → 22.04):bashsudo do-release-upgrade - Follow On-Screen Prompts
... and onfirm actions when asked (like, removing old packages) - Complete the Upgrade
After packages are installed, is good to restart the server:bashsudo reboot - Post-Upgrade Checks
Verify OS version:bashlsb_release -a# Check Ubuntu versionuname -a` # Check kernel version - Update packages again (post-reboot):
bashsudo apt update && sudo apt upgrade -y
good news: I managed to updage ubuntu, 22.04 now but then when I run
curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh;
echo "a3ba69a8102345127b4ae0e28cfe89daca675cbc63cd39225133cdd2fa02ad36 install.sh" |
sha256sum -c && sudo bash install.sh
it shows ERROR: Your system already has services running on port 80, 443 or 3306.
what should I do
That's a great news, well done 💪
For the error, have you rebooted the server?sudo reboot
Then try one line at time:curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh to download the installer first. See if the error persists, or if it gives different output and depending on what it gives, keep going with
echo "a3ba69a8102345127b4ae0e28cfe89daca675cbc63cd39225133cdd2fa02ad36" install.sh | sha256sum -c
to install it, and then
sudo bash install.sh
to verify the installation
sudo reboot
I did reboot it
just tired again ( one line at time ) and it's showing the same output: ERROR: Your system already has services running on port 80, 443 or 3306.
ok let's stop the services:
sudo systemctl stop apache2 OR sudo systemctl stop nginx if you are using nginx, andsudo systemctl stop mysql
if the services restart automatically, just disable both using
sudo systemctl disable apache2 (assuming is an apache server) andsudo systemctl disable mysql
then try again
deleted by author
are you on apache or nginx? can you share the specs of your server on cotabo? I should have ask earlier...
In the meantime, let's repair partially installed packagessudo dpkg --configure -a
Fix broken dependenciessudo apt-get install -f
Clean cached packages (optional)sudo apt-get clean
Retry installing mysql-server (maybe not needed)sudo apt-get install --reinstall mysql-server-8.0
wow, thanks, let me try again tmr! and crazy why such simple thing can be so complicated, more complicated than a Bitcoin node 😂
deleted by author
your snapshot should be enough in case anything goes wrong. Ubuntu upgrade are safe anyway. In the worst case scenario, before restoring the snapshot you can also try to connect via port 1022 as suggested with
ssh -p 1022 username@your_server_ipYou can also try to keep your session alive using tmux or screen on the command to avoid accidental disconnections:
sudo apt install tmux -y && tmux new -s upgradedeleted by author
deleted by author
CloudPanel offer two version for v24 and v22, which version your server is running?
try
lsb_release -aotherwise try to force the script install with:
curl -sS https://installer.cloudpanel.io/ce/latest.sh | bash -s -- --forceJust to prepare to next steps... Are you using MySQL in your existing sites?
BTW: these are 3 separated commands... not sure you can run them all together