LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-12-2015, 10:14 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,580

Rep: Reputation: 179Reputation: 179
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?

Last edited by mfoley; 10-12-2015 at 10:17 PM.
 
Old 10-13-2015, 01:29 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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.
 
Old 10-13-2015, 01:32 AM   #3
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
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.
 
Old 10-13-2015, 09:37 AM   #4
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
You can try
Code:
sudo dpkg --configure -a
. That can help when an installation is aborted.
 
Old 10-19-2015, 01:02 PM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,580

Original Poster
Rep: Reputation: 179Reputation: 179
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.
 
Old 10-20-2015, 01:16 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up partial apt/yum repositories sushant jain Linux - Server 1 05-19-2010 02:33 PM
LXer: Apt-get remove SUSE; apt-get install Etch LXer Syndicated Linux News 0 05-26-2007 07:46 PM
Safe to uninstall with apt-get install? riwaJR Debian 4 04-03-2006 12:51 PM
apt-get install/remove error tsitras Debian 4 02-26-2006 02:49 AM
Partial upgrade with APT pinning (debian)? MaulingMonkey Linux - Software 1 01-21-2005 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration