ls /usr/bin/python*
sudo apt-get remove python3.5
sudo apt-get remove --auto-remove python3.5
sudo apt-get purge python3.5
sudo apt-get purge --auto-remove python3.5
sudo apt-get update
sudo apt-get install python3.7
ls /usr/bin/python*
sudo apt-get remove python3.5
sudo apt-get remove --auto-remove python3.5
sudo apt-get purge python3.5
sudo apt-get purge --auto-remove python3.5
sudo apt-get update
sudo apt-get install python3.7
Very nice. I just blew my VM. Thanks for nothing.
What the hell, my terminal got removed
DON'T TRY THIS AT HOME !!!!!!
1st result when searching "ubuntu uninstall python" lmao
Thank you! My ubuntu was also broken😅
Don't try it or will distroy Your ubuntu
how to get password
too late to read the comments
Thank you!!! I Just destroyed my ubuntu server
Destroyed my entire fing Ubuntu install, If anyone sees this comment, I would highly advise against using these commands, It will trash your system, if you fall victim to this, enter TTY console if you can, and type sudo apt-get update --fix-missing, then once this finishes, enter sudo apt install -f, this will fix the Ubuntu install, if it doesn't you work you must reinstall Ubuntu somehow. For me, this method worked.
This page should be removed! The commands are destructive and achieve absolutely nothing. Removing Python 3 as it is described above will render your machine unusable. I tested the above commands on VirtualBox machine and it damaged the machine beyond repair. Luckily I had a backup. Again, DON'T USE THE ABOVE COMMANDS!! RUN DON'T WALK!!
please remove this page, not all people reading the comments, and it makes terrible results. just remove it
sudo apt-get purge .... destroys dependencies and ubuntu desktop needs it (i think so...)
So try running:
sudo apt install --reinstall ubuntu-desktop
to solve this problem.
It has worked for me (for now haha) but it was also helpful running sudo apt-get install --reinstall pythonVERSION to reinstall everything that is needed.
(for me was python3.10, just look for it after reinstalling the desktop running /usr/bin/python3 and check which version you need)
For the author of this manual there is a separate cauldron in hell.
Is there no way to report this person or something?
I can see he was active 12 minutes ago, which means he does see these comments, and still keeping this post.
There is something seriously wrong with your brain.
next time, i will read the comments before reading the post :D because i just destroyed my distribution
next time, i will read the comments before reading the post :D because i just destroyed my distribution
as said above, command
sudo apt install --reinstall ubuntu-desktop fixes the problem. But you need an automatic Internet connection, as it can be difficult to set up through the console
next time, i will read the comments before reading the post :D because i just destroyed my distribution
as said above, command
sudo apt install --reinstall ubuntu-desktopfixes the problem. But you need an automatic Internet connection, as it can be difficult to set up through the console
That lone command will not restore everything that was removed. It will only restore ubuntu-desktop and its dependencies! You'll need to make an install script out of everything that got removed.
For example on my machine I'd have to run the following. It will be different for everyone, because it depends what you had installed.
sudo apt install apport apport-gtk aptdaemon apturl apturl-common boot-repair boot-sav boot-sav-extra command-not-found deja-dup duplicity foomatic-db-compressed-ppds gdm3 gedit gedit-common glade2script glade2script-python3 gnome-control-center gnome-menus gnome-online-accounts gnome-shell gnome-shell-extension-appindicator gnome-shell-extension-desktop-icons-ng gnome-shell-extension-ubuntu-dock gnome-terminal gnome-user-docs gvfs-backends hplip hplip-data ibus ibus-table language-selector-common language-selector-gnome libsmbclient libwacom-bin llvm-14-dev llvm-14-tools llvm-15-dev llvm-15-tools lsb-release nautilus-extension-gnome-terminal nautilus-share netplan.io networkd-dispatcher nvidia-prime nvidia-settings openprinting-ppds orca pastebinit plymouth-theme-spinner plymouth-theme-ubuntu-text postgresql-server-dev-15 printer-driver-foo2zjs printer-driver-foo2zjs-common printer-driver-m2300w printer-driver-postscript-hp printer-driver-ptouch printer-driver-pxljr printer-driver-sag-gdi rhythmbox-plugin-alternative-toolbar rhythmbox-plugins samba-libs screen-resolution-extra software-properties-common software-properties-gtk system-config-printer system-config-printer-common system-config-printer-udev totem-plugins ttf-mscorefonts-installer ubuntu-advantage-desktop-daemon ubuntu-advantage-tools ubuntu-desktop ubuntu-desktop-minimal ubuntu-docs ubuntu-drivers-common ubuntu-minimal ubuntu-pro-client-l10n ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk ubuntu-session ufw unattended-upgrades update-manager update-manager-core update-notifier update-notifier-common usb-creator-common usb-creator-gtk xorg xserver-xorg yelp
When you are uninstalling python3 it will tell you every package that will also be removed. That's how you build your reinstall script - just copy everything into a single line, then add sudo apt install in front.
Of course this is after you reinstall python.
OMG you are a mfcker. I got my VM almost completely destroyed but i got to recover it. You are a piece of crap.
I just broke my father SO AHAHHAHHAHAHA OOOOOOOOO NO
this page is still up 🤣
The Great Filter be like:
OK ... NOT ALL OF YOU KNOW THIS...
PYTHON IS USED EXTENSIVELY IN MOST LINUX DISTROS, ESPECIALLY IN GUI/DESKTOP
DO NOT DO THIS UNLESS YOUR INTENT IS TO REINSTALL PYTHON IMMEDIATELY AND YOU KNOW WHAT YOU ARE DOING !!!!!!!!!!!
@jugal-sheth NOW THAT'S VALUE ADDING!!!
I spoiled my ubuntu. Please remove this message
ultimately the lesson learned is to use arch linux, OP did you all a favor... btw
Worked for me thanks 👍
yall really testing these commands on your laptops ? what docker or vm did to you to hate using it so much