Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Aug 2018 15:12:08 +0100
From:      Kaya Saman <kayasaman@gmail.com>
To:        freebsd-questions@freebsd.org
Cc:        robert@webtent.org
Subject:   Re: Userland and kernel mismatch
Message-ID:  <55690e33-1204-e359-da13-ee99357dada3@gmail.com>
In-Reply-To: <5B6C37BF.3060701@webtent.org>
References:  <5B6C37BF.3060701@webtent.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
If the 'userland' is messed up, try this: 
https://www.freebsd.org/doc/handbook/makeworld.html

1. fetch sources for whatever version of FreeBSD you are using.... 
10.4-Release?

2. build the same userland/kernel for it:

# cd /usr/src
# make buildworld
# make buildkernel


3. install:

# cd /usr/src
# make installkernel
# shutdown -r now
# cd /usr/src
# make installworld
# shutdown -r now


hopefully that should get you back in sync :-)

Regards,

Kaya

On 08/09/18 13:46, Robert Fitzpatrick via freebsd-questions wrote:
> I'm not sure how I messed up one server of mine, but hope someone can 
> suggest how it can be fixed. When I try to run pkg, I get this error:
>
> root@mx2:~ # pkg update
> /lib/libc.so.7: version FBSD_1.4 required by 
> /usr/local/lib/libpkg.so.4 not found
>
> It seems my userland is out of sync with the kernel:
>
> root@mx2:~ # freebsd-version -uk
> 10.4-RELEASE-p10
> 10.4-RELEASE-p10
> root@mx2:~ # freebsd-update fetch
> root@mx2:~ # uname -U
> 1000510
> root@mx2:~ # uname -K
> 1004000
>
> I've found posts suggesting how to correct the reverse of an older 
> kernel, but how could I fix this issue?
>




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?55690e33-1204-e359-da13-ee99357dada3>