pkg update breaks pkg system
Jordan Geoghegan
jordan at geoghegan.ca
Thu Jan 7 18:12:22 PST 2021
I'm still experiencing the same issue as before:
# pkg install tmux
Updating Avalon repository catalogue...
Fetching meta.conf: 100% 246 B 0.3kB/s 00:01
Fetching packagesite.txz: 100% 6 MiB 3.2MB/s 00:02
Processing entries: 100%
Avalon repository update completed. 31761 packages processed.
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.6 -> 1.16.1 [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.16.1.txz: 100% 3 MiB 2.9MB/s 00:01
Checking integrity... done (0 conflicting)
[1/1] Upgrading pkg from 1.14.6 to 1.16.1...
[1/1] Extracting pkg-1.16.1: 100%
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
pkg: No packages available to install matching 'tmux' have been found in the repositories
Not sure what to do here, I mostly just use Dragonfly for testing code portability and for tinkering, so I'm by no means an expert with the package system.
Regards,
Jordan
On 1/6/21 10:24 PM, Predrag Punosevac wrote:
> Just a cautionary tale for people who actually run important stuff of
> DragonFly BSD servers like me.
>
> pkg update appears still to be broken. Lua issue
>
> dfly# uname -a
> DragonFly dfly.int.bagdala2.net 5.8-RELEASE DragonFly v5.8.3-RELEASE
> #29: Sun Sep 27 17:37:43 EDT 2020
> root at dfly.int.bagdala2.net:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64
>
> dfly# openssl version
> LibreSSL 2.9.1
>
> dfly# pkg info openssl
> pkg: No package(s) matching openssl
>
> dfly# pkg which /usr/bin/openssl
> /usr/bin/openssl was not found in the database
>
> dfly# pkg info libressl
> libressl-3.2.3
>
> dfly# pkg info pkg
> pkg-1.16.1
>
>
> So yes I was able to upgrade pkg to 1.16.1 however due to the Lua error
> I stayed without working pkg tool. The fix was "easy"
>
> root at ........# cp /usr/local/etc/pkg/repos/df-latest.conf.sample
> /usr/local/etc/pkg/repos/df-latest.conf
>
> per https://marc.info/?l=dragonfly-users&m=160949600225110&w=2
>
> however now I am stuck with broken server
>
> http://www.bagdala2.net/cdynsys/
>
> That garbage you guys see is due to the PHP 7.2 to PHP 7.4 upgrade. I
> think PHP 7.4 issue is fixed by PmWiki upstream but the version of
> PmWiki used by dports doesn't work with PHP 7.4. I was expected that the
> potential issues would be taken care of by FreeBSD PmWiki maintainer but
> apparently not.
>
> Is there way to downgrade PHP to 7.3 until the issue is fixed or should
> I go for a manual upgrade of PmWiki?
>
> I would appreciate any ideas at this point.
>
> Cheers,
> Predrag
More information about the Users
mailing list