[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg error?

Hi ... 

On Sat, Feb 02, 2002 at 12:14:58PM -0900, Greg C. Madden wrote:
>I removed gpm with: 'update-rc.d -f gpm remove' then 'dpkg -P gpm'
>Apparently this did not remove a reference to gpm somewhere in the dpkg
>system. Dselect will not install new packages as it fails with the
>following messages:

why did you not purge gpm with dpkg -P gpm only?
It will work as well. If you will do so, without update-rc.d -f gpm
remove, you wont get this :

>(Reading database ... 69797 files and directories currently installed.)
>Removing gpm ...
>/var/lib/dpkg/info/gpm.prerm: /etc/init.d/gpm: No such file or directory
>/usr/sbin/gpm: invalid option -- x
>gpm 1.19.6, Thu Oct  4 00:21:21 CEST 2001
>Error in the commandline specification. Try "/usr/sbin/gpm -h".
>/var/lib/dpkg/info/gpm.prerm:  : command not found
>dpkg: error processing gpm (--purge):
> subprocess pre-removal script returned error exit status 1
>update-rc.d: /etc/init.d/gpm: file does not exist
>dpkg: error while cleaning up:
> subprocess post-installation script returned error exit status 1
>Errors were encountered while processing: gpm

Because of the running update-rc.d -f gpm remove before purging gpm,
there is no /etc/init.d/gpm, so the dpkg is not able to purge gpm at
all. Look intp /var/lib/dpkg/info/gpm.prerm, there will be a test like 

  if /etc/init.d/gpm stop; then return 0; fi

comment or delete this line, and  then, dpkg -P will work.



One time, you all will be emulated by linux!

Jan- Hendrik Palic
E-Mail: "palic@billgotchy.de"

Version: 3.12
GCS d- s: a-- C++ UL++ P+++ L+++ E W++ N+ o+ K- w--- 
O- M- V- PS++ PE Y+ PGP++ t--- 5- X+++ R-- tv- b++ DI-- D+++ 
G+++ e+++ h+ r++ z+ 

Attachment: pgpnFBFnQq6Zr.pgp
Description: PGP signature

Reply to: