pkg: An error occured while fetching package: No error (was: Corrupted pkg db. Recoverable?)

From: Graham Perrin <grahamperrin_at_gmail.com>
Date: Wed, 26 Mar 2025 06:11:30 UTC
On 15/03/2025 01:45, Jonathan Adams wrote:

> … 14.2-RELEASE-p2 with packages pulled from latest


If you still have an issue, please share repository info.

pkg repos -el | sort -f

pkg repos -e


> in Qemu running within Termux on an Android device. …
>
> I recently ran `pkg upgrade`, then selected 'n' to cancel. (Too many packages.) Moments later, I decided to upgrade Vim only, and got this:
>
> # pkg install vim
> Updating FreeBSD repository catalogue...
> pkg: An error occured while fetching package: No error
> pkg: An error occured while fetching package: No error
> repository FreeBSD has no meta file, using default settings
> pkg: An error occured while fetching package: No error
> pkg: An error occured while fetching package: No error
> pkg: An error occured while fetching package: No error
> pkg: An error occured while fetching package: No error
> Unable to update repository FreeBSD
> Error updating repositories!

Those errors are not indicative of database corruption.

> … I can do `pkg delete <pkg>` and `pkg autoremove` just fine. …