Pkg update breaks the system

Martin Ivanov marto1980 at gmail.com
Thu Apr 18 00:26:21 PDT 2024


Hello,
thanks to Aaron LI, who was very helpful in the IRC channel, I was sable to solve the problem. It turned out to be an expired SSL certificate. The solution was to temporarily switch to the Wolfhound HTTP repository in df-latest.conf, pkg update && pkg install ca_root_nss. After that I was able to switch back to the default Avalon repository. There was also a suggestion to use the Dragonfly AUTO repository:
AUTO: {
	url: https://pkg.dragonflybsd.org/pkg/${ABI}/LATEST <https://pkg.dragonflybsd.org/pkg/$%7BABI%7D/LATEST>
	mirror_type: HTTP
}

To me it is still unclear why in the first place that problem at all occurred. Is it maybe that my Internet Service Provider (ISP) had an expired certificate?

Best regards,
Martin

> On 15 Apr 2024, at 7:17, Martin Ivanov <marto1980 at gmail.com> wrote:
> 
> Hello,
> I installed the latest dragonfly release version. All went well until I tried to install some packages with pkg. pkg told me that it had to update itself first from version 1.14.4 to 1.20.9. On doing that it said: 
> 
> pkg: Failed to execute lua script: [string "-- args: etc/pkg.conf.sample..."]: 12: attempt to call a nil value (field 'stat')
> pkg: lua script failed
> Updating Avalon repository catalogue...
> pkg: An error occurred while fetching package
> repository Avalon has no meta file, using default settings.
> 
> On seeing that , I went to /usr/local/etc and copied pkg.conf.sample to pkg.conf. Then I ran pkg update again and I got: 
> 
> Updating Avalon repository catalogue...
> pkg: An error occurred while fetching package
> repository Avalon has no meta file, using default settings
> 
> I saw a similar thread here where the solution was to go to /usr/local/etc/pkg/repos and copy df-latest.conf.sample to df-latest.conf. Unfortunately doing that made no difference for me.
> 
> I saw the Internet is full of posts about this problem with the freebsd pkg. Unfortunately the solutions there are freebsd specific. Anyway it seems that the 1.20.9 version of pkg is broken. 
> 
> Is there a way out of this?
> 
> Any suggestions will be appreciated.
> 
> Best regards,
> 
> Martin
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20240418/e740fe5c/attachment.htm>


More information about the Users mailing list