server# locate pkgdb
server# cd /usr/port/database
/usr/port/database: No such file or directory.
server# ls
Makefile distinfo files pkg-descr pkg-plist
server# cd /usr/ports/databse
/usr/ports/databse: No such file or directory.
server# locate pkgdb
server# /usr/libexec/locate.updatedb
>>> WARNING
>>> Executing updatedb as root. This WILL reveal all filenames
>>> on your machine to all login users, which is a security risk.
y
^Crmdir: /tmp/locatecwqoXJfeWS/mklocateeEGOBsKEN5: No such file or directory
rmdir: /tmp/locatecwqoXJfeWS: No such file or directory
server#
server# whereis pkgdb
pkgdb: /usr/local/sbin/pkgdb /usr/local/man/man1/pkgdb.1.gz
server# /usr/local/sbin/pkgdb -F
---> Checking the package registry database
Stale origin: 'mail/da_exim': perhaps moved or obsoleted.
[missing key: categories] [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 17746 port entries found .........1000.........2000.........3000......... 4000.........5000.........6000.........7000.........8000.........9000.........10 000.........11000.........12000.........13000.........14000.........15000....... ..16000.........17000....... ..... done]
missing key: categories: Cannot read the portsdb!
database file error
Skip this for now? [yes] ^C^Z
Suspended
server# pkgdb -aF
pkgdb: Command not found.
server# /usr/local/sbin/pkgdb -aF
---> Checking the package registry database
Stale origin: 'mail/da_exim': perhaps moved or obsoleted.
[missing key: categories] [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 17746 port entries found .........1000.........2000.........3000......... 4000.........5000.........6000.........7000.........8000.........9000.........10 000.........11000.........12000.........13000.........14000.........15000....... ..16000.........17000....... ..... done]
missing key: categories: Cannot read the portsdb!
database file error
Stale origin: 'ftp/da_proftpd': perhaps moved or obsoleted.
Stale origin: 'mail/da_vm-pop3d': perhaps moved or obsoleted.
portupgrade: /usr/local/sbin/portupgrade /usr/local/man/man1/portupgrade.1.gz /usr/ports/sysutils/portupgrade
server# /usr/local/sbin/portupgrade -a
[missing key: categories] [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 17746 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000....... ..... done]
missing key: categories: Cannot read the portsdb!
/usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:567:in `open_db': database file error (PortsDB::DBError)
from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:736:in `port'
from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:924:in `all_depends_list'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:915:in `tsort_build'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `each'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `tsort_build'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:929:in `sort_build'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:933:in `sort_build!'
from /usr/local/sbin/portupgrade:694:in `main'
from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize'
from /usr/local/sbin/portupgrade:210:in `new'
from /usr/local/sbin/portupgrade:210:in `main'
from /usr/local/sbin/portupgrade:1981
server#