Score:0

Reinstall update-manager in ubuntu 20.04

mk flag

Summary

I am using Ubuntu 20.04. Recently while trying to install a game using Lutris, I managed to remove ubuntu desktop from my computer. I managed to reinstall wayland using sudo apt install gnome-session-wayland. Now my computer works normally apart from minor changes on my desktop. But I realized that update-manager is missing. I don't receive any updates and I cannot upgrade my OS to Ubuntu 22.10. I need help with reinstalling update-manager

More context on how I messed up my setup

I was following these instructions. Due to some mistakes, I wanted to start over and I ran the following commands:

sudo apt remove -y nvidia-driver-515 libvulkan1 libvulkan1:i386
sudo apt remove libgl1-mesa-dri:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386
sudo apt remove --purge nvidia*

After that I started getting problems with lightdm during reboot and the OS failed to load the UI. I got around the issue by installing wayland via:

sudo apt install gnome-session-wayland

Any help is appreciated, thank you

Raffa avatar
jp flag
`sudo apt install --reinstall update-manager` would do that ... Although `lightdm` tells me you are running an Ubuntu flavor or you have changed the default GDM.
user535733 avatar
cn flag
Stop using `-y` with apt commands. It disables a key protection, as you discovered to your sorrow. ALWAYS read and understand your apt output before agreeing to changes. That output is there to protect your system. Use it!
waltinator avatar
it flag
Inspect the log files in `/var/log/apt/`. That's where package installs and uninstalls are logged.
us flag
Try `sudo apt install --reinstall ubuntu-desktop^`. This will restore all the default packages ubuntu-desktop comes with
Alper avatar
mk flag
@Raffa 's comment worked. Thank you.
Alper avatar
mk flag
Also, thanks @ArchismanPanigrahi I've reinstalled the ubuntu desktop.
us flag
Now that you found the solution, can you write your own answer for future users?
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.