-3

I accidentally deleted my ubuntu desktop and now I have no way of redownloading it. I’ve tried to do a sudo apt update and upgrade. When I type

Sudo apt install ubuntu-desktop

I get the following issue: Package ‘Ubuntu-desktop’ has no installation candidate. I tried everything including deleting the list file, cleaning, updating, upgrading, etc. please help

Version: Ubuntu 21.10

2 Answers2

1

Ubuntu 21.10 (Impish Indri) End of Life reached on July 14 2022.

Ubuntu 21.10 is no longer supported. It is archived to old-releases.ubuntu.com. You have edit /etc/apt/sources.list and change 'archive.ubuntu.com' to 'old-releases.ubuntu.com'.

This can be done by typing

sudo sed -i -e 's/archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

in the terminal. After running this command, run sudo apt update && Sudo apt install ubuntu-desktop. It is best you update to a newer and supported version of Ubuntu unless you have a very specific and genuine reason to stay on Ubuntu 21.10.

1

If you are trapped you can try installing an alternative DE like cinnamon or KDE. To install KDE use the following command

sudo apt install kde-plasma-desktop

or you can upgrade your desktop using the command

sudo do-release-upgrade

Hope this helps you.

Rahul Raj
  • 11
  • 1