I have a standard Ubuntu remote server from HostWinds that is set up per their normal settings, Ubuntu 22.04.5 LTS. I added MySQL, but otherwise I have made very few changes except I installed Python 3.13 because I wanted to use the latest Python version rather than the standard Python 3.10.12 that comes with Ubuntu. Now I can't update the server at all and everything I try to install gives similar errors. For example, running the command:sudo apt update && sudo apt upgrade -y
results in the following error:
Reading package lists...Building dependency tree...Reading state information...You might want to run 'apt --fix-broken install' to correct these.The following packages have unmet dependencies: libpython3.13 : Depends: libpython3.13-stdlib (= 3.13.1-1+jammy1) but 3.13.0-1+jammy1 is installed libpython3.13-dev : Depends: libpython3.13-stdlib (= 3.13.1-1+jammy1) but 3.13.0-1+jammy1 is installed python3.13-dev : Depends: python3.13 (= 3.13.1-1+jammy1) but 3.13.0-1+jammy1 is installedI have tried the apt --fix-broken install command recommended by the error of course, but that gives an error also that is full of references to Python 3.13. I am almost positive I simply shouldn't have messed with Python by installing 3.13. I should have stuck with 3.10.12, but how do I go back without just restarting the server? I really don't want to set up the non-root user and database and database usernames and permissions on the database and everything again if I don't have to.
Also, I get the same error when I try to install nginx, which I would like to install and now I can't.
I realize my title assumes a particular cause of my error. At a minimum, I want to at least eliminate the Python 3.13 installation as a possible cause so I can move on since I am not using it at all anyway. I really try to stick to 'standard' and I am kicking myself for installing Python 3.13, but I did and now I'm stuck.
How do I get back to where I didn't install Python 3.13? Or what else could be causing this error? I want to be able to update my server and install nginx.