If you see an error message that says "pkg_version: corrupted record (pkgdep line without argument), ignoring
" when using the pkg
utility on FreeBSD, it means that the package database on your system is corrupt or damaged.
The pkg
utility uses a database of installed packages to manage and maintain the packages on your system. The error message you are seeing indicates that the database contains a record with a corrupt or incomplete dependency line, which is causing the pkg
utility to ignore the record.
To fix this issue, you can try running the pkgdb -F
command to rebuild the package database. This command will scan the system for installed packages and rebuild the database with any missing or corrupted records.
Here is an example of how to use the pkgdb -F
command:
# pkgdb -F
This will scan the system for installed packages and rebuild the package database.
If the issue persists after running the pkgdb -F
command, you may need to manually repair or rebuild the package database. Consult the FreeBSD documentation and online resources for more information on how to do this.
It's important to note that the package database is a critical part of the package management system on FreeBSD. Modifying or rebuilding the database incorrectly can cause serious issues with your system. It is recommended to make a backup of the database before making any changes.