That's odd. As far as I can tell Martin Costabel's instructions should  
have made dpkg forget about sbcl altogether.

Could you possibly post your /sw/var/lib/dpkg/status file to some Web  
or FTP server so that we are able to get it? If that's not possible,  
send it to my e-mail address (do not send it to the fink-devel mailing  
list) after having compressed it to .zip or .gz.

On 31/12/2009, at 08:02, Dr. Wolfram Schroers wrote:

> Martin,
>
> I have followed the instructions and removed the entries from /sw/ 
> var/lib/dpkg/status. There were no files with sbcl in their names in  
> the /sw/var/lib/dpkg/info subdirectory. Finally, I ran "fink  
> scanpackages" and "sudo apt-get update".
>
> When trying to install sbcl again, I got an error message again. So  
> I deleted all sbcl-files in the src-directory, all deb-files  
> anywhere and tried to "fink install sbcl" again. It downloaded the  
> sources successfully, built the package successfully and issued the  
> following error message during the install:
>
> (Reading database ...
> dpkg: serious warning: files list file for package `sbcl' missing,  
> assuming package has no files currently installed.
> 177971 files and directories currently installed.)
> Removing fink-buildlock-sbcl-1.0.33-1 ...
> Reading buildlock packages...
> /sw/bin/dpkg-lockwait -i /sw/fink/dists/unstable/main/binary-darwin- 
> i386/languages/sbcl_1.0.33-1_darwin-i386.deb
> (Reading database ...
> dpkg: serious warning: files list file for package `sbcl' missing,  
> assuming package has no files currently installed.
> 177970 files and directories currently installed.)
> Preparing to replace sbcl 1.0.33-1 (using .../sbcl_1.0.33-1_darwin- 
> i386.deb) ...
> Unpacking replacement sbcl ...
> ### execution of /sw/bin/dpkg-lockwait failed, exit code 6
> /sw/bin/dpkg-deb: subprocess paste killed by signal (Broken pipe)
> Updating the list of locally available binary packages.
> Scanning dists/unstable/main/binary-darwin-i386
> Changed package: dists/unstable/main/binary-darwin-i386/languages/ 
> sbcl_1.0.33-1_darwin-i386.deb
> Failed: can't install package sbcl-1.0.33-1
>
>
> Any suggestions for the root of this issue?
>
> W.
>
>
>> Dr. Wolfram Schroers wrote:
>> []
>>> Error message from "sudo apt-get remove sbcl":
>> []
>>> /sw/bin/dpkg: error processing sbcl (--remove):
>>> Package is in a very bad inconsistent state - you should
>>> reinstall it before attempting a removal.
>>
>> In such a situation, I found that the only solution is to manually  
>> erase the package from dpkg's memory:
>>
>> 1. Go to the directory /sw/var/lib/dpkg
>>
>> 2. Then copy the file "status" to "status.bak" to have a backup  
>> copy if anything goes wrong. There is already a backup copy called  
>> "status-old" which may be a little older.
>>
>> 3. Then edit "status" using a text editor that does not destroy  
>> text files (vi or pico etc., not emacs or TextEdit). The file  
>> contains little paragraphs for each package. Go to the paragraph  
>> starting with the line
>>
>> Package: sbcl
>>
>> and erase it (the whole paragraph, around 23 lines).
>>
>> Repeat this for any other paragraph that has a "Package:" line with  
>> "sbcl" in it. Do not touch paragraphs that have "sbcl" in some  
>> other line. Save the edited file "status".
>>
>> 4. Finally go to the "info" subdirectory and remove any files with  
>> "sbcl" in their names, like "sbcl.list", "sbcl.postinst",  
>> "sbcl.prerm".
>>
>> This should do it. Run "fink scanpackages" and "sudo apt-get  
>> update", and then resume whatever you wanted to do.
>>
>> -- 
>> Martin


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to