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rpuoGuWj+s7LaLodyCZSDWsZ6gQiF7sj2kjf+oLBep1r8Fkmhw7
ReBRfFyNqtcJG08TJA1f2KHLsNgwrduHQx9tocPKTQKTpPbb/7p+yr4HylkDAYA6
rk7eEX5NtoDeML6LR8LbSYgQYVgtq2NQuagM1p1dEs6utLJb4Vcy1JpJ9xn9LUfy
cyW7J3wnF9m/H+3nBiIt8t+02HeHT/kJZoxg6zttK7Q2F+5IXkPBjnmqfCrf/fTq
lo+VtMALDMYIlb0g4XkBiPkUjpWJ73ZG
=qnEZ
-----END PGP PUBLIC KEY BLOCK-----
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

No comments:

Post a Comment