From owner-freebsd-questions@freebsd.org Tue Oct 30 13:24:26 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 1561310E84A9 for ; Tue, 30 Oct 2018 13:24:26 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from mx32.harte-lyne.ca (mx32.harte-lyne.ca [216.185.71.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx32.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B5BC384544 for ; Tue, 30 Oct 2018 13:24:25 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from mx32.harte-lyne.ca (unknown [127.0.32.1]) by mx32.harte-lyne.ca (Postfix) with ESMTP id 357DF8260; Tue, 30 Oct 2018 09:24:25 -0400 (EDT) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from mx32.harte-lyne.ca ([127.0.32.1]) by mx32.harte-lyne.ca (mx32.harte-lyne.ca [127.0.32.1]) (amavisd-new, port 10024) with ESMTP id d1QjiF3uCYN9; Tue, 30 Oct 2018 09:24:17 -0400 (EDT) Received: from webmail.harte-lyne.ca (mx32.harte-lyne.ca [216.185.71.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx32.harte-lyne.ca (Postfix) with ESMTPSA id 5426E8255; Tue, 30 Oct 2018 09:24:17 -0400 (EDT) Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Tue, 30 Oct 2018 09:24:17 -0400 Message-ID: <0d3c4f4534899b9f35b93c20b1815592.squirrel@webmail.harte-lyne.ca> In-Reply-To: References: Date: Tue, 30 Oct 2018 09:24:17 -0400 Subject: Re: pkg will not upgrade From: "James B. Byrne" To: "Shane Ambler" Cc: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2018 13:24:26 -0000 On Mon, October 29, 2018 21:47, Shane Ambler wrote: > On 30/10/18 5:45 am, James B. Byrne via freebsd-questions wrote: >> In a Freebsd-11.1p15 jail I am trying to upgrade the packages. >> However >> >> pkg upgrade . . . >> pkg: cached package clamav-0.100.2: size mismatch, fetching from >> remote . . . >> pkg: cached package clamav-0.100.2: size mismatch, cannot continue >> >> I have already cleared the cache. What is going on? If I try to > > mx31.harte-lyne.ca would be your local pkg repo build > machine? The size mismatch would indicate that either its > pkg database is incorrect or it is still in the process of > building the packages and hasn't got to update its database yet. > >> update pkg itself then I get a warning that the kernel required for >> the update is higher than the one running the jail; so don't do >> that. >> > > Your jail is running 11.1 and your pkgs are built for -- 11.2? > or is in the process of rebuilding for 11.2. > What happened , twice, is that in preparation for moving to 11.2 I first updated the base OS to 11.1p15 and then ran pkg upgrade after restarting. There seems to be some anomaly introduced by update process. For systems not yet on 11.1p15 if I run pkg upgrade then there is nothing to upgrade. Once I update to p15 and restart then there are lots of packages to upgrade but I inevitably get a cache error when I attempt to. The only fix that I have found is to update the base os to 11.2. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3