pull down to refresh
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
reply
That's a great news, well done 💪
For the error, have you rebooted the server?
sudo rebootThen 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 withecho "a3ba69a8102345127b4ae0e28cfe89daca675cbc63cd39225133cdd2fa02ad36" install.sh | sha256sum -cto install it, and then
sudo bash install.shto verify the installation
reply
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.
reply
ok let's stop the services:
sudo systemctl stop apache2 OR sudo systemctl stop nginx if you are using nginx, and
sudo systemctl stop mysqlif the services restart automatically, just disable both using
sudo systemctl disable apache2 (assuming is an apache server) and
sudo systemctl disable mysqlthen try again
reply
deleted by author
reply
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 packages
sudo dpkg --configure -aFix broken dependencies
sudo apt-get install -fClean cached packages (optional)
sudo apt-get cleanRetry installing mysql-server (maybe not needed)
sudo apt-get install --reinstall mysql-server-8.0reply
are you on apache or nginx? can you share the specs of your server on cotabo? I should have ask earlier...
idk, how could I look it up 👀
reply
deleted by author
reply
is mysql still running?
sudo systemctl stop mysqlsudo apt-get purge mysql-server-8.0 mysql-client mysql-common mysql-server-core-8.0
sudo rm -rf /etc/mysql /var/lib/mysql /var/log/mysql
sudo apt-get autoremove
sudo apt-get autocleanThen let's try to reinstall MySQL
sudo apt-get update
sudo apt-get install mysql-server-8.0Hopefully ithis succeeds! Verify with:
sudo systemctl status mysqlwow, thanks, let me try again tmr! and crazy why such simple thing can be so complicated, more complicated than a Bitcoin node 😂
reply
deleted by author
reply
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_ip
You 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 upgrade
reply
deleted by author
deleted by author
bashsudo apt update && sudo apt upgrade -ysudo apt dist-upgrade -y# Handle dependency changessudo apt autoremove --purge# Remove obsolete packagesbashsudo rebootbashsudo apt install update-manager-core -ybashsudo do-release-upgradebashsudo rebootbashlsb_release -a# Check Ubuntu versionuname -a` # Check kernel versionbashsudo apt update && sudo apt upgrade -y