LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-07-2004, 07:28 AM   #1
mvp
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 52

Rep: Reputation: 15
problem with apt-get


hello.

everytime i run apt-get and it starts to install some program, i get an error like this:

Unpacking replacement libattr1 ...
Errors were encountered while processing:
/var/cache/apt/archives/courier-authdaemon_0.42.2-11_i386.deb

any idea how i can fix this, its very annoying, since i cant get any think installed :/
 
Old 02-07-2004, 11:48 AM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
You can try:

dpkg --force overwrite -i /var/cache/apt/archives/courier-authdaemon_0.42.2-11_i386.deb
apt-get -f install
 
Old 02-07-2004, 01:00 PM   #3
mvp
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 52

Original Poster
Rep: Reputation: 15
thanks, none of them seem to work though. i just get the same error message
 
Old 02-08-2004, 08:05 AM   #4
mvp
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 52

Original Poster
Rep: Reputation: 15
hm i tried to remove it with apt-get --remove, but that didn't work either, i also tried to reinstall it as apt-get suggested but didn't help either.

anyone any suggestions?
 
Old 02-08-2004, 10:34 AM   #5
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
You could try:

dpkg -P /var/cache/apt/archives/courier-authdaemon_0.42.2-11_i386.deb
apt-get clean
apt-get update
apt-get install courier-authdaemon

It is odd that the package could not be removed. I don't know if I have ever had a similar problem.
 
Old 02-08-2004, 10:38 AM   #6
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
Sorry, the first line above should be the package name:

dpkg -P courier-authdaemon
 
Old 02-09-2004, 02:45 AM   #7
mvp
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 52

Original Poster
Rep: Reputation: 15
thanks again, got an error message this time as well though.

Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.

and those two options o have tried with apt-get
 
Old 02-09-2004, 04:05 AM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Try apt-get -f install --reinstall courier-authdaemon and it would be nice to see the entire output if it fails.
 
Old 02-09-2004, 12:16 PM   #9
mvp
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 52

Original Poster
Rep: Reputation: 15
unfortunetly it didn't. the output is prett large, so i'm sorry if i am spammiong a bit here.

debian:~# apt-get -f install --reinstall courier-authdaemon
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded:
courier-authdaemon
1 upgraded, 0 newly installed, 0 to remove and 87 not upgraded.
202 not fully installed or removed.
Need to get 0B/48.2kB of archives.
After unpacking 0B of additional disk space will be used.
Selecting previously deselected package courier-authdaemon.
(Reading database ... 96140 files and directories currently installed.)
Preparing to replace courier-authdaemon 0.42.2-10 (using .../courier-authdaemon_
0.42.2-11_i386.deb) ...
Stopping Courier authdaemon: /usr/lib/courier/authlib/authdaemond: line 22: /etc
/courier/authdaemonrc: No such file or directory
invoke-rc.d: initscript courier-authdaemon, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Stopping Courier authdaemon: /usr/lib/courier/authlib/authdaemond: line 22: /etc
/courier/authdaemonrc: No such file or directory
invoke-rc.d: initscript courier-authdaemon, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/courier-authdaemon_0.42.2-11_i386
.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Starting Courier authdaemon: /usr/lib/courier/authlib/authdaemond: line 22: /etc
/courier/authdaemonrc: No such file or directory
invoke-rc.d: initscript courier-authdaemon, action "start" failed.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/courier-authdaemon_0.42.2-11_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 02-09-2004, 12:49 PM   #10
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
It looks like it is a bug although that report is pretty old can I see the contents of the /etc/init.d/courier-authdaemon file so I can compare it to the suggested patch.
 
Old 02-10-2004, 03:54 AM   #11
mvp
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 52

Original Poster
Rep: Reputation: 15
Here you go:



#! /bin/sh -e

prefix="/usr"
exec_prefix=${prefix}
sysconfdir="/etc/courier"
sbindir="${exec_prefix}/sbin"
libexecdir="${prefix}/lib/courier"

case "$1" in
start)
# Start daemons.
cd /
if test -x ${libexecdir}/authlib/authdaemond
then
echo -n "Starting Courier authdaemon: "
${libexecdir}/authlib/authdaemond start
echo "done."
fi
;;
stop)
# Stop daemons.
cd /
if test -x ${libexecdir}/authlib/authdaemond
then
echo -n "Stopping Courier authdaemon: "
${libexecdir}/authlib/authdaemond stop
echo "done."
fi
;;
restart | reload | force-reload)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
exit 1
;;
esac
exit 0
 
Old 02-10-2004, 07:36 AM   #12
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
All right it looks like you have to edit the file as root and remove the -e from the end of the #/bin/sh -e and try to reinstall.
 
Old 02-10-2004, 03:15 PM   #13
mvp
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 52

Original Poster
Rep: Reputation: 15
yay! thanks a lot man, that worked. Now my system is up to date again
 
  


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
problem with apt efi360 Debian 18 12-24-2005 06:12 PM
Apt-get problem davholla Debian 3 07-01-2005 03:23 PM
problem with apt get waelali Linux - Software 1 03-12-2005 05:55 AM
rh9 xd2 apt apt-get problem fix and solution transeunt Red Hat 0 12-16-2003 10:54 PM
apt-get problem mmm Linux - General 1 11-11-2003 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:14 PM.

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