Page 1 of 1
How to reinstall a component I accidentally deleted
Posted: Thu May 30, 2024 11:57 am
by carturo222
Hi. This week, I installed MX Libretto for the first time. It worked perfectly until I felt adventurous and started installing programs I wanted and uninstalling some I didn't want. At some point, being the total amateur that I am, I must have deleted something that was important. Next time I tried to turn on the computer, it showed a message saying org.kde.plasma was missing, so it couldn't start.
If I could access the MX package program, I could install that component, but I can't do that if I can't even log in. However, I still have the bootable USB drive. Is there a way I can fix the missing part if I boot from the USB?
Re: How to reinstall a component I accidentally deleted
Posted: Thu May 30, 2024 12:05 pm
by CharlesV
Welcome In
If you had made any TImeShift snapshots, then yes you could liveusb and then roll the timeshift back.
There may also be a method to 'reset' the KDE de to work, but I am not familiar enough with KDE to suggest on that one. Someone else here can I am sure.
Re: How to reinstall a component I accidentally deleted
Posted: Thu May 30, 2024 12:07 pm
by Eadwine Rose
Personally.. I'd reinstall, keeping home to keep your files.
Re: How to reinstall a component I accidentally deleted
Posted: Thu May 30, 2024 1:08 pm
by Charlie Brown
Boot with the live usb, open "Chroot Rescue Scan" from menu, proceed , when you see the prompt:
chroot>
issue:
Then looking at the output install what's missing or install all that were removed that day etc...
Yes, no need to sudo.
Re: How to reinstall a component I accidentally deleted
Posted: Thu May 30, 2024 2:56 pm
by Stevo
Out of curiosity, can you get to the login screen, and then KDE won't start?
If so, it's an argument for having at least one more desktop environment as a backup boot option, such as lxqt or xfce (not much space required for those).
Re: How to reinstall a component I accidentally deleted
Posted: Thu May 30, 2024 3:07 pm
by fehlix
Charlie Brown wrote: Thu May 30, 2024 1:08 pm
Boot with the live usb, open "Chroot Rescue Scan" from menu, proceed , when you see the prompt:
chroot>
issue:
May be older installs, but recent MX KDE install don't have apt-history installed, ootb.
Re: How to reinstall a component I accidentally deleted
Posted: Thu May 30, 2024 3:43 pm
by carturo222
Stevo wrote: Thu May 30, 2024 2:56 pm
Out of curiosity, can you get to the login screen, and then KDE won't start?
That's right.
Re: How to reinstall a component I accidentally deleted
Posted: Thu May 30, 2024 3:46 pm
by kmathern
fehlix wrote: Thu May 30, 2024 3:07 pm
Charlie Brown wrote: Thu May 30, 2024 1:08 pm
Boot with the live usb, open "Chroot Rescue Scan" from menu, proceed , when you see the prompt:
chroot>
issue:
May be older installs, but recent MX KDE install don't have apt-history installed, ootb.
This should show the apt history if it's not installed
(apt-history gets installed with the apt-notifier package)
Code: Select all
zgrep -EH ' install | upgrade | purge | remove ' /var/log/dpkg* | cut -f2- -d: | sort -r | column -t | more -d
Re: How to reinstall a component I accidentally deleted [Solved]
Posted: Thu May 30, 2024 4:19 pm
by Stevo
carturo222 wrote: Thu May 30, 2024 3:43 pm
Stevo wrote: Thu May 30, 2024 2:56 pm
Out of curiosity, can you get to the login screen, and then KDE won't start?
That's right.
If you can then boot to a terminal screen and have a Net connection there, you should be able to install the "kde-plasma-desktop" metapackage, which at least should get the KDE GUI back up.
Re: How to reinstall a component I accidentally deleted
Posted: Thu May 30, 2024 6:52 pm
by carturo222
boot to a terminal screen and have a Net connection there
How do I do that?
Re: How to reinstall a component I accidentally deleted
Posted: Fri May 31, 2024 1:29 am
by carturo222
Stevo wrote: Thu May 30, 2024 2:56 pm
If you can then boot to a terminal screen and have a Net connection there
It worked like magic! From the terminal I was able to reinstall the missing parts. Thank you very much.
Re: How to reinstall a component I accidentally deleted
Posted: Fri May 31, 2024 2:25 pm
by Madison
@carturo222
For educational reasons, could you share the KDE package name which you reinstalled in order to fix the system.
Re: How to reinstall a component I accidentally deleted
Posted: Fri May 31, 2024 2:45 pm
by carturo222
Madison wrote: Fri May 31, 2024 2:25 pm
@carturo222
For educational reasons, could you share the KDE package name which you reinstalled in order to fix the system.
It wasn't just one package. apt history gave me a dozen pages of text with hundreds of uninstalled components. I painstakingly reinstalled them one by one.
Re: How to reinstall a component I accidentally deleted
Posted: Sat Jun 01, 2024 8:27 pm
by Stevo
There's a metapackage that could have got the desktop back with one install, "kde-plasma-desktop". Extra goodies not included, so you'd still have to manually do those. There's a loaded luxury model, "kde-plasma-desktop-full", too.
Re: How to reinstall a component I accidentally deleted
Posted: Sun Jun 02, 2024 1:47 am
by asqwerth
carturo222 wrote: Fri May 31, 2024 2:45 pm
It wasn't just one package. apt history gave me a dozen pages of text with hundreds of uninstalled components. I painstakingly reinstalled them one by one.
You have not posted your Quick System Info. Perhaps you should do so, since you mentioned in your first post that you tried not just removing some packages, but also installing some others.
While it could be that the uninstallation of so many packages could simply be due to you wrongly removing fundamental packages needed for Plasma, it can also happen when you enable the wrong repos (eg Debian Testing or Unstable) and install stuff from there.
Giving the helpers more information will help them give you better advice.