pkg version libpkg_1.4

khoogc khoogc at
Wed Jul 18 08:50:55 UTC 2018

>----Original Message----
>From : steve at
>Date : 17/07/2018 - 18:14 GMT+8
>To : khoogc at
>Cc : freebsd-questions at
>Subject : Re: pkg version libpkg_1.4
>On Tue, 17 Jul 2018 17:25:32 +0800 (SGT)
>khoogc <khoogc at> wrote:
>> Hi,
>> I have upgraded to 11.2 from 11.1 and now find I cannot use pkg. When I
>> call pkg as root, I get   "/usr/local/lib/ version LIBPKG_1.4
>> required by /usr/local/sbin/pkg not defined"
>> Help. How do I rectify this? Thanks
>	Try this:
>	pkg-static upgrade -f
>Steve O'Hara-Smith <steve at>
>freebsd-questions at mailing list
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"
 Sorry earlier message incomplete.
----below is the complete run -----
root at fbsd110:/usr/home/khoogc # pkg-static upgrade -f
Segmentation fault (core dumped)

root at fbsd110:/usr/home/khoogc # gdb pkg-static
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...
(gdb) break main
No symbol table is loaded.  Use the "file" command.
(gdb) run
Starting program: /usr/local/sbin/pkg-static 
warning: shared library handler failed to enable breakpoint

Program received signal SIGSEGV, Segmentation fault.
0x000000000076fc40 in ?? ()


Regards Richard Khoo Guan

More information about the freebsd-questions mailing list