修复pfSense无法检索插件的BUG

By | 2024-03-22

Pfsense Package Manager Unable to retrieve package information.

这个问题似乎是升级到2.7版本之后产生的

输入pkg报错,ld-elf.so.1: Shared object “libssl.so.30” not found, required by “pkg”, pkg版本为1.20.8_3 无法更新软件源

[2.7.0-RELEASE][admin@QD.home.arpa]/usr/local/etc/pkg/repos: pkg
ld-elf.so.1: Shared object "libssl.so.30" not found, required by "pkg"
[2.7.0-RELEASE][admin@QD.home.arpa]/usr/local/etc/pkg/repos: pkg-static info pkg
pkg-1.20.8_3
Name           : pkg
Version        : 1.20.8_3
Installed on   : Thu Mar 14 13:46:29 2024 CST
Origin         : ports-mgmt/pkg
Architecture   : FreeBSD:14:amd64
Prefix         : /usr/local
Categories     : ports-mgmt
Licenses       : BSD2CLAUSE
Maintainer     : pkg@FreeBSD.org
WWW            : https://github.com/freebsd/pkg
Comment        : Package manager
Options        :
        DOCS           : off
Shared Libs provided:
        libpkg.so.4
Annotations    :
        FreeBSD_version: 1400094
        build_timestamp: 2023-12-08T16:43:00+0000
        built_by       : poudriere-git-3.3.99.20220831
        port_checkout_unclean: no
        port_git_hash  : a7eb59c84ce6
        ports_top_checkout_unclean: no
        ports_top_git_hash: 8b62949c407c
        repo_type      : binary
        repository     : pfSense
Flat size      : 39.3MiB
Description    :
Package management tool

需要降级到1.19.1_2,输入下面的命令:

certctl rehash
pkg-static update -f
pkg-static install -fy pkg pfSense-repo pfSense-upgrade
[2.7.0-RELEASE][admin@QD.home.arpa]/usr/local/etc/pkg/repos: certctl rehash
Scanning /usr/share/certs/untrusted for certificates...
Scanning /usr/share/certs/trusted for certificates...
Scanning /usr/local/share/certs for certificates...
[2.7.0-RELEASE][admin@QD.home.arpa]/usr/local/etc/pkg/repos: pkg-static update -f
Updating pfSense-core repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01
Fetching packagesite.pkg: 100%    2 KiB   1.8kB/s    00:01
Processing entries: 100%
pfSense-core repository update completed. 7 packages processed.
Updating pfSense repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01
Fetching packagesite.pkg: 100%  156 KiB 159.4kB/s    00:01
Processing entries: 100%
pfSense repository update completed. 532 packages processed.
All repositories are up to date.
[2.7.0-RELEASE][admin@QD.home.arpa]/usr/local/etc/pkg/repos: pkg-static install -fy pkg pfSense-repo pfSense-upgrade
Updating pfSense-core repository catalogue...
Fetching meta.conf:   0%
Fetching packagesite.pkg:   0%
pfSense-core repository is up to date.
Updating pfSense repository catalogue...
Fetching meta.conf:   0%
Fetching packagesite.pkg:   0%
pfSense repository is up to date.
All repositories are up to date.
The following 3 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        pfSense-repo: 2.7.0 -> 2.7.0_2 [pfSense]

Installed packages to be DOWNGRADED:
        pkg: 1.20.8_3 -> 1.19.1_2 [pfSense]

Installed packages to be REINSTALLED:
        pfSense-upgrade-1.0_33 [pfSense]

Number of packages to be upgraded: 1
Number of packages to be reinstalled: 1
Number of packages to be downgraded: 1

The operation will free 6 MiB.
9 MiB to be downloaded.
[1/3] Fetching pfSense-repo-2.7.0_2.pkg: 100%    6 KiB   5.8kB/s    00:01
[2/3] Fetching pkg-1.19.1_2.pkg: 100%    9 MiB   3.1MB/s    00:03
[3/3] Fetching pfSense-upgrade-1.0_33.pkg: 100%   19 KiB  19.3kB/s    00:01
Checking integrity... done (0 conflicting)
[1/3] Upgrading pfSense-repo from 2.7.0 to 2.7.0_2...
[1/3] Extracting pfSense-repo-2.7.0_2: 100%
[2/3] Downgrading pkg from 1.20.8_3 to 1.19.1_2...
[2/3] Extracting pkg-1.19.1_2: 100%
[3/3] Reinstalling pfSense-upgrade-1.0_33...
[3/3] Extracting pfSense-upgrade-1.0_33: 100%
You may need to manually remove /usr/local/etc/pkg.conf if it is no longer needed.

版本更新如下:

[2.7.0-RELEASE][admin@QD.home.arpa]/usr/local/etc/pkg/repos: pkg-static info pkg
pkg-1.19.1_2
Name           : pkg
Version        : 1.19.1_2
Installed on   : Fri Mar 22 14:57:42 2024 CST
Origin         : ports-mgmt/pkg
Architecture   : FreeBSD:14:amd64
Prefix         : /usr/local
Categories     : ports-mgmt
Licenses       : BSD2CLAUSE
Maintainer     : pkg@FreeBSD.org
WWW            : https://github.com/freebsd/pkg
Comment        : Package manager
Options        :
        DOCS           : off
Shared Libs provided:
        libpkg.so.4
Annotations    :
        FreeBSD_version: 1400085
        build_timestamp: 2023-09-08T14:31:58+0000
        built_by       : poudriere-git-3.3.99.20220831
        port_checkout_unclean: no
        port_git_hash  : 6ed6f50d370a
        ports_top_checkout_unclean: yes
        ports_top_git_hash: 6ed6f50d370a
        repo_type      : binary
        repository     : pfSense
Flat size      : 33.4MiB
Description    :
Package management tool

WWW: https://github.com/freebsd/pkg

再进入插件管理正常检索出软件包

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注