pkg update breaks pkg system

Jávorszky Balázs javorszky.balazs at gmail.com
Fri Jan 1 02:13:10 PST 2021


I think I have the same and I could fix it in a very simple way.

System (well, this is as reported today, after the update I did
yesterday, `sensitive` information is replaced by dots :) ):

root at ........# uname -a
DragonFly ........ 5.8-RELEASE DragonFly v5.8.3-RELEASE #1: Fri Sep 25
10:24:38 CEST 2020    
root at ........:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64
root at ........# openssl version
LibreSSL 2.9.1

I did a basic update-upgrade (yesterday):

root at ........# pkg update
Updating Avalon repository catalogue...
Fetching meta.conf: 100%    246 B   0.3kB/s    00:01   
Fetching packagesite.txz: 100%    6 MiB 337.4kB/s    00:19   
Processing entries: 100%
Avalon repository update completed. 31761 packages processed.
All repositories are up to date.
root at ........# pkg upgrade
Updating Avalon repository catalogue...
Avalon repository is up to date.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        pkg: 1.14.7 -> 1.15.10 [Avalon]

Number of packages to be upgraded: 1

3 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching pkg-1.15.10.txz: 100%    3 MiB 292.1kB/s    00:10   
Checking integrity... done (0 conflicting)
[1/1] Upgrading pkg from 1.14.7 to 1.15.10...
[1/1] Extracting pkg-1.15.10: 100%
pkg: Failed to execute lua script: [string "args = {}..."]:11: attempt
to call a nil value (field 'stat')
pkg: lua script failed
No active remote repositories configured.
root at ........# pkg update
No active remote repositories configured.

I checked /usr/local/etc/pkg/repos, the only file was
/usr/local/etc/pkg/repos/df-latest.conf.sample, furthermore in
/var/cache/pkg/pkg* I could check that this file was unchanged from
version 1.14.7 to 1.15.10 so I did the following:

root at ........# cp /usr/local/etc/pkg/repos/df-latest.conf.sample
/usr/local/etc/pkg/repos/df-latest.conf

And voilá, pkg started to work, at least I think it does, so I could do
pkg upgrade.

Two further notes.

I don't understand the following, while I think it's the expected
behaviour. FYI libressl's version was 3.1.x before:

root at ........# openssl version
LibreSSL 2.9.1
root at ........# pkg info openssl
pkg: No package(s) matching openssl
root at ........# pkg which /usr/bin/openssl
/usr/bin/openssl was not found in the database
root at ........# pkg info libressl
libressl-3.2.3

And during upgrade, postgresql12-client (a package I don't have a clue
why it has been installed :) ) reported a clash but unfortunately I
didn't copy it.

root at gnifanip /u/l/e/p/repos# pkg info postgresql12-client
postgresql12-client-12.4

Regards,

Balazs

On 1/1/21 5:48 AM, Tim Darby wrote:

> I'm just getting the lua error.
>
> On Thu, Dec 31, 2020 at 5:26 PM Antonio Huete Jiménez
> <tuxillo at quantumachine.net <mailto:tuxillo at quantumachine.net>> wrote:
>
>     Hi Tim,
>
>     What is the error you're getting? Only the lua one?
>
>     Regards,
>     Antonio Huete
>
>     Quoting Tim Darby <t at timdarby.net <mailto:t at timdarby.net>>:
>
>     > Hi Antonio, same thing here. Here's my report:
>     >
>     > ~$ uname -a
>     >                                      boojum
>     > DragonFly boojum.timdarby.com <http://boojum.timdarby.com>
>     5.9-DEVELOPMENT DragonFly
>     > v5.9.0.1183.g96012-DEVELOPMENT #45: Sun Dec 20 23:27:28 UTC 2020
>     > root at boojum.timdarby.com:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64
>     > ~$ openssl version
>     >                                       boojum
>     > LibreSSL 3.2.3
>     >
>     > On Thu, Dec 31, 2020 at 3:21 PM Nelson H. F. Beebe
>     <beebe at math.utah.edu <mailto:beebe at math.utah.edu>>
>     > wrote:
>     >
>     >> >> Antonio Huete =?utf-8?b?Smltw6luZXo=?=
>     <tuxillo at quantumachine.net <mailto:tuxillo at quantumachine.net>>
>     >> >> writes on Thu, 31 Dec 2020 20:39:07 +0000 in my posting about a
>     >> >> broken package system:
>     >> >>
>     >> >> What's the output of?
>     >> >> uname -a
>     >> >> openssl version
>     >>
>     >> They report:
>     >>
>     >>         DragonFly dragonflybsd59.vm.math.utah.edu
>     <http://dragonflybsd59.vm.math.utah.edu> 5.9-DEVELOPMENT
>     >> DragonFly 5.9-DEVELOPMENT #0: Wed Feb
>     >> 26 11:22:49 UTC 2020     
>     >> root at pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC
>     >> x86_64
>     >>
>     >>         LibreSSL 2.9.1
>     >>
>     >>
>     >>
>     -------------------------------------------------------------------------------
>     >> - Nelson H. F. Beebe                    Tel: +1 801 581 5254
>     >>     -
>     >> - University of Utah                    FAX: +1 801 581 4148
>     >>     -
>     >> - Department of Mathematics, 110 LCB    Internet e-mail:
>     >> beebe at math.utah.edu <mailto:beebe at math.utah.edu>  -
>     >> - 155 S 1400 E RM 233                       beebe at acm.org
>     <mailto:beebe at acm.org>
>     >> beebe at computer.org <mailto:beebe at computer.org> -
>     >> - Salt Lake City, UT 84112-0090, USA    URL:
>     >> http://www.math.utah.edu/~beebe/ -
>     >>
>     >>
>     -------------------------------------------------------------------------------
>     >>
>     >>
>     >>
>     >>
>     -------------------------------------------------------------------------------
>     >> - Nelson H. F. Beebe                    Tel: +1 801 581 5254
>     >>     -
>     >> - University of Utah                    FAX: +1 801 581 4148
>     >>     -
>     >> - Department of Mathematics, 110 LCB    Internet e-mail:
>     >> beebe at math.utah.edu <mailto:beebe at math.utah.edu>  -
>     >> - 155 S 1400 E RM 233                       beebe at acm.org
>     <mailto:beebe at acm.org>
>     >> beebe at computer.org <mailto:beebe at computer.org> -
>     >> - Salt Lake City, UT 84112-0090, USA    URL:
>     >> http://www.math.utah.edu/~beebe/ -
>     >>
>     >>
>     -------------------------------------------------------------------------------
>     >>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20210101/3362849e/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xC6991810B203B247.asc
Type: application/pgp-keys
Size: 949 bytes
Desc: not available
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20210101/3362849e/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20210101/3362849e/attachment-0007.bin>


More information about the Users mailing list