From owner-freebsd-questions@freebsd.org Mon Oct 10 19:47:46 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 16DBBC0CE74 for ; Mon, 10 Oct 2016 19:47:46 +0000 (UTC) (envelope-from tal@whatexit.org) Received: from mail-oi0-x233.google.com (mail-oi0-x233.google.com [IPv6:2607:f8b0:4003:c06::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D5848A56 for ; Mon, 10 Oct 2016 19:47:45 +0000 (UTC) (envelope-from tal@whatexit.org) Received: by mail-oi0-x233.google.com with SMTP id m72so139311583oik.3 for ; Mon, 10 Oct 2016 12:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whatexit.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=53dzJzfqLCx4CDxT/yMqeMCj5/CqGKd8gjVuztn/iPE=; b=PT1Hz20GYDT8Xy9WM3On8lBpZpbW1pCGC57hxT9iFI9XcNLlzJL3LRR4dpRlgcuE5Q xgMmjr3TIo3ebLJ3nvmgyPtsuM7pIV0qd3aY4XwvENA6Zrre2mnBs/pYxaUDBopRPjDl MGwdMZWLTn+ikmQtOulf1qAsaCbuopj/rBjwI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=53dzJzfqLCx4CDxT/yMqeMCj5/CqGKd8gjVuztn/iPE=; b=m/vJc0fLOtJQ39VN535yyRUNGAjFsMN/fLBUggEj4s0qNdLNPqlZKzYWhZPiHSx92/ Uq+VUmw0+oY/SJwr+uOTwASOjHLkgteoLRO+n98NFzSfrcOfO4b+wJWKiXaDNj9F+e0p k/4+IeCfmYCgpkaORrNgNtmapdR2IHDdEG4JdAsgHdoMby1ohJuR9jmmRWbqKnnJ6CDm wH9pzlUJJGsYbJDIoBG0TkdkGCaC03+QZJrsnCQAzRoSTVTR00in1ughOjZUAcB9cCsq ncLP7pgGx1cj/t6HIfQzQ4Wrt8qo225PZG7y7Lj1HZv9riJ50Sr+trTRXx98QrbWmoli LQ1A== X-Gm-Message-State: AA6/9RmP+/clk0FaMYEDEi2wUCqjLke8YQ3L0Byk9G27IGUFkVR2KTxD1esPUx8+JnvUC+zPXjHcgFMMR/ms1/4z X-Received: by 10.157.32.196 with SMTP id x62mr5857765ota.151.1476128864743; Mon, 10 Oct 2016 12:47:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.52.197 with HTTP; Mon, 10 Oct 2016 12:47:24 -0700 (PDT) From: Tom Limoncelli Date: Mon, 10 Oct 2016 15:47:24 -0400 Message-ID: Subject: Forgot to rebuild third-party software. Now what? To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2016 19:47:46 -0000 I've upgraded my system from 10.3 to 11.0-RELEASE and I forgot to rebuild third-party software. Now various shared libraries don't exist. Longer version... I was following the usual steps: # : > /usr/bin/bspatch # freebsd-update upgrade -r 11.0-RELEASE # freebsd-update install # freebsd-update install <<<< Didn't do this part. # freebsd-update install The steps looked like this: root@exit148:~ # /usr/sbin/freebsd-update install src component not installed, skipped Installing updates... Completing this upgrade requires removing old shared object files. Please rebuild all installed 3rd party software (e.g., programs installed from the ports tree) and then run "/usr/sbin/freebsd-update install" again to finish installing updates. root@exit148:~ # /usr/sbin/freebsd-update install src component not installed, skipped Installing updates... done. root@exit148:~ # /usr/sbin/freebsd-update install src component not installed, skipped No updates are available to install. Run '/usr/sbin/freebsd-update fetch' first. Now I can't run pkg: $ sudo pkg upgrade sudo: error in /usr/local/etc/sudo.conf, line 0 while loading plugin `sudoers_policy' sudo: unable to load /usr/local/libexec/sudo/sudoers.so: Shared object "libpam.so.5" not found, required by "sudoers.so" sudo: fatal error, unable to load plugins Oops! I just realized that sudo is a third-party software package. If I become root some other way: # pkg upgrade Shared object "libssl.so.7" not found, required by "pkg" Interestingly enough, Apache HTTPd is running and my website is up. Suggestions on how to get out of this corner? I'm pretty stuck. I'm not even sure if I should reboot. (I do have backups... but given the state of the system, I'd probably have to restore to a new machine). Thanks! Tom -- Email: tal@whatexit.org Work: tlimoncelli@StackOverflow.com Blog: http://EverythingSysadmin.com