From owner-freebsd-stable@freebsd.org Wed Oct 19 10:27:06 2016 Return-Path: Delivered-To: freebsd-stable@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 AAB59C1789D for ; Wed, 19 Oct 2016 10:27:06 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (grunt.madpilot.net [78.47.145.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6A92D163; Wed, 19 Oct 2016 10:27:05 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3szSd816C1zbDF; Wed, 19 Oct 2016 12:20:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject:received:received; s=mail; t= 1476872442; x=1478686843; bh=XsX5paRn98M02dVatJyKPCgaEP7MfmJhsrK WzWhZKSA=; b=V8+bDSP9JrQ2ZwZCAfKonREVkZJumBEY1w2uJRVYSFbnvocEtUM kk+lPdNN7UnMmQmtXvA+DrnlpFwIMDAqbOu9oRDBga1ySwgcSuYU63ffCnBwpvAE s+2SuLSuQSfWE4qEqLVomOWsB3/T+JMzMPDdj/1hu9KI0eN2sBx9CLPw= Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id JPnPGtFr7-cJ; Wed, 19 Oct 2016 12:20:42 +0200 (CEST) Received: from marvin.madpilot.net (micro.madpilot.net [88.149.173.206]) by mail.madpilot.net (Postfix) with ESMTPSA; Wed, 19 Oct 2016 12:20:42 +0200 (CEST) Subject: Re: 11.0 Install Question To: Miroslav Lachman <000.fbsd@quip.cz>, Matthew Seaman , freebsd-stable@freebsd.org References: <53CC5785-5ABC-4235-9E3B-ECF6A9E0A74B@mac.com> <20161019144953.34e63e30@gmail.com> <58073101.2000203@quip.cz> <20161019085504.GA37097@xtaz.uk> <58073ED7.3030504@quip.cz> From: Guido Falsi Message-ID: <8ad1fc5b-1b57-c031-a0d1-5a92a64ad3ac@madpilot.net> Date: Wed, 19 Oct 2016 12:20:41 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <58073ED7.3030504@quip.cz> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Oct 2016 10:27:06 -0000 On 10/19/16 11:37, Miroslav Lachman wrote: > Matthew Seaman wrote on 2016/10/19 11:08: >> On 2016/10/19 09:55, Matt Smith wrote: >>> On Oct 19 10:38, Miroslav Lachman wrote: >>>> Jonathan Haack wrote on 2016/10/19 10:09: >>>>> Awe geez ... pkg won't work ... says "shared object "libssl.so.7" not >>>>> found, required by "pkg" >>>> >>>> Do not panic, just run pkg-static to upgrade pkg it-self >>>> >>>> /usr/local/sbin/pkg-static install -f pkg >>>> >>> >>> I think that these instructions should be in the announcement release >>> notes as this question comes up a lot. The notes just say something like >>> "upgrade all your packages". Most people will then just try and run pkg >>> upgrade and get that error without knowing how to solve it. It's not >>> intuitive unless you have come across this before. >> >> pkg(8) does have a built-in warning when it detects an OS major version >> upgrade, which is to do a forced upgrade of pkg(8) so it matches the ABI >> versions of system shlibs. Did that warning appear in this case? > > I think it is not shown if pkg is missing some libraries. > It is shown when OS major version changes and you run pkg befor old > libraries are deleted or if you run pkg-static: > > pkg-static: Warning: Major OS version upgrade detected. Running > "pkg-static install -f pkg" recommended > The correct procedure (and I think it's documented somewhere) is to run "pkg upgrade -f" before removing the old libraries. If compiling from sources that is before make delete-old-libraries and is explicitly stated when running make delete-old to upgrade ports before going on. If upgrading using freebsd-update that's before running "freebsd-update install" for the third time(if I remember correctly) and I think I remember freebsd-update stating something about upgrading installed packages, but I'm not 100% sure. -- Guido Falsi