Discussion:
libnetgraph.so.4 not found
Budi Janto
2021-05-02 10:16:31 UTC
Permalink
Hi Folks,


Last week, I decide to upgrade FreeBSD from FreeBSD 12.2-RELEASE-P6 to
FreeBSD 13.0-RELEASE through freebsd-update utility.

# uname -rpKvU
13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f:
Fri Apr 9 04:24:09 UTC 2021
***@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
amd64 1300139 1300139

# netstat -rn
ld-elf.so.1: Shared object "libnetgraph.so.4" not found, required by
"netstat"

Anyone clue to fix this problem? -- Thank You.
--
Regards,
Budi Janto
Graham Perrin
2021-05-02 12:02:34 UTC
Permalink
Post by Budi Janto

# uname -rpKvU
Fri Apr  9 04:24:09 UTC 2021
amd64 1300139 1300139
# netstat -rn
ld-elf.so.1: Shared object "libnetgraph.so.4" not found, required by
"netstat"

Please: how – exactly – did you perform the upgrade from 12.2-RELEASE-p6?

----

Here:

% freebsd-version -kru
14.0-CURRENT
14.0-CURRENT
14.0-CURRENT
% pkg provides libnetgraph.so.4
Name    : gnatcross-sysroot-aarch64-1_1
Desc    : FreeBSD sysroots for C/Ada cross-compiler (amd64)
Repo    : FreeBSD
Filename: usr/local/FreeBSD_ARM64/sysroot/usr/lib/libnetgraph.so.4
%

<https://www.freshports.org/lang/gnatcross-sysroot-aarch64/#packages>

----

At an adjacent computer I have `netstat -rn` working in FreeBSD
13.0-RELEASE _without_ gnatcross-sysroot-aarch64
Budi Janto
2021-05-04 06:00:43 UTC
Permalink
Post by Budi Janto


# uname -rpKvU
Fri Apr  9 04:24:09 UTC 2021
amd64 1300139 1300139
# netstat -rn
ld-elf.so.1: Shared object "libnetgraph.so.4" not found, required by
"netstat"


Please: how – exactly – did you perform the upgrade from 12.2-RELEASE-p6?
Here, we have done to upgrade for 11 machines, which is only one machine
without libnetgraph.so.4 issue. In all machine I do similar step.

1. First step update to the latest version of FreeBSD 12.2-RELEASE branch.
# freebsd-update fetch install
# shutdown -r now

2. Upgrade to FreeBSD 13.0.
# freebsd-update -r 13.0-RELEASE upgrade

3. Install base/kernel.
# freebsd-update install
# shutdown -r now

4. Install userland components.
# freebsd-update install

5. Rebuild all packages.
# pkg-static install -fy pkg; pkg bootstrap -fy; pkg update -f; pkg
upgrade -fy; pkg clean -ay

6. Remove old/unused-libraries.
# freebsd-update install
# shutdown -r now

Are there any steps I missed? Thanks.
--
Regards,
Budi Janto
Loading...