From owner-freebsd-current@freebsd.org Sat Mar 7 21:13:00 2020 Return-Path: Delivered-To: freebsd-current@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 1EA78250951 for ; Sat, 7 Mar 2020 21:13:00 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Zcdl1N5mz4lbb; Sat, 7 Mar 2020 21:12:58 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: by mail-wm1-x330.google.com with SMTP id 6so6068622wmi.5; Sat, 07 Mar 2020 13:12:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7zfdf5IyBsiDD5T+1+YIL/lszmPIchYTIrcE/ewt0Ps=; b=H18jGaWIOd0FI+aJQU7J7Ut+Jy9suItZGL+G4LG3x2JqoEItEkIrAlcubMX+nS8/lS 9TnCUz04PSo8PhcdRY3SUgOXDgEbEwX9YIHcuTrI4/oGHVhXuC6eMY1N5Ecc22J1kgtq ukDZu7/OxHPBbB8CI5r6heZqq0gRIj8nkiyVwvapqf5XeUaHWNe/p7hQwKuHpnJD7Ys1 gMWncV34Nog5QvoYDtqj/gTw045RpbZte4VvHoaQIBP3/CvG+wcb4Rh5xED+ejMuCOz8 oNXBJ7MlG0HXoZHvEUQDlxH1UcjRB/nChEvPlwV7zzos8egbad2ODAAVzBD4qS30WQZQ u7rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7zfdf5IyBsiDD5T+1+YIL/lszmPIchYTIrcE/ewt0Ps=; b=ElntA91Vv9rTsk8y7ZcXPR4uOc1qmwkRpz0mV+MrA5cmlBnKFhs5/615GskhV73owL RCh+sLABeIYp8kVLj5osJRpKlN8TJpznEgUd04pUz/0cllRm8P9Omrz6OlccpG7qzpp4 3YlkhQx2ujpvmFTQh0LX2fB8suLDhCQD6a6gtE5AI4OoIYzRCO5loS21YuGPVDoL5kP5 FEPghAj7xlfLKGAAdBB+uBoUf97ul19fzld4lUN+VlEu1TK3uVRQ8dBDk9Tllyvz8HoY v6BuM30Vys2Uyfaeyk/rMq0mZBNfjQh4tDVTkmv2jyOJ7QetHl+DuaMFIzcV8QqGrRfQ 8HEw== X-Gm-Message-State: ANhLgQ0fAuoHqoAEBVfFgo6gqRGNZguid82Y+k3nOYa77Oxw6hukAJoy /RwF26Eo4jjK/sx1fJPcWvpIa1RrYN7H9ttVabpLFQyfQ08= X-Google-Smtp-Source: ADFU+vsO22/i/crC5owQEzR+GvoWcIEvwq2XmSYNkvTEgIoHBnbEO1+qmL+fdeTRmIxZxshJ09/WeRA8NSI+3sGUXL8= X-Received: by 2002:a05:600c:23cd:: with SMTP id p13mr11023677wmb.28.1583615576729; Sat, 07 Mar 2020 13:12:56 -0800 (PST) MIME-Version: 1.0 References: <72F36F7F-CF4D-44C9-A307-8728ED4071D9@freebsd.org> In-Reply-To: From: Andrey Fesenko Date: Sun, 8 Mar 2020 00:12:45 +0300 Message-ID: Subject: Re: Pkg repository is broken... To: Michael Tuexen Cc: Michael Gmelin , FreeBSD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48Zcdl1N5mz4lbb X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-5.90 / 15.00]; NEURAL_HAM_MEDIUM(-0.90)[-0.900,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Mar 2020 21:13:00 -0000 On Sun, Mar 8, 2020 at 12:02 AM Michael Tuexen wrote: > > > > > On 7. Mar 2020, at 21:37, Michael Gmelin wrote: > > > > > > > >> On 7. Mar 2020, at 19:01, Michael Tuexen wrote: > >> > >> =EF=BB=BF > >>> > >>>> On 7. Mar 2020, at 18:18, Michael Gmelin wrote: > >>>> > >>>> > >>>> > >>>>> On 7. Mar 2020, at 18:08, Michael Tuexen wr= ote: > >>>> > >>>> =EF=BB=BF > >>>>> > >>>>> On 7. Mar 2020, at 16:46, Michael Gmelin wrote: > >>>>> > >>>>> > >>>>> > >>>>>> On Sat, 07 Mar 2020 11:30:58 -0400 > >>>>>> Waitman Gobble wrote: > >>>>>> > >>>>>> On 2020-03-07 05:10, Ronald Klop wrote: > >>>>>>> On Sat, 07 Mar 2020 01:38:55 +0100, Greg 'groggy' Lehey > >>>>>>> wrote: > >>>>>>> > >>>>>>>> On Friday, 6 March 2020 at 12:29:44 +0100, Lars Engels wrote: > >>>>>>>>> On Wed, Mar 04, 2020 at 03:16:14PM +1100, Greg 'groggy' Lehey > >>>>>>>>> wrote: > >>>>>>>>>> > >>>>>>>>>> Any workarounds in the meantime? This must affect a lot of > >>>>>>>>>> people, including those who use 12-: > >>>>>>>>>> > >>>>>>>>>> pkg: wrong architecture: FreeBSD:12.0:amd64 instead of > >>>>>>>>>> FreeBSD:12:amd64 > >>>>>>>>>> pkg: repository FreeBSD contains packages with wrong ABI: > >>>>>>>>>> FreeBSD:12.0:amd64 > >>>>>>>>> > >>>>>>>>> Still broken for me on 12.1. > >>>>>>>> > >>>>>>>> Strange. Mine cleared up automatically the following day. > >>>>>>>> > >>>>>>>> It's also strange how few replies I have received. Two private > >>>>>>>> messages (why?), yours, and that was it. You'd think that peopl= e > >>>>>>>> would be screaming. > >>>>>>>> > >>>>>>>> Greg > >>>>>>> > >>>>>>> > >>>>>>> I'm not screaming because I'm settling with the situation and > >>>>>>> starting to make workarounds. > >>>>>>> And wondering where the official communication of the community i= s. > >>>>>>> Nothing about this situation on www.freebsd.org. All information > >>>>>>> about the situation seems scattered through the mailinglists. > >>>>>>> > >>>>>>> Things are working for me on 13-CURRENT again, but still broken o= n > >>>>>>> 12.1-RELEASE. See attachment. > >>>>>>> > >>>>>>> Ronald. > >>>>>>> _______________________________________________ > >>>>>>> freebsd-current@freebsd.org mailing list > >>>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current > >>>>>>> To unsubscribe, send any mail to > >>>>>>> "freebsd-current-unsubscribe@freebsd.org" > >>>>>> > >>>>>> > >>>>>> Did you try: > >>>>>> pkg update -f > >>>>>> > >>>>>> > >>>>>> I installed 12.1 on a new laptop yesterday, I have not experienced > >>>>>> issues with pkg. > >>>>>> > >>>>> > >>>>> This was only an issue on the "latest" branch. If you don't alter > >>>>> "/etc/pkg/FreeBSD.conf", you'll get packages from the "quarterly" > >>>>> branch, which fortunately wasn't affected. > >>>> > >>>> Any idea what is wrong on a stable/12 machine: > >>>> > >>>> tuexen@stable12:~ % sudo pkg update > >>>> Password: > >>>> Updating FreeBSD repository catalogue... > >>>> pkg: repository meta has wrong version 2 > >>>> pkg: Repository FreeBSD load error: meta cannot be loaded No error: = 0 > >>>> Fetching meta.txz: 100% 916 B 0.9kB/s 00:01 > >>>> pkg: repository meta has wrong version 2 > >>>> repository FreeBSD has no meta file, using default settings > >>>> Fetching packagesite.txz: 100% 6 MiB 586.4kB/s 00:11 > >>>> pkg: repository meta has wrong version 2 > >>>> pkg: Repository FreeBSD load error: meta cannot be loaded No error: = 0 > >>>> Unable to open created repository FreeBSD > >>>> Unable to update repository FreeBSD > >>>> Error updating repositories! > >>>> tuexen@stable12:~ % sudo pkg update -f > >>>> Updating FreeBSD repository catalogue... > >>>> pkg: repository meta has wrong version 2 > >>>> pkg: Repository FreeBSD load error: meta cannot be loaded No error: = 0 > >>>> Fetching meta.txz: 100% 916 B 0.9kB/s 00:01 > >>>> pkg: repository meta has wrong version 2 > >>>> repository FreeBSD has no meta file, using default settings > >>>> Fetching packagesite.txz: 100% 6 MiB 645.0kB/s 00:10 > >>>> pkg: repository meta has wrong version 2 > >>>> pkg: Repository FreeBSD load error: meta cannot be loaded No error: = 0 > >>>> Unable to open created repository FreeBSD > >>>> Unable to update repository FreeBSD > >>>> Error updating repositories! > >>>> tuexen@stable12:~ % sudo pkg upgrade > >>>> Updating FreeBSD repository catalogue... > >>>> pkg: repository meta has wrong version 2 > >>>> pkg: Repository FreeBSD load error: meta cannot be loaded No error: = 0 > >>>> Fetching meta.txz: 100% 916 B 0.9kB/s 00:01 > >>>> pkg: repository meta has wrong version 2 > >>>> repository FreeBSD has no meta file, using default settings > >>>> Fetching packagesite.txz: 100% 6 MiB 586.4kB/s 00:11 > >>>> pkg: repository meta has wrong version 2 > >>>> pkg: Repository FreeBSD load error: meta cannot be loaded No error: = 0 > >>>> Unable to open created repository FreeBSD > >>>> Unable to update repository FreeBSD > >>>> Error updating repositories! > >>>> tuexen@stable12:~ % uname -U > >>>> 1201512 > >>>> tuexen@stable12:~ % uname -K > >>>> 1201512 > >>>> tuexen@stable12:~ % > >>>> > >>> > >>> Can you share > >>> > >>> cat /etc/pkg/FreeBSD.conf > >> Sure: > >> > >> tuexen@stable12:~ % cat /etc/pkg/FreeBSD.conf > >> # $FreeBSD: stable/12/usr.sbin/pkg/FreeBSD.conf.latest 346780 2019-04-= 27 04:00:50Z cperciva $ > >> # > >> # To disable this repository, instead of modifying or removing this fi= le, > >> # create a /usr/local/etc/pkg/repos/FreeBSD.conf file: > >> # > >> # mkdir -p /usr/local/etc/pkg/repos > >> # echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD= .conf > >> # > >> > >> FreeBSD: { > >> url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", > >> mirror_type: "srv", > >> signature_type: "fingerprints", > >> fingerprints: "/usr/share/keys/pkg", > >> enabled: yes > >> } > >> > > > > Could you try to replace pkg.freebsd.org with pkg0.nyi.freebsd.org and = then run =E2=80=9Cpkg -f update=E2=80=9D? > Sure: > > tuexen@stable12:~ % cat /etc/pkg/FreeBSD.conf > # $FreeBSD: stable/12/usr.sbin/pkg/FreeBSD.conf.latest 346780 2019-04-27 = 04:00:50Z cperciva $ > # > # To disable this repository, instead of modifying or removing this file, > # create a /usr/local/etc/pkg/repos/FreeBSD.conf file: > # > # mkdir -p /usr/local/etc/pkg/repos > # echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.co= nf > # > > FreeBSD: { > url: "pkg+http://pkg0.nyi.FreeBSD.org/${ABI}/latest", > mirror_type: "srv", > signature_type: "fingerprints", > fingerprints: "/usr/share/keys/pkg", > enabled: yes > } > tuexen@stable12:~ % sudo pkg -f update > Password: > pkg: illegal option -- f > Updating FreeBSD repository catalogue... > pkg: repository meta has wrong version 2 > pkg: Repository FreeBSD load error: meta cannot be loaded No error: 0 > Fetching meta.txz: 100% 916 B 0.9kB/s 00:01 > pkg: repository meta has wrong version 2 > repository FreeBSD has no meta file, using default settings > Fetching packagesite.txz: 100% 6 MiB 339.5kB/s 00:19 > pkg: repository meta has wrong version 2 > pkg: Repository FreeBSD load error: meta cannot be loaded No error: 0 > Unable to open created repository FreeBSD > Unable to update repository FreeBSD > Error updating repositories! > > > I can also wipe anything out, if that helps. This is my machine for testi= ng > stable12 stuff before MFCing... > > Best regards > Michael > > -m > > > > > >> Best regards > >> Michael > >>> > >>> ? > >>> > >>> > >>> > >>>> Best regards > >>>> Michael > >>>>> > >>>>> Anyway, this has been fixed as of today 13:30 UTC, see > >>>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244549#c43 > >>>>> > >>>>> -m > >>>>> pkg: repository meta has wrong version 2 you pkg too old https://svnweb.freebsd.org/ports?view=3Drevision&revision=3D525794 pkg bootstrap -f pkg update -f