Maybe try

sudo dpkg --remove --force-remove-reinstreq emacs20

From the "force" section of "man dpkg":

remove-reinstreq: Remove a package,  even  if  it's
              broken  and marked to require reinstallation.  This
              may, for example, cause parts  of  the  package  to
              remain  on the system, which will then be forgotten
              by dpkg.

On Monday, November 17, 2003, at 11:41 AM, Felix Ingrand wrote:


I nuked every file in /sw related to emacs 20...
still dselect believe it is in a bad state and choke on it... there must be
a database somewhere which specify this "state"... is it editable?


[Zag:~] felix% sudo dselect
Hit http://us.dl.sourceforge.net 10.3/release/main Packages
Hit http://us.dl.sourceforge.net 10.3/release/main Release
Reading Package Lists... Done
Building Dependency Tree... Done
Merging Available information
Replacing available packages info, using /sw/var/cache/apt/available.
Information about 1080 package(s) was updated.
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
emacs20
The following NEW packages will be installed:
digest-md5-pm digest-md5-pm560 gdbm libjpeg libtiff mhonarc storable-pm560
2 packages upgraded, 7 newly installed, 1 to remove and 0 not upgraded.
1 packages not fully installed or removed.
Need to get 0B/3457kB of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n]
dpkg: error processing emacs20 (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
emacs20
E: Sub-process /sw/bin/dpkg returned an error code (1)
Some errors occurred while unpacking. I'm going to configure the
packages that were installed. This may result in duplicate errors
or errors caused by missing dependencies. This is OK, only the errors
above this message are important. Please fix them and run [I]nstall again
Press enter to continue.



installation script returned error exit status 100. Press <enter> to continue.



11/17/03 8:00 AM, « Martin Costabel » <[EMAIL PROTECTED]>

Alexander K. Hansen wrote:

All right. I didn't want to have to go this route, but it may be necessary
to go for the big guns:


sudo dpkg --remove --force-all emacs21

(emacs20 for Felix)

sudo dpkg --remove --force-all emacsen-common

I think you need even bigger guns, namely to edit directly some stuff in
the dpkg database. I cannot say exactly what it takes (probably best to
nuke all of the emacs files in /sw/var/lib/dpkg/), but I remember having
been in this same situation a long time ago. It was such a traumatic
experience that I decided to never touch Fink's emacs packages again.
Xemacs is a different story, I use it all the time.
[]
dpkg: error processing emacsen-common (--remove):
  Package is in a very bad inconsistent state - you should
  reinstall it before attempting a removal.
[]
emacs-package-remove: Couldn't open
/sw/var/lib/emacsen-common/installed-flavors at
/sw/lib/emacsen-common/emacs-package-remove line 36.
dpkg: warning - old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
emacs-package-remove: Couldn't open
/sw/var/lib/emacsen-common/installed-flavors at
/sw/lib/emacsen-common/emacs-package-remove line 36.
dpkg: error processing
/sw/var/cache/apt/archives/emacsen-common_1.4.13-2_darwin-powerpc.deb
(--unpack):
  subprocess new pre-removal script returned error exit status 2
emacs-package-install: Couldn't open
/sw/var/lib/emacsen-common/installed-flavors at
/sw/lib/emacsen-common/emacs-package-install line 36.
dpkg: error while cleaning up:
  subprocess post-installation script returned error exit status 2

-- Felix





-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/ g22lp.tmpl
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users



------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to