2

I installed multiple versions of openssl (because mysqlconnectorcame with them), but that broke cmake, so I tried re-installing openssl with sudo apt-get remove openssl. However, that apparently removed a lot of dependencies. Can I get these back without reinstalling my operating system? Do I have to re-install them one by one (there are nearly a hundred it looks like)?

Taylor
  • 147

3 Answers3

2

I do not see serious problems here.

You should login onto the first text terminal (accessible with Ctrl+Alt+F1) and then install software from here.

Carefully read the contents of APT log-files with more /var/log/apt/history.log and more /var/log/apt/term.log and then install removed packages manually with something like:

sudo apt update
sudo apt install removed-app-name

If your desktop was removed too, then use something like:

sudo apt update
sudo apt install ubuntu-desktop^ # if you had Ubuntu GNOME desktop
#sudo apt install ubuntu-unity-desktop # if you had Ubuntu Unity desktop
#sudo apt install kubuntu-desktop^ # if you had Kubuntu
#sudo apt install ubuntu-mate-desktop^ # if you had Ubuntu with MATE DE
N0rbert
  • 99,918
  • do I have to reinstall them one by one? what is the relationship between ubuntu-desktop and all of these packages? – Taylor Sep 23 '19 at 20:22
  • It depends on desktop environment. You need to install one package. If you had GNOME - then it would be ubuntu-desktop^, for KDE use kubuntu-desktop^ and so on. When you get desktop reinstalled then look into history.log and install other packages. – N0rbert Sep 23 '19 at 20:26
  • you're saying I don't need to install all of these packages. I don't understand that. I understand that there are different desktops. I just don't know why you're bringing this up, how this fixes my problem, or how it answers my original question. – Taylor Sep 23 '19 at 20:27
  • Then it depends on what do you mean by "removed a lot of dependencies." Was your desktop removed? I suppose that it is broken as you wrote "my file viewer isn't even working"... – N0rbert Sep 23 '19 at 20:28
2

I would suggest you to check history and get results of apt related operations you did using command line by history | grep -i apt command and check at which point or command you purged all libraries. You can do installation of same packages you purged.

Example:

If sudo apt purge openssl command removed your libraries then you can re-install it by sudo apt install openssl command.

By that way it will install all libraries and dependencies automatically which you purged.

KK Patel
  • 19,083
0

The "Diagnose, Understand, then Fix" method must be done in this order. Must!

"... broke cmake"?

You can find the names of the uninstalled packages in /var/log/apt.

waltinator
  • 36,399