"sudo apt purge python*"

Asked by Bernhard Binzen

Why do I exercise a total crash of Ubuntu Focal Fossa 20.04 lts, if I operate into a shell the command "sudo apt purge python*"? I don't receive any alert of APT about that action before I start that process!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

What exactly is crashing when you do this?

Revision history for this message
Bernhard Binzen (binber) said :
#2

On 22.08.21 12:55, Manfred Hampl wrote:
> Your question #698458 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/698458
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> What exactly is crashing when you do this?
>
The whole system crashed!!

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

As far as I can see from a simulation (I do not want to do it for real on my system), removing all python* packages also requires uninstalling the xorg windowing environment.
If you do this while you are running that graphical system, you have to expect weird effects.

If you do this from the command line interface (like a server system), then this should not create problems (except missing lots of programs afterwards).

What is the reason for running such command? What do you expect to gain from it?
You should have seen an informational message, that this command will remove dozens of packages, including xorg.

Revision history for this message
Bernard Stafford (bernard010) said :
#4
Revision history for this message
Manfred Hampl (m-hampl) said :
#5

What is the current status of your system?
Does it boot into the command line environment?

If it does, then you should be able to log in with your username and password and then reinstall a bunch of useful packages (including the windowing environment) with the command

sudo apt install ubuntu-desktop

(no need for a new install from scratch)

Revision history for this message
Bernhard Binzen (binber) said :
#6

On 22.08.21 16:01, Bernard Stafford wrote:
> Your question #698458 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/698458
>
> Bernard Stafford posted a new comment:
> https://ubuntu.com/download/desktop
>
My recently installed OS-version names Ubuntu 20.04.3 LTS!

Revision history for this message
Bernhard Binzen (binber) said :
#7

On 22.08.21 17:40, Manfred Hampl wrote:
> Your question #698458 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/698458
>
> Manfred Hampl posted a new comment:
> What is the current status of your system?
> Does it boot into the command line environment?
>
> If it does, then you should be able to log in with your username and
> password and then reinstall a bunch of useful packages (including the
> windowing environment) with the command
>
> sudo apt install ubuntu-desktop
>
> (no need for a new install from scratch)
>
Thanks,

my recently installed OS-version names Ubuntu 20.04.3 LTS!

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

"my recently installed OS-version names Ubuntu 20.04.3 LTS!"

Yes, this is expected if you have regularly installed the available updates.
The number after the second dot changed from 2 to 3 on August 18, 2021.

Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#9

"my recently installed OS-version names Ubuntu 20.04.3 LTS!"

Continuing my message from above:

A Ubuntu 20.04.3 installer iso file will be made available in near future, but it is not yet published.
First step is changing the dot number for already installed systems, and the new iso file will follow afterwards.

Can you help with this problem?

Provide an answer of your own, or ask Bernhard Binzen for more information if necessary.

To post a message you must log in.