I have a chicken&egg problem...
I tried to update Python according to the instructions in /usr/ports/UPDATING, using portmaster(8).
To begin, portmaster(8) uninstalled ports-mgmt/pkg.
Then the installation of the new version of ports-mgmt/pkg failed, because it conflicts with security/base-audit. (If /usr/ports/UPDATING had mentioned this conflict I would have uninstalled security/base-audit first, but unfortunately it didn't.)
So I'm now left with a system that does not have ports-mgmt/pkg installed, and that cannot install ports-mgmt/pkg, because of a conflict with base-audit.
I cannot uninstall base-audit, because I don't have pkg(8).
The backup of the old ports-mgmt/pkg that portmaster(8) made in the /usr/ports/packages/portmaster-backup/ directory is a package that must be installed using pkg(8), so I cannot reinstall the backup either.
The security/base-audit directory was deleted from the ports tree because of the merge with net-mgmt/pkg, but I copied this directory from another system in the hopes that I could run
So, how do I go about?
All I can think of now is to generate a list of files from /var/db/pkg/local.sqlite, and then manually delete base-audit's files (and the entries in local.sqlite), but I really hope that there's a better way...
Thanks in advance.
I tried to update Python according to the instructions in /usr/ports/UPDATING, using portmaster(8).
To begin, portmaster(8) uninstalled ports-mgmt/pkg.
Then the installation of the new version of ports-mgmt/pkg failed, because it conflicts with security/base-audit. (If /usr/ports/UPDATING had mentioned this conflict I would have uninstalled security/base-audit first, but unfortunately it didn't.)
So I'm now left with a system that does not have ports-mgmt/pkg installed, and that cannot install ports-mgmt/pkg, because of a conflict with base-audit.
I cannot uninstall base-audit, because I don't have pkg(8).
The backup of the old ports-mgmt/pkg that portmaster(8) made in the /usr/ports/packages/portmaster-backup/ directory is a package that must be installed using pkg(8), so I cannot reinstall the backup either.
The security/base-audit directory was deleted from the ports tree because of the merge with net-mgmt/pkg, but I copied this directory from another system in the hopes that I could run
make deinstall
. But unfortunately that also depends on pkg(8).So, how do I go about?
All I can think of now is to generate a list of files from /var/db/pkg/local.sqlite, and then manually delete base-audit's files (and the entries in local.sqlite), but I really hope that there's a better way...
Thanks in advance.
Last edited by a moderator: