-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'pkg which' attempts to write in the SQLite database #1771
Comments
pkg always try first to self upgrade its database. otherwise it might end up with a schema which is not valid and have commands failing with weird issue. if pkg which telles you it was to write, it is because the db schema has changed somehow. Meaning you need to run as root any pkg command. yes it could probably be nicer about it and tell you 'hey your db is outdated upgrad it first' or something like that |
Yes, then the error message should say something like "The DB upgrade is needed but pkg doesn't have the write access to the file {file}, please run it as root once to upgrade the DB." |
Adding to that, I just got the same message when running "pkg info" on a /var/db/pkg directory on a snapshot directory. Please add an '-f' or something when we are performing purely read operations. As it was, I had to copy the files to a temporary directory, and use that - just to read the dependency list of a package I'd just deleted! |
I got this error while running as a non-root user:
IMO,
pkg which
should be a read-only operation, it shouldn't attempt to write.pkg-1.11.1 on FreeBSD 12 amd64
The text was updated successfully, but these errors were encountered: