You need to edit the /usr/lib/ipkg/status file (I think that's the correct path) and remove the offending entry (prob at the bottom).
If you'd tried installing it to a location other than root, the above file may be in a different location:
<mount point>/usr/lib/ipkg/status
e.g. /mnt/card/usr/lib/ipkg/status
Si