Same here, and besides thatJust did a fresh install of FreeBSD 13.2 amd64.
Oddly, I regularly get the message "pkg: Package database is busy while closing!" after installing stuff.
Any idea what I could have done wrong?
# pkg autoremove
stoped working. It 's hangs there waiting for something.Exactly the same as your case, but using pkg-static built from ports solved my problemSame here, and besides that# pkg autoremove
stoped working. It 's hangs there waiting for something.
Am I correct in the following two statements?Same here, and besides that# pkg autoremove
stoped working. It 's hangs there waiting for something.
Exactly the same as your case, but using pkg-static built from ports solved my problem
pkg-static
and that worked as expected. pkg
and especially pkg autoremove
seem to work as expected?That's exactly what I was trying to say, after thatAm I correct in the following two statements?
- You've built ports-mgmt/pkg/ ( = pkg(8) ) from the head of the ports branche.
- After the previous step you've used
pkg-static
and that worked as expected.
After that build does usingpkg
and especiallypkg autoremove
seem to work as expected?
pkg autoremove
just work.2023-09-01 13:38:18 +0000
2023-09-02 17:51:53 +0000
2023-09-04 07:14:13 +0000
bumps the version number. These changes have to work their way through the package build servers; specifically with regard to ports-mgmt/pkg/Here the issue disappeared after I had to reboot the system. No idea why.Same here, and besides that# pkg autoremove
stoped working. It 's hangs there waiting for something.
My work around was delete the packages I want out of the "explicit installed" list, and the dependencies I removed issuing:Here the issue disappeared after I had to reboot the system. No idea why.
$ pkg query -e '%a = 0' %o | sort > pkg_list.txt
# pkg delete -a
# cat pkg_list.txt | xargs pkg install -y
....
[87/89] Extracting linux-rl9-curl-7.76.1_5: 100%
[88/89] Installing linux-rl9-alsa-plugins-pulseaudio-1.2.7.1...
[88/89] Extracting linux-rl9-alsa-plugins-pulseaudio-1.2.7.1: 100%
[89/89] Installing linux-chrome-121.0.6167.160_1...
[89/89] Extracting linux-chrome-121.0.6167.160_1: 100%
==> Running trigger: desktop-file-utils.ucl
Building cache database of MIME types
==> Running trigger: gtk-update-icon-cache.ucl
Generating GTK icon cache for /usr/local/share/icons/hicolor
pkg: Package database is busy while closing!
beastie@BattleStar-Lat54 --> ~
Ψ
… I regularly get the message "pkg: Package database is busy while closing!"
after installing stuff. …
I had the message a few times, maybe ten, since my comment last week.
… database error, … move everything to Debian.
make
portion completes OK, then I get the same error as others in this thread. So I have to run make install
separately. Sometimes that does the trick, sometimes not. When make install
fails on me several times, I reboot. Then make install
succeeds. make deinstall
or pkg remove
are part of the issue - but to know for sure, one would need to look at source code, the repo, and related bug ticket situation. I could be incorrect, this is just an educated guess on my end.… failure to install a package shouldn't be sufficient to brick a system …
… corrupted package installations (pkg check -s reported missing files and bad checksums), …
I get the message fairly frequently.
I rarely paid attention (never noticed any adverse effect), I'll pay closer attention when it next appears.
-d
debug output available on request, I can add it here, or there in GitHub, or (if you prefer) in a new issue. Thanks.