解決 FreeBSD pkg 指令無法搜尋到套件的問題

在 FreeBSD 系統使用 pkg 搜尋要安裝的套件時,出現
# pkg search bash
pkg: No packages available to install matching bash available in the repositories

# pkg search bash
完全無任何訊息

也已經把套件庫更新到最新
# pkg update
Updating FreeBSD repository catalogue…
FreeBSD repository is up-to-date.
All repositories are up-to-date.[@more@]解決方式 刪除 /var/db/pkg/repo-*
# rm -rf /var/db/pkg/repo-FreeBSD.sqlite

重新套件套件庫
# pkg update
Updating FreeBSD repository catalogue…
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
Fetching packagesite.txz: 100%    5 MiB   5.6MB/s    00:01
Processing entries: 100%
FreeBSD repository update completed. 25089 packages processed.

這時候就正常了!
# pkg search bash
bash-4.3.42_1                  The GNU Project’s Bourne Again SHell
bash-completion-2.1_6,1        Programmable completion library for Bash
bash-static-4.3.42_1           The GNU Project’s Bourne Again SHell
bashc-3.2.33.0_1               GNU bash shell extended with visual two-panel file browser
checkbashisms-2.15.10          Check for the presence of bashisms
erlang-mochiweb-basho-2.9.0p2  Erlang library for building lightweight HTTP servers (Basho fork)
mybashburn-1.0.2_4             Ncurses CD burning bash script
p5-Bash-Completion-0.008_1     Extensible system to provide bash completion
p5-Term-Bash-Completion-Generator-0.02.8 Generate bash completion scripts