I completely broke my 2-month-old 23.04 installation today.
Steps:
- Needed python for something so
python->Command 'python' not found... - Installed python
sudo apt install python - Noticed it installed python 2.7 instead of python3
sudo apt remove python
Then the system crashed, flashed on the screen of the fs being corrupted and completely failed to post for ~30 minutes.
Now my Ubuntu boots into a terminal, no desktop, no networking, usb works though.
I'm not sure how any of this is even possible because:
pythonhas no installation candidate on any of my other systems (all fresh installs), I'm not sure how it installed in the first place- should uninstalling freshly installed python affect Ubuntu desktop, especially since
/usr/bin/pythonis no longer installed by default python3.11.4is still installed on the system which is the default
Could I be looking at a hardware issue or might this be an Ubuntu thing?
Everything works fine on a live Ubuntu boot image.
python3runs python 3; wherepythonruns the earlier python2 as the Python specs still default to (written long ago & unchanged). You should not remove the default python3 on a Ubuntu Desktop system; did you wantpython2or just want to use the already installedpython3system? – guiverc Aug 05 '23 at 04:00sudo apt uninstall pythonon a fresh 23.04, it says it cannot find python. I know the difference python and python3. The point is, Ubuntu no longer supports installing Python2.7 asapt install python. Maybe you didn't read my whole question. Python3 is still on my system, didn't touch it. The basepython(2.7 presumably) was never in any of my*/bindirectories until I installed it, then immediately uninstalled it. Even weirder,pythonhas no installation candidate. Just very strange all around. – bherbruck Aug 05 '23 at 18:17