How to reinstall a component I accidentally deleted  [Solved]

Message
Author
carturo222
Posts: 12
Joined: Thu May 30, 2024 11:51 am

How to reinstall a component I accidentally deleted

#1 Post 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?

User avatar
CharlesV
Global Moderator
Posts: 7069
Joined: Sun Jul 07, 2019 5:11 pm

Re: How to reinstall a component I accidentally deleted

#2 Post 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.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
Eadwine Rose
Administrator
Posts: 14440
Joined: Wed Jul 12, 2006 2:10 am

Re: How to reinstall a component I accidentally deleted

#3 Post by Eadwine Rose »

Personally.. I'd reinstall, keeping home to keep your files.
MX-23.6_x64 July 31 2023 * 6.1.0-34amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.216.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Charlie Brown

Re: How to reinstall a component I accidentally deleted

#4 Post by Charlie Brown »

Boot with the live usb, open "Chroot Rescue Scan" from menu, proceed , when you see the prompt:

chroot>

issue:

Code: Select all

apt-history
Then looking at the output install what's missing or install all that were removed that day etc...

Code: Select all

apt install xxx yyy zzz
Yes, no need to sudo.

User avatar
Stevo
Developer
Posts: 14425
Joined: Fri Dec 15, 2006 7:07 pm

Re: How to reinstall a component I accidentally deleted

#5 Post 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).
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

User avatar
fehlix
Developer
Posts: 12599
Joined: Wed Apr 11, 2018 5:09 pm

Re: How to reinstall a component I accidentally deleted

#6 Post 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:

Code: Select all

apt-history
May be older installs, but recent MX KDE install don't have apt-history installed, ootb.

carturo222
Posts: 12
Joined: Thu May 30, 2024 11:51 am

Re: How to reinstall a component I accidentally deleted

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

User avatar
kmathern
Developer
Posts: 2503
Joined: Wed Jul 12, 2006 2:26 pm

Re: How to reinstall a component I accidentally deleted

#8 Post 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:

Code: Select all

apt-history
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

User avatar
Stevo
Developer
Posts: 14425
Joined: Fri Dec 15, 2006 7:07 pm

Re: How to reinstall a component I accidentally deleted  [Solved]

#9 Post 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.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

carturo222
Posts: 12
Joined: Thu May 30, 2024 11:51 am

Re: How to reinstall a component I accidentally deleted

#10 Post by carturo222 »

boot to a terminal screen and have a Net connection there
How do I do that?

Post Reply

Return to “Software / Configuration”