Sunday, May 03, 2020

Re: pkg_add can't resolve package - bad major

On Sun, May 03, 2020 at 01:07:40PM +0000, katzeilla wrote:
> Hi everyone,
>
> I am using OpenBSD 6.6 and I noticed that pkg_add can't install any new
> package:
>
> $ doas pkg_add emacs-26.3-no_x11
>
> quirks-3.185 signed on 2020-04-30T09:14:52Z
> Can't install libxml-2.9.9 because of libraries
> |library iconv.7.0 not found
> | /usr/local/lib/libiconv.so.6.0 (libiconv-1.14p3): bad major
> Direct dependencies for libxml-2.9.9 resolve to xz-5.2.4 libiconv-1.14p3
> Full dependency tree is libiconv-1.14p3 xz-5.2.4
> Can't install emacs-26.3-no_x11: can't resolve libxml-2.9.9
> Couldn't install emacs-26.3-no_x11 libxml-2.9.9
>
> AFAIK, I am now in a dependency hell, so I tried pkg_check, but it told
> me everything is fine.
>
> $ doas pkg_check -vvvvvv
> Packing-list sanity: ok
> Direct dependencies: ok
> Reverse dependencies: ok
> Files from packages: ok
>
> Sometimes, pkg_add will try to "merge" older version of package to its
> newer version, but this doesn't work:
>
> gettext-0.19.8.1p3->gettext-runtime-0.20.1p0 forward dependencies:
> | Dependencies of git-2.21.0 on gettext-* don't match
> | Dependencies of glib2-2.58.3p8 on gettext-* don't match
> | Dependencies of rspamd-1.9.0 on gettext-* don't match
> | Dependencies of libksba-1.3.5p1 on gettext-* don't match
> | Dependencies of libgpg-error-1.36 on gettext-* don't match
> | Dependencies of python-2.7.16 on gettext-* don't match
> | Dependencies of vim-8.1.1048-no_x11 on gettext-* don't match
> | Dependencies of p11-kit-0.23.15p0 on gettext-* don't match
> | Dependencies of gnupg-2.2.12 on gettext-* don't match
> | Dependencies of python-3.6.8p0 on gettext-* don't match
> Merging git-2.21.0->2.24.2 (ok)
> Merging glib2-2.58.3p8->2.60.7p0 (ok)
> Merging rspamd-1.9.0->1.9.4 (ok)
> Merging libksba-1.3.5p1->1.3.5p2 (ok)
> Merging libgpg-error-1.36->1.36p0 (ok)
> Merging python-2.7.16->2.7.16p1 (ok)
> Merging vim-8.1.1048-no_x11->8.1.2061-no_x11 (ok)
> Merging p11-kit-0.23.15p0->0.23.18.1 (ok)
> Merging gnupg-2.2.12->2.2.12p0 (ok)
> Merging python-3.6.8p0->3.6.9 (ok)
> Detected loop, merging sets ok
> |
> gettext-0.19.8.1p3+git-2.21.0+glib2-2.58.3p8+gnupg-2.2.12+libgpg-error-1.36+libksba-1.3.5p1+p11-kit-0.23.15p0+python-2.7.16+python-3.6.8p0+rspamd-1.9.0+vim-8.1.1048-no_x11->gettext-runtime-0.20.1p0+git-2.24.2+glib2-2.60.7p0+gnupg-2.2.12p0+libgpg-error-1.36p0+libksba-1.3.5p2+p11-kit-0.23.18.1+python-2.7.16p1+python-3.6.9+rspamd-1.9.4+vim-8.1.2061-no_x11
> Detected loop, merging sets ok
> |
> gettext-0.19.8.1p3+git-2.21.0+glib2-2.58.3p8+gnupg-2.2.12+libgpg-error-1.36+libksba-1.3.5p1+p11-kit-0.23.15p0+python-2.7.16+python-3.6.8p0+rspamd-1.9.0+vim-8.1.1048-no_x11->gettext-runtime-0.20.1p0+git-2.24.2+glib2-2.60.7p0+gnupg-2.2.12p0+libgpg-error-1.36p0+libksba-1.3.5p2+p11-kit-0.23.18.1+python-2.7.16p1+python-3.6.9+rspamd-1.9.4+vim-8.1.2061-no_x11
> | python-3.7.4
> Can't install p11-kit-0.23.18.1 because of libraries
> |library iconv.7.0 not found
> | /usr/local/lib/libiconv.so.6.0 (libiconv-1.14p3): bad major
> |library tasn1.4.1 not found
> | /usr/local/lib/libtasn1.so.4.0 (libtasn1-4.13p0): minor is too small
> |library sqlite3.37.7 not found
> | /usr/local/lib/libsqlite3.so.37.5 (sqlite3-3.27.2p0): minor is too small
> |library curl.26.0 not found
> | /usr/local/lib/libcurl.so.25.21 (curl-7.64.1): bad major
> |library nghttp2.0.15 not found
> | /usr/local/lib/libnghttp2.so.0.14 (nghttp2-1.37.0): minor is too small
> |library icudata.15.0 not found
> | /usr/local/lib/libicudata.so.14.0 (icu4c-63.1): bad major
> |library icui18n.15.0 not found
> | /usr/local/lib/libicui18n.so.14.0 (icu4c-63.1): bad major
> |library icuuc.15.0 not found
> | /usr/local/lib/libicuuc.so.14.0 (icu4c-63.1): bad major
> |library lapack.7.1 not found
> | /usr/local/lib/liblapack.so.6.0 (lapack-3.7.1p0): bad major
> |library gnutls.46.3 not found
> | /usr/local/lib/libgnutls.so.46.0 (gnutls-3.6.7): minor is too small
> Direct dependencies for
> gettext-0.19.8.1p3+git-2.21.0+glib2-2.58.3p8+gnupg-2.2.12+libgpg-error-1.36+libksba-1.3.5p1+p11-kit-0.23.15p0+python-2.7.16+python-3.6.8p0+rspamd-1.9.0+vim-8.1.1048-no_x11->gettext-runtime-0.20.1p0+git-2.24.2+glib2-2.60.7p0+gnupg-2.2.12p0+libgpg-error-1.36p0+libksba-1.3.5p2+p11-kit-0.23.18.1+python-2.7.16p1+python-3.6.9+python-3.7.4+rspamd-1.9.4+vim-8.1.2061-no_x11
> resolve to libtasn1-4.13p0 libmagic-5.35 pcre-8.41p2 libiconv-1.14p3
> icu4c-63.1 bzip2-1.0.6p9 luajit-2.0.5p1 lapack-3.7.1p0 cvsps-2.1p2
> libffi-3.2.1p5 libgpg-error-1.36p0 libgcrypt-1.8.4p0 libusb1-1.0.21p1
> p5-Error-0.17025 glib2-2.60.7p0 libksba-1.3.5p2 npth-1.6 gnutls-3.6.7
> curl-7.64.1 pinentry-1.1.0p0 gettext-runtime-0.20.1p0 libassuan-2.5.1p0
> python-3.7.4 xz-5.2.4 sqlite3-3.27.2p0
> Full dependency tree is libnettle-3.4.1p0 python-3.7.4 libassuan-2.5.1p0
> p11-kit-0.23.18.1 nghttp2-1.37.0 sqlite3-3.27.2p0 xz-5.2.4 npth-1.6
> libidn2-2.0.0p0 gmp-6.1.2p3 curl-7.64.1 pinentry-1.1.0p0
> libunbound-1.9.1 gnutls-3.6.7 blas-3.7.1p0 gettext-runtime-0.20.1p0
> libsecret-0.18.8p0 libgcrypt-1.8.4p0 libgpg-error-1.36p0
> libusb1-1.0.21p1 lua-5.1.5p6 p5-Error-0.17025 glib2-2.60.7p0
> libksba-1.3.5p2 gcc-libs-4.9.4p18 libiconv-1.14p3 pcre-8.41p2
> libmagic-5.35 libtasn1-4.13p0 bzip2-1.0.6p9 icu4c-63.1 lapack-3.7.1p0
> luajit-2.0.5p1 libffi-3.2.1p5 cvsps-2.1p2 libunistring-0.9.7
> Can't install w3m-0.5.3p8: can't resolve gettext-runtime-0.20.1p0
> Couldn't find updates for gettext-0.19.8.1p3 git-2.21.0 glib2-2.58.3p8
> gnupg-2.2.12 libgpg-error-1.36 libksba-1.3.5p1 p11-kit-0.23.15p0
> python-2.7.16 python-3.6.8p0 rspamd-1.9.0 vim-8.1.1048-no_x11
> Couldn't install gettext-runtime-0.20.1p0 git-2.24.2 glib2-2.60.7p0
> gnupg-2.2.12p0 libgpg-error-1.36p0 libksba-1.3.5p2 p11-kit-0.23.18.1
> python-2.7.16p1 python-3.6.9 python-3.7.4 rspamd-1.9.4
> vim-8.1.2061-no_x11 w3m-0.5.3p8
>
> At this stage, I am not sure what should I do to fix this, any idea?
>
> Installed package:
> dkimproxy-1.4.1p1   SMTP proxy to verify or add DKIM signatures
> dovecot-2.3.5.1     compact IMAP/POP3 server
> dovecot-pigeonhole-0.5.5v0 Sieve mail filtering for Dovecot
> git-2.21.0          GIT - Tree History Storage Tool
> gnupg-2.2.12        GNU privacy guard - a free PGP replacement
> htop-2.2.0p8        interactive process viewer
> intel-firmware-20190918v0 microcode update binaries for Intel CPUs
> mosh-1.3.2p2        mobile shell
> opensmtpd-extras-6.4.0v0 extras for smtpd
> quirks-3.185        exceptions to pkg_add rules
> rspamd-1.9.0        event-driven spam filtering system in C/Lua
> vim-8.1.1048-no_x11 vi clone, many additional features
>
> $ cat
> /etc/installurl                                                                        
>
> https://cdn.openbsd.org/pub/OpenBSD

I have had this exact same problem before

pkg_info -q > packages_installed
pkg_delete gettext.
pkg_add gettext-runtime
pkg_add -u
pkg_add -zl packages_installed

The gettext changeover always screwed up my pkg_add -u
pkg_delete gettext will uninstall quite a few packages
That will get fixed by using the packages_installed file.
Read man pkg_add first, of course.

Chris Bennett

No comments:

Post a Comment