LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 08-13-2007, 05:28 AM   #1
kramed
Member
 
Registered: Feb 2007
Location: Peterborough, Ontario, Canada
Distribution: Fedora 8
Posts: 36

Rep: Reputation: 15
.deb install script fails - How to I completely reset the package and related files?


Hi there. I am trying to install OpenLdap server and utilities on my Debian SID machine but unfortunately I am experiencing a problem:

Errors were encountered while processing:
slapd
E: Sub-process /usr/bin/dpkg returned an error code (1)


I recently had a source installation of slapd on the system but removed it manually in preparation to use the Debian maintained version. It is likely possible that I removed another LDAP utility program that I had installed when I did the manual removal. I tried to remedy this by selecting all my ldap related packages in Synaptic and opted to reinstall all of them but unfortunately my problem remains. Can someone point me in the right direction, I am new to apt and the deb package system. Thanks!
 
Old 08-13-2007, 08:56 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Try running apt-get -f install, and see if that clears anything up.
That command is used for when a package is installed using dpkg, but dependencies aren't met; it just sort of "dequeues" it from this state of .deb limbo, and installs all of the needed dependencies.
 
Old 08-13-2007, 10:24 AM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 59
I would drop back a little bit and reconsider the package manager you are using. It may or may not be related to your immediate problem, but Synaptic merely adds a level of complexity to package management that, as a Slackware user, you do not need.

I have never liked the apt-get -f option either. It often works to clear up such problems, but, IMO, it is clearing a symptom of deeper problems, rather than solving them. Back in the day when I used apt-get, I would have first attacked such an error by using, "# dpkg --purge slapd", then attempting a reinstall.

Beginning with Etch, the Debian recommended package manager is "aptitude", and again, I recommend it's usage as a command line instruction, rather than the ncurses interface generated by # aptitude without any parameters. The reason it has become the recommended package manager is that it supposedly handles dependencies in a fashion superior to apt-get. The apt-get program in Sid attempts to mirror aptitude's dependency handling, but I have heard that it is still rather buggy.

A warning: Aptitude still does not always play nicely with packages that were originally installed with apt-get, dpkg, or manual compilation. A good precaution is to first execute, "# aptitude keep-all"

Finally, don't forget that you are using Sid, and dependency issues do occasionally arise there.

Last edited by rickh; 08-13-2007 at 10:25 AM.
 
Old 08-13-2007, 10:34 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 62
Quote:
Originally Posted by kramed View Post
Hi there. I am trying to install OpenLdap server and utilities on my Debian SID machine but unfortunately I am experiencing a problem:

Errors were encountered while processing:
slapd
E: Sub-process /usr/bin/dpkg returned an error code (1)


I recently had a source installation of slapd on the system but removed it manually in preparation to use the Debian maintained version. It is likely possible that I removed another LDAP utility program that I had installed when I did the manual removal. I tried to remedy this by selecting all my ldap related packages in Synaptic and opted to reinstall all of them but unfortunately my problem remains. Can someone point me in the right direction, I am new to apt and the deb package system. Thanks!
A lot of times that error means you have run into a packaging error where one file is in two packages so you get an overwriting error, if you see this a little farther up in your error output then use dpkg -i --force-overwrite /path/to/package.deb (this path is show at bottom of error) to make it install then use dpkg --configure -a to get the unconfigured packages that may have happened when the error occurred.
 
  


Reply

Tags
apt-get, aptitude


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to build deb package from source files? davidas Debian 9 12-09-2006 06:27 PM
Command for where the individual files are for a deb package farpoint Debian 2 06-09-2006 06:29 AM
How to install deb package tstrickland Linux - Newbie 10 07-21-2005 06:39 PM
First Linux Install - Deb Sarge/Sid Q's Kernal and related ChivalricRonin Debian 11 04-07-2004 04:20 PM
Howto on making .deb package files preben Debian 1 08-21-2003 07:53 AM


All times are GMT -5. The time now is 07:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration