From owner-freebsd-ports@freebsd.org Mon Mar 2 18:56:35 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8BD312572CF for ; Mon, 2 Mar 2020 18:56:35 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 48WTrf1kF7z4YT3 for ; Mon, 2 Mar 2020 18:56:33 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from crayon2.yoonka.com (crayon2.yoonka.com [10.70.7.20]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id 022IuVXV016647 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Mon, 2 Mar 2020 18:56:32 GMT (envelope-from list1@gjunka.com) Subject: Re: pkg / poudriere issue - wrong packagesite / meta To: freebsd-ports@freebsd.org References: <3f768444-3ee9-75bd-934d-a0bd8c8845d4@gjunka.com> From: Grzegorz Junka Message-ID: Date: Mon, 2 Mar 2020 18:56:31 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <3f768444-3ee9-75bd-934d-a0bd8c8845d4@gjunka.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB-large X-Rspamd-Queue-Id: 48WTrf1kF7z4YT3 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-5.85 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[gjunka.com]; IP_SCORE(-3.55)[ip: (-9.30), ipnet: 88.98.192.0/18(-4.65), asn: 56478(-3.72), country: GB(-0.07)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2020 18:56:35 -0000 On 02/03/2020 17:49, Grzegorz Junka wrote: > I just finished building ports for FreeBSD 12.1. I have already > upgraded base to 12.1 and now I am trying to update packages, but pkg > fails with this cryptic error: > > # pkg update > Updating desktop_nvidia repository catalogue... > pkg: repository meta has wrong version 2 > pkg: Repository desktop_nvidia load error: meta cannot be loaded No > error: 0 > Fetching meta.txz: 100%    236 B   0.2kB/s    00:01 > pkg: repository meta has wrong version 2 > repository desktop_nvidia has no meta file, using default settings > Fetching packagesite.txz: 100%  463 KiB 474.1kB/s    00:01 > pkg: repository meta has wrong version 2 > pkg: Repository desktop_nvidia load error: meta cannot be loaded No > error: 0 > Unable to open created repository desktop_nvidia > Unable to update repository desktop_nvidia > Error updating repositories! > This is now solved, at least for my issue. I copied the pkg locally and installed it while the pkg.conf was still pointing to the old repo (with old meta). After installing I switched to the new repo and thankfully the newer version of pkg was able to read the new meta format and it updated the database correctly.