pkg error after update to 13.2

Hi.

After update FreeBSD from 12.4 to 13.2 my pkg is not working:
Code:
pkg info
pkg: elf_begin() failed: Invalid argument.
pkg: elf_begin() failed: Invalid argument.
pkg: Unable to determine ABI
pkg: Cannot parse configuration file!
Is any idea how to fix it? :/
 
What does freebsd-version -urk return? Also, try pkg bootstrap -f
 
pkg.conf(5)
Code:
ABI: string      The ABI of the package you want to install.  Default:
                     derived from the ABI of the /usr/bin/uname binary, if
                     not found then /bin/sh binary.
Thread 89957

It seems that /usr/bin/uname is broken.
This is not the output of uname(1).
Please redo the UPGRADE.
 
The reason it happened was that vmware ran out of free space and something was underwritten or written incorrectly. After cleaning the space and updating everything worked as it should. Maybe it will be useful to someone.
 
Back
Top