Score:1

I switched from Ubuntu Desktop to Ubuntu Server. How do I switch back?

do flag

I accidentally switched from Ubuntu Desktop 22.04 to Ubuntu Server 22.04. Typing one command without realizing understanding it, I tried to switch to Ubuntu desktop by installing tasksel, but I couldn't update apt.

Ubuntu server image:

Ubuntu server image

The error that i face installing tasksel:

The error that i face installing tasksel

This is my terminal history after my laptop screen became red.

this is my terminal history after my laptop screen became red ...

chili555 avatar
cn flag
The command: `history` may help you recall the command that you issued that is the start of the problem.
Licht avatar
do flag
You can check my history, I edited my question
karel avatar
sa flag
Does this answer your question? [How do I enable the "Universe" repository?](https://askubuntu.com/questions/148638/how-do-i-enable-the-universe-repository)
karel avatar
sa flag
Does this answer your question? [Should I use tasksel, tasks in APT or install regular metapackages?](https://askubuntu.com/q/252056/)
Licht avatar
do flag
Finally ifoind out that I have a released life repository... rm.old.releases.ubuntu.com could not be resolved ... for now I have no I idea where this is going
user535733 avatar
cn flag
Your output in the pictures shows that the question is misleading. You didn't "accidentally switch" to a different flavor of Ubuntu. You purposefully ran several very-unwise commands that uninstalled your desktop environment. The "`purge python*`" command is particularly troubling -- that's a guaranteed system-killer, and any such instructions are highly suspicious.
Score:2
us flag

Assuming you want to get back to ubuntu desktop, enter the following command and reboot.

sudo apt install ubuntu-desktop^
Levente avatar
cn flag
What does the `^` caret at the end mean? To use the most recent compatible version? Is that not implied anyways? Or is it something like autocomplete, adapting itself for the Ubuntu-flavor's corresponding desktop environment?
Organic Marble avatar
us flag
@Levente https://askubuntu.com/questions/211912/whats-the-caret-mean-in-apt-get
Levente avatar
cn flag
@OrganicMarble ah, it means: do a bunch of things. `ubuntu-desktop^` is, in truth, a bunch of things. Thank you. Update: it's detailed at the bottom of this other answer: https://askubuntu.com/a/257172/1157519
user535733 avatar
cn flag
+1: For the problem presented, this is a simple, safe, understandable, and highly effective solution.
Score:1
do flag

To switch from Ubuntu Server to Ubuntu Desktop I had to install the ubuntu-desktop package.

That was not acceptable from my repositories.

This was the repositories problem. I added some released life repositories to:

/etc/apt/sources.list

All the links were like:

http://mr.old-releases.ubuntu.com/ubuntu

This resulted in the error :

mr.old-releases.ubuntu.com could not be resolved

I changed mr.old-releases to archive so that the link became like this:

http://archive.ubuntu.com/ubuntu

Then I updated apt:

sudo apt update

Then I installed the ubuntu-desktop package:

sudo apt install ubuntu-desktop
Licht avatar
do flag
this is my first time using the platform, thanks for the advice i will try to make it better next time
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.