• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Debian - Corrupt Installation - Solution

bayview

Banned User
Joined
Jan 25, 2018
Messages
611
Solutions
25
Reaction score
324
If you use linux and for some reason you interrupt either purposefully or accidentally an installation of libraries (as I did when the power went out) there is a solution.

Here is the example:
C++:
Errors were encountered while processing:
g++-5
g++
build-essential
E: Sub-process /usr/bin/dpkg returned an error code (1)

The way to resolve this is pretty simple all you do is run this command.
C++:
sudo dpkg --remove g++-5 g++ build-essential

If for any reason you can not remove the installation of the libraries then you can run this command.
C++:
sudo dpkg --reinstall g++-5 g++ build-essential

If no reinstall was necessary you can just run this command.
C++:
sudo apt install g++-5 g++ build-essential

And finally always run this command after installation to make sure the system is working as expected.
C++:
sudo apt-get update
 
Of course, best practice is to have backups of your machine so you can simply roll back if something happens - for example "the power went out and now half of my packages are broken" : )) You managed to fix these, but who knows what else is kaputt.
 
Back
Top