From owner-freebsd-questions@freebsd.org Thu Sep 13 14:20:48 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 223FF108F3D9 for ; Thu, 13 Sep 2018 14:20:48 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from kicp.uchicago.edu (kicp.uchicago.edu [128.135.20.70]) by mx1.freebsd.org (Postfix) with ESMTP id C92E773080 for ; Thu, 13 Sep 2018 14:20:47 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from point.uchicago.edu (point.uchicago.edu [128.135.52.6]) by kicp.uchicago.edu (Postfix) with ESMTP id 55EF6718057 for ; Thu, 13 Sep 2018 09:20:40 -0500 (CDT) Subject: Re: sudo,pkg,Mailman all broken after upgrade from 10.3 to 11.2 To: freebsd-questions@freebsd.org References: From: Valeri Galtsev Message-ID: <7365c102-a840-f75a-6563-aefc7c9d14d2@kicp.uchicago.edu> Date: Thu, 13 Sep 2018 09:20:40 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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, 13 Sep 2018 14:20:48 -0000 On 9/13/18 8:29 AM, William Dudley wrote: > replying to my own questions. > > The upgrade directions didn't state that I had to run pkg-static to upgrade > pkg, > and then do pkg upgrade. They just said "rebuild ports", of which I have > none. > > So some googling revealed the missing instructions, and I am running pkg > upgrade > as I write this. > > Here, so the answers will be found by a search, is the missing > documentation: > > After the final freebsd-update install and reboot, do this: > > pkg-static -f install pkg > pkg upgrade (or possibly "pkg -f upgrade") no possibly, but definitely pkg -f upgrade Going minor version up like 11.1 --> 11.2 -f not necessarily needed, but going major version up like 10.4 --> 11.2 you do need to re-install all packages. Just my $0.02 Valeri > > Bill Dudley > > > This email is free of malware because I run Linux. > > On Thu, Sep 13, 2018 at 9:21 AM, William Dudley wrote: > >> The fun never stops, eh? >> >> I just completed an upgrade from 10.3 to 11.2, using freebsd-update. >> >> sudo ls >> 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 >> >> alpine is broken, same error about libpam.so.5 missing. >> >> Mailman is broken: >> >> ERROR:root:code for hash md5 was not found. >> Traceback (most recent call last): >> File "/usr/local/lib/python2.7/hashlib.py", line 147, in >> globals()[__func_name] = __get_hash(__func_name) >> File "/usr/local/lib/python2.7/hashlib.py", line 97, in >> __get_builtin_constructor >> raise ValueError('unsupported hash type ' + name) >> ValueError: unsupported hash type md5 >> ERROR:root:code for hash sha1 was not found. >> Traceback (most recent call last): >> File "/usr/local/lib/python2.7/hashlib.py", line 147, in >> globals()[__func_name] = __get_hash(__func_name) >> File "/usr/local/lib/python2.7/hashlib.py", line 97, in >> __get_builtin_constructor >> raise ValueError('unsupported hash type ' + name) >> ValueError: unsupported hash type sha1 >> ERROR:root:code for hash sha224 was not found. >> Traceback (most recent call last): >> File "/usr/local/lib/python2.7/hashlib.py", line 147, in >> globals()[__func_name] = __get_hash(__func_name) >> File "/usr/local/lib/python2.7/hashlib.py", line 97, in >> __get_builtin_constructor >> raise ValueError('unsupported hash type ' + name) >> ValueError: unsupported hash type sha224 >> ERROR:root:code for hash sha256 was not found. >> Traceback (most recent call last): >> File "/usr/local/lib/python2.7/hashlib.py", line 147, in >> globals()[__func_name] = __get_hash(__func_name) >> File "/usr/local/lib/python2.7/hashlib.py", line 97, in >> __get_builtin_constructor >> raise ValueError('unsupported hash type ' + name) >> ValueError: unsupported hash type sha256 >> ERROR:root:code for hash sha384 was not found. >> Traceback (most recent call last): >> File "/usr/local/lib/python2.7/hashlib.py", line 147, in >> globals()[__func_name] = __get_hash(__func_name) >> File "/usr/local/lib/python2.7/hashlib.py", line 97, in >> __get_builtin_constructor >> raise ValueError('unsupported hash type ' + name) >> ValueError: unsupported hash type sha384 >> ERROR:root:code for hash sha512 was not found. >> Traceback (most recent call last): >> File "/usr/local/lib/python2.7/hashlib.py", line 147, in >> globals()[__func_name] = __get_hash(__func_name) >> File "/usr/local/lib/python2.7/hashlib.py", line 97, in >> __get_builtin_constructor >> raise ValueError('unsupported hash type ' + name) >> ValueError: unsupported hash type sha512 >> Traceback (most recent call last): >> File "/usr/local/mailman/cron/disabled", line 73, in >> from Mailman import Utils >> File "/usr/local/mailman/Mailman/Utils.py", line 61, in >> md5_new = hashlib.md5 >> AttributeError: 'module' object has no attribute 'md5' >> >> pkg is broken: >> >> pkg upgrade >> Shared object "libssl.so.7" not found, required by "pkg" >> >> I can see source for that file here: >> >> /usr/obj/usr/src/secure/lib/libssl/libssl.so.7 >> /usr/obj/usr/src/tmp/usr/lib/libssl.so.7 >> >> But I don't (off hand) know how to build it. >> >> Probably lots of other stuff is broken that I haven't found yet. >> This is extremely disappointing. >> >> I have done freebsd-update fetch/install after the upgrade. >> >> I can't run pkg, as it's broken. >> >> Does anyone have any suggestions? >> >> Thanks, >> Bill Dudley >> > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++