1

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 ...

Nmath
  • 12,664
Licht
  • 21
  • 5

2 Answers2

2

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

sudo apt install ubuntu-desktop^
1

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
Nmath
  • 12,664
Licht
  • 21
  • 5