unicorn can't run fsck on /, as file system is mounted read-write on /
Boot into single-user mode, use /rescue/sh as the shell, then run:
fsck -f /
This is standard stuff, mate. Every Unix user should know this.
unicorn the title is the error message. /usr/pkg/pkgdb have all the packages.
You're not explaining this very well, and we can't see what's happening on your system.
Can you upload these 2 files somewhere?
/var/db/pkgin/sql.log
/var/db/pkgin/pkg_install-err.log
(The first one, sql.log, may not exist.)
What're the outputs of these commands:
ls -l /usr/pkg/pkgdb/*.db /var/db/pkgin/
cat /usr/pkg/etc/pkgin/repositories.conf
pkgin list > /tmp/pkgin.log
pkg_info > /tmp/pkg_info.log
Upload the 2 /tmp/*.log files also.