Hi Thomas, just delete the "stale file" /usr/info/dir.lock and go on with dpkg. I had this problem until I discovered the reason after heavy RTFM ;-)
Hope this helps, regards, Stoyan PS: May be install-info should check for stale locks and behave more verbouse when things go wrong, e.g. suggesting some manual work-around > > Folks, > > I blew it. I tried to install packages before the swap was working :-( > Some packages are fine, but others could not be installed without > the swap, the process stopped in the middle. > Now when I install on such packages: > > bash# dpkg --install binary/emacs* > (Reading database ... 17070 files and directories currently installed.) > Preparing to replace emacs (using binary/emacs-19.29-4.deb) ... > Unpacking replacement emacs ... > install-info: failed to lock dir for editing! File exists > install-info: failed to lock dir for editing! File exists > > this repeats 10 times, then appears: > > dpkg: warning - old post-removal script returned error exit status 2 > dpkg - trying script from the new package instead ... > install-info: failed to lock dir for editing! File exists > > this repeats10 times, then appears: > > dpkg: error processing binary/emacs-19.29-4.deb (--install): > subprocess new post-removal script returned error exit status 2 > install-info: failed to lock dir for editing! File exists > > this repeats10 times, then appears: > > dpkg: error while cleaning up: > subprocess post-removal script returned error exit status 2 > > If I try to remove emacs it complains > > bash# cd ; dpkg --purge emacs > dpkg: error processing emacs (--purge): > Package is in a very bad inconsistent state - you should > reinstall it before attempting a removal. > Errors were encountered while processing: > emacs > > > I am stuck! > > > Thomas Krichel mailto:[EMAIL PROTECTED] > http://www.surrey.ac.uk/Economics/tkrichel > -- Stoyan Kenderov / NTG Netzwerk und Telematic GmbH \/ phone: +49 721 9652 220 Geschaeftsbereich /\ LINK fax: +49 721 9652 210 Vincenz-Priessnitz-Str. 3 /_______ email: [EMAIL PROTECTED] D-76131 Karlsruhe, Germany http://www.xlink.net/~kenderov PGP Key fingerprint = 72 EC 34 1F BC 74 89 BA FF 74 29 85 40 6B 5C F9

