LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How to remove/uninstall partial apt-get install (https://www.linuxquestions.org/questions/ubuntu-63/how-to-remove-uninstall-partial-apt-get-install-4175555978/)

mfoley 10-12-2015 10:14 PM

How to remove/uninstall partial apt-get install
 
I messed up. I ran `apt-get install krb5-kdc krb5-admin-server`, but partway through I CTRL-C'd out because I thought I did the wrong package. After reconsidering, I tried to re-run the apt-get command. It appears to have ended badly:

Code:

Setting up krb5-kdc (1.12+dfsg-2ubuntu5.1) ...
 * Starting Kerberos KDC krb5kdc
krb5kdc: cannot initialize realm HPRS - see log file for details          [fail]

Processing triggers for ureadahead (0.100.0-16) ...
Setting up krb5-admin-server (1.12+dfsg-2ubuntu5.1) ...
 * Starting Kerberos administrative servers kadmind
kadmind: No such file or directory while initializing, aborting          [fail]

Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Processing triggers for ureadahead (0.100.0-16) ...

How to I fix this?

ondoho 10-13-2015 01:29 AM

Code:

man apt-get
there's a few options.
first thing i'd try is to fix broken packages, purge the undesired packages, do an "apt-get autoremove"
tell us how you fared with those (including output). or maybe it'll fix the problem.

qlue 10-13-2015 01:32 AM

Not enough information to be sure but my suggestion is to try this;
Code:

sudo apt-get purge krb5-kdc krb5-admin-server
Then try re-installing.

If you get errors while trying to purge those packages, then run;
Code:

sudo apt-get install --fix-missing
Note that I'm not familiar with the package you're trying to install so there might be something sneaky going on there. For example, you may simply need to manually configure the server.
It looks like the package installed okay but needs to be configured properly.

sgosnell 10-13-2015 09:37 AM

You can try
Code:

sudo dpkg --configure -a
. That can help when an installation is aborted.

mfoley 10-19-2015 01:02 PM

Thanks all for the info. I'll keep this for the future. I've had occasion to install other stuff than needs these supposedly aborted packages, and everything seem to work OK, so I'll not mess at the moment.

ondoho 10-20-2015 01:16 AM

you should probably still run the command suggested in post #4, as root.
it should find & fix anything that went wrong, without uninstalling anything.
it basically means "check for inconsistencies rebuild the whole package management on my computer"


All times are GMT -5. The time now is 01:56 PM.