Re: Pkg repository is broken...

From: Michael Tuexen <tuexen_at_freebsd.org>
Date: Sat, 7 Mar 2020 22:01:57 +0100
> On 7. Mar 2020, at 21:37, Michael Gmelin <freebsd_at_grem.de> wrote:
> 
> 
> 
>> On 7. Mar 2020, at 19:01, Michael Tuexen <tuexen_at_freebsd.org> wrote:
>> 
>> 
>>> 
>>>> On 7. Mar 2020, at 18:18, Michael Gmelin <freebsd_at_grem.de> wrote:
>>>> 
>>>> 
>>>> 
>>>>> On 7. Mar 2020, at 18:08, Michael Tuexen <tuexen_at_fh-muenster.de> wrote:
>>>> 
>>>> 
>>>>> 
>>>>> On 7. Mar 2020, at 16:46, Michael Gmelin <freebsd_at_grem.de> wrote:
>>>>> 
>>>>> 
>>>>> 
>>>>>> On Sat, 07 Mar 2020 11:30:58 -0400
>>>>>> Waitman Gobble <waitman_at_waitman.net> wrote:
>>>>>> 
>>>>>> On 2020-03-07 05:10, Ronald Klop wrote:
>>>>>>> On Sat, 07 Mar 2020 01:38:55 +0100, Greg 'groggy' Lehey
>>>>>>> <grog_at_freebsd.org> 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 people
>>>>>>>> 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 is.
>>>>>>> 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 on
>>>>>>> 12.1-RELEASE. See attachment.
>>>>>>> 
>>>>>>> Ronald.
>>>>>>> _______________________________________________
>>>>>>> freebsd-current_at_freebsd.org mailing list
>>>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current
>>>>>>> To unsubscribe, send any mail to 
>>>>>>> "freebsd-current-unsubscribe_at_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_at_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_at_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_at_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_at_stable12:~ % uname -U
>>>> 1201512
>>>> tuexen_at_stable12:~ % uname -K
>>>> 1201512
>>>> tuexen_at_stable12:~ % 
>>>> 
>>> 
>>> Can you share
>>> 
>>> cat /etc/pkg/FreeBSD.conf
>> Sure:
>> 
>> tuexen_at_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.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 “pkg -f update”?
Sure:

tuexen_at_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.conf
#

FreeBSD: {
  url: "pkg+http://pkg0.nyi.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
tuexen_at_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 testing
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=244549#c43
>>>>> 
>>>>> -m
>>>>> 
>>>>> -- 
>>>>> Michael Gmelin
>>>>> _______________________________________________
>>>>> freebsd-current_at_freebsd.org mailing list
>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current
>>>>> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>>>> 
>>> 
> 
Received on Sat Mar 07 2020 - 20:02:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:23 UTC