FreeBSD package size mismatch, cannot continue
I was recently working on FreeBSD 12 and needed to install bash.To my suprise, i got the error below:
root@host1:~ # pkg install bash
Updating FreeBSD repository catalogue…
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):New packages to be INSTALLED:
bash: 5.0.3Number of packages to be installed: 1
The process will require 9 MiB more space.
2 MiB to be downloaded.Proceed with this action? [y/N]: y
[1/1] Fetching bash-5.0.3.txz: 100% 2 MiB 225.4kB/s 00:07
pkg: cached package bash-5.0.3: size mismatch, fetching from remote
Fetching bash-5.0.3.txz: 100% 2 MiB 225.4kB/s 00:07
pkg: cached package bash-5.0.3: size mismatch, cannot continue
To fix the above issue and similar issues, please run the following command:
pkg update -f