Repository navigation
Closed
Description
Install bootstrap package from https://pkgsrc.joyent.com/install-on-osx/#bigsur-arm64-install
today when I run "pkgin ug", it reminds me have 3 package to upgrade, here is the console output
calculating dependencies...done.
3 packages to upgrade:
pkg_install-20211021 pkgin-21.10.1 mozilla-rootcerts-1.0.20210916
0 to refresh, 3 to upgrade, 0 to install
7417K to download, 124K to install
proceed ? [Y/n]
pkgin-21.10.1.tgz 100% 74KB 73.7KB/s 00:01
pkg_install-20211021.tgz 100% 6761KB 225.4KB/s 00:30
mozilla-rootcerts-1.0.20210916.tgz 100% 583KB 145.7KB/s 00:04
upgrading pkg_install-20211021...
upgrading pkgin-21.10.1...
upgrading mozilla-rootcerts-1.0.20210916...
pkg_install warnings: 0, errors: 1
pkg_install error log can be found in /var/db/pkgin/pkg_install-err.log
reading local summary...
processing local summary...
And here is the error log
---Nov 24 07:59:30: upgrading pkg_install-20211021...
pkg_delete: post-deinstall script returned error status
pkg_add: command failed: /opt/pkg/sbin/pkg_delete -K /opt/pkg/.pkgdb -p /opt/pkg pkg_install-20210410
pkg_add: 1 package addition failed
---Nov 24 07:59:30: upgrading pkgin-21.10.1...
---Nov 24 07:59:30: upgrading mozilla-rootcerts-1.0.20210916...
sh: /opt/pkg/sbin/pkg_admin: No such file or directory
sh: /opt/pkg/sbin/pkg_info: No such file or directory
It seems that pkgin delete pkg_admin and pkg_info when remove the old pkg_install package, and it need it to install the new one. Here is the content of directory /opt/pkg/sbin
-rwxr-xr-x 1 root wheel 62K Nov 1 20:43 escapesrc
-rwxr-xr-x 1 root wheel 50K Nov 1 20:43 genccode
-rwxr-xr-x 1 root wheel 50K Nov 1 20:43 gencmn
-rwxr-xr-x 1 root wheel 104K Nov 1 20:43 gennorm2
-rwxr-xr-x 1 root wheel 53K Nov 1 20:43 gensprep
-rwxr-xr-x 1 root wheel 1.8K Jul 14 20:11 groupadd
-rwxr-xr-x 1 root wheel 397 Jul 14 20:11 groupdel
-rwxr-xr-x 1 root wheel 52K Nov 1 20:43 icupkg
-rwxr-xr-x 1 root wheel 5.7K Jul 14 20:36 mozilla-rootcerts
-rwxr-xr-x 1 root wheel 1.2M Nov 17 01:49 nginx
-rwxr-xr-x 1 root wheel 21K Jul 15 06:42 pkg_alternatives
-rwxr-xr-x 1 root wheel 52K Nov 1 19:51 pluginviewer
-rwxr-xr-x 1 root wheel 51K Nov 1 19:51 sasldblistusers2
-rwxr-xr-x 1 root wheel 52K Nov 1 19:51 saslpasswd2
-rwxr-xr-x 1 root wheel 3.2K Jul 14 20:11 useradd
-rwxr-xr-x 1 root wheel 390 Jul 14 20:11 userdel
There is no pkg_admin and pkg_info any more.
All I have to do is reinstall the bootstrap package.
Metadata
Metadata
Assignees
Labels
No labels
Activity
jperkin commentedon Nov 24, 2021
Yes, sorry, Apple broken
vfork()in Monterey which causes the pkg_install upgrade to fail and leave the system in a broken state.You'll need to follow the workaround instructions that I sent out here: https://mail-index.netbsd.org/pkgsrc-users/2021/11/08/msg034705.html
That should hopefully get you going again. Once you've moved past the breakage there shouldn't be any issues. Sorry about this, unfortunately there was nothing we could do about it.
hotleave commentedon Nov 24, 2021
Thank you very much. I had upgraded pkg_install following by the instruction.
cad/libredwg: Update to 0.12.3
(devel/R-cli) Updated 2.5.0 to 3.2.0
Update to 0.4.20
hs-vector: update to 0.13.0.0.
www/ruby-rack-test: update to 2.1.0
games/alephone: update to alephone-20230119 (1.6.1)
sysutils/ruby-puppet-resource_api: update to 1.9.0
less: Update to 643
devel/git-cliff: update to 1.4.0
audio/spotify-player: update to 0.16.1
sysutils/yazi: update to 0.2.0
35 remaining items
textproc/inlyne: update to 0.5.0
ups-nut*: Update to 2.8.3
www/ruby-sass-embedded: update to 1.90.0
textproc/rumdl: update to 0.0.224
sysutils/upower: update to 1.91.2
audio/spotify-qt: update to 4.0.4
sysutils/upower: update to 1.91.2
audio/spotify-qt: update to 4.0.4
adwaita-icon-theme: update to 50.0.
www/litehtml: Update v0.10
py-cares: update to 5.1.0.
py-cares: update to 5.1.0.
games/chess-tui: update to 2.8.0
uriparser: update to 1.0.3.
misc/rozi: update to 0.0.45