From owner-freebsd-questions@freebsd.org Thu Aug 9 14:12:11 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9764F1067953 for ; Thu, 9 Aug 2018 14:12:11 +0000 (UTC) (envelope-from kayasaman@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 129C074835 for ; Thu, 9 Aug 2018 14:12:11 +0000 (UTC) (envelope-from kayasaman@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id o11-v6so354924wmh.2 for ; Thu, 09 Aug 2018 07:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=JV3FJMEYWIdicJ7XUjE84RZXE6swn4/VcpujET3FU8o=; b=VJAykU7ypQjgNdym/64UTjKQRaVy6/1WjaKuDGHBffjmsHp/caPdIDcj3t74eNmDRZ PEu1xz1OA8vRvM/9P+Vtth7h1uc5d3ZtRkB5QrUhejPkVOKLx2yo55y6UGKyhGtLMO4v oomHHvSIMJLFJuFlvYyLsNPjc79anp0wb8r1+0iTmdLp/Zr9GUpZTLGafvjw6nrU9wQK V4W7p1cvdM3jp1KcfceSVBXtUrOm307O7/jZZFh9kWdPuS628r+0XgIYhC0oMsOAQKu9 m08SDDFiLMACLVpGBbi/LsHFJJvVytOQCmbWyS+zhQqYQL136YREUVlG05QSY07vPVmW WRrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=JV3FJMEYWIdicJ7XUjE84RZXE6swn4/VcpujET3FU8o=; b=lXtFSOzsJXMNxWlkc34T21uBqV07QSKEqhiz5I+xc3KfOD6An7D72inxLC5nl/b18U CwK/NSDfVDsbYX0S3VaYdJHTFrgGO5eev5/FNJFYlYdJsqBQ4R9/k3OUYE3e7JTHmPZr dYj65XTS0/ITWQEnbghrPBR+teUqUIB0kZTAyUyoXKJoxwd2AllLPG2SaV2j+uEZAxuB ZvtJiATSxG3D0YF82JySSCD9DVtTp0WYPm1RyDWT96ldsbAOwP9sqgKclUlo2My3mbaJ cps6VGppWziFAt+3seLvTCNQsQrIHcg8/85tvF+lJ1+Z3a3aUerTJib4Nl0xuI6zq7zY dKlQ== X-Gm-Message-State: AOUpUlFkNjOuwubOpwbExYLapodZxMJ9020K1/sHaWdR3wHiLKtmogCh DtobWo4sPW6mr/BJCZNezz5q+zcX X-Google-Smtp-Source: AA+uWPwn1dubouyDCvFMdXmThleZEvj/nSARSNTFY3hVFPXNp4lROi3ENGOvJ/RHEDiQCU1DGpgw9Q== X-Received: by 2002:a1c:1dcd:: with SMTP id d196-v6mr1836060wmd.114.1533823929759; Thu, 09 Aug 2018 07:12:09 -0700 (PDT) Received: from Sting-Ray.optiplex-networks.com (optiplexnetworks.plus.com. [212.159.80.17]) by smtp.gmail.com with ESMTPSA id c13-v6sm5935901wrt.24.2018.08.09.07.12.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Aug 2018 07:12:08 -0700 (PDT) Subject: Re: Userland and kernel mismatch To: freebsd-questions@freebsd.org References: <5B6C37BF.3060701@webtent.org> Cc: robert@webtent.org From: Kaya Saman Message-ID: <55690e33-1204-e359-da13-ee99357dada3@gmail.com> Date: Thu, 9 Aug 2018 15:12:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <5B6C37BF.3060701@webtent.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US-large X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2018 14:12:11 -0000 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? >