Skip to content

could not upgrade pkg_install after bootstrap has been installed #316

@hotleave

Description

@hotleave

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
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions