Skip to main content
Topic: cannot resolve zlib=1:1.3.1 (Read 1022 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

cannot resolve zlib=1:1.3.1

Greetings friends, I apologize if this is trivial but I still have lots to learn.

I'm trying to run a system update and I get this message

Code: [Select]
warning: cannot resolve "zlib=1:1.3.1", a dependency of "lib32-zlib"
warning: cannot resolve "zlib=1:1.3.1", a dependency of "lib32-zlib"
:: The following package cannot be upgraded due to unresolvable dependencies:
      lib32-zlib

I tried installing the two packages manually hoping for something to change, it didn't.
I tried looking up the issue and found a reddit thread where it was suggested that multilib-testing was enabled without other testing repos enabled, as far as I know however I have no testing repos enabled, I checked /etc/pacman.conf and searched for testing in the file, found nothing so unless I misunderstand how to find it then the problem might be elsewhere.
Again, lacking experience these were the things I could try, what else could I do?
Oh, I also searched this forum for zlib, but I only found messages from last month at best and the problem didn't show up back then, so I suspect this is unrelated to the threads I found.

Re: cannot resolve zlib=1:1.3.1

Reply #1
<hunch>
Check with
Code: [Select]
 pacman -Qi lib32-zlib
if any package requires lib32-zlib.
If it shows
Code: [Select]
Required By     : None
you can remove lib32-zlib.

If it is required check lib32 is enabled in /etc/pacman.conf
enabled
Code: [Select]
[lib32]
Include = /etc/pacman.d/mirrorlist
not enabled
Code: [Select]
#[lib32]
#Include = /etc/pacman.d/mirrorlist
</hunch>


Re: cannot resolve zlib=1:1.3.1

Reply #2
Hi gripped, thanks for the post.
I checked and it's required by a bunch of things, I tried enabling lib32, followed by a pacman -Syu but it sadly didn't do the trick.

 

Re: cannot resolve zlib=1:1.3.1

Reply #3
That's weird if it wasn't enabled but enabling made no difference.

Can you post the entirety of pacman -Syyu please. Maybe even throw in --debug

Re: cannot resolve zlib=1:1.3.1

Reply #4
I've the same issue...

Code: [Select]
pacman -Qi lib32-zlib
Name            : lib32-zlib
Version         : 1.3-1
Description     : Compression library implementing the deflate compression method found in gzip and PKZIP (32-bit)
Architecture    : x86_64
URL             : https://www.zlib.net/
Licenses        : Zlib
Groups          : None
Provides        : libz.so=1-32
Depends On      : lib32-glibc  zlib=1:1.3
Optional Deps   : None
Required By     : lib32-amdvlk  lib32-cairo  lib32-curl  lib32-freetype2  lib32-glib2  lib32-libcurl-compat  lib32-libcurl-gnutls
                  lib32-libelf  lib32-libpng  lib32-libpng12  lib32-librtmp0  lib32-libssh2  lib32-libtiff  lib32-libtiff4
                  lib32-libunwind  lib32-libxml2  lib32-llvm-libs  lib32-nss  lib32-sdl_image  lib32-vulkan-amdgpu-pro
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 94.54 KiB
Packager        : David Runge <[email protected]>
Build Date      : Sun 20 Aug 2023 09:37:07 AM PDT
Install Date    : Wed 04 Oct 2023 05:44:20 PM PDT
Install Reason  : Installed as a dependency for another package
Install Script  : No

#[lib32]
Include = /etc/pacman.d/mirrorlist

Code: [Select]
$ sudo  pacman -Syyu
:: Synchronizing package databases...
 system                                                263.9 KiB   187 KiB/s 00:01 [###############################################] 100%
 world                                                   5.0 MiB  2.19 MiB/s 00:02 [###############################################] 100%
 galaxy                                                516.6 KiB   318 KiB/s 00:02 [###############################################] 100%
 universe                                             1831.0   B  4.29 KiB/s 00:00 [###############################################] 100%
 omniverse                                              96.1 KiB  69.9 KiB/s 00:01 [###############################################] 100%
 extra                                                   8.3 MiB  6.78 MiB/s 00:01 [###############################################] 100%
 community                                              45.0   B  88.0   B/s 00:01 [###############################################] 100%
 multilib                                              139.7 KiB   185 KiB/s 00:01 [###############################################] 100%
 heftig                                               1952.0   B  3.00 KiB/s 00:01 [###############################################] 100%
:: Starting full system upgrade...
resolving dependencies...
warning: cannot resolve "zlib=1:1.3.1", a dependency of "lib32-zlib"
:: The following package cannot be upgraded due to unresolvable dependencies:
      lib32-zlib

:: Do you want to skip the above package for this upgrade? [y/N]

sudo  pacman -Syyu --debug

https://pastebin.com/ygwpB4ty

Re: cannot resolve zlib=1:1.3.1

Reply #5
@wgjuio

Your post shows that you don't have lib32 (Artix) enabled and do have multiilib (Arch) enabled.

Arch
Code: [Select]
Packager        : David Runge <[email protected]>
That could be the problem? Either way that setup is almost bound to be an issue at some point.

Re: cannot resolve zlib=1:1.3.1

Reply #6
That's weird if it wasn't enabled but enabling made no difference.

Can you post the entirety of pacman -Syyu please. Maybe even throw in --debug


Yes, sorry it took me a while to reply. You know, work and sleep.
Anyhow, output too long so I'll just put it on pastebin https://pastebin.com/PWFqqwUc
I'm a bit of a silly dummy and I forget to update sometimes, I don't think it's the reason in this case though.

Re: cannot resolve zlib=1:1.3.1

Reply #7
Something's off perhaps ?
Code: [Select]
debug: searching for replacements for lib32-zlib in system
debug: searching for replacements for lib32-zlib in world
debug: searching for replacements for lib32-zlib in galaxy
debug: searching for replacements for lib32-zlib in universe
debug: searching for replacements for lib32-zlib in extra
debug: searching for replacements for lib32-zlib in community
debug: searching for replacements for lib32-zlib in multilib

It's looking everywhere except lib32 it seems ?

What happens if you run
Code: [Select]
pacman -Sy lib32/lib32-zlib

Re: cannot resolve zlib=1:1.3.1

Reply #8
Code: [Select]
sudo pacman -Sy lib32/lib32-zlib
[sudo] password for raccoon:
:: Synchronizing package databases...
 system is up to date
 world is up to date
 galaxy is up to date
 universe is up to date
 extra                     8,3 MiB  5,13 MiB/s 00:02 [############################] 100%
 community is up to date
 multilib is up to date
 lib32 is up to date
warning: lib32-zlib-1.3-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) lib32-zlib-1.3-1

Total Download Size:   0,05 MiB
Total Installed Size:  0,09 MiB
Net Upgrade Size:      0,00 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 lib32-zlib-1.3-1-x...    48,3 KiB   119 KiB/s 00:00 [############################] 100%
(1/1) checking keys in keyring                       [############################] 100%
(1/1) checking package integrity                     [############################] 100%
(1/1) loading package files                          [############################] 100%
(1/1) checking for file conflicts                    [############################] 100%
(1/1) checking available disk space                  [############################] 100%
:: Processing package changes...
(1/1) reinstalling lib32-zlib

But after that if I run an update it still gives me the same issue as before.

Re: cannot resolve zlib=1:1.3.1

Reply #9
I should have asked this to begin with. Post both
Code: [Select]
pacman -Qi zlib
and
Code: [Select]
pacman -Qi lib32-zlib

Edit:
I think you'll find you have Arch version of zlib and if you do
Code: [Select]
pacman -S system/zlib
You'll be able to update the system ?

Re: cannot resolve zlib=1:1.3.1

Reply #10
Code: [Select]
pacman -Qi zlib
Name            : zlib
Version         : 1:1.3-2
Description     : Compression library implementing the deflate compression method found
                  in gzip and PKZIP
Architecture    : x86_64
URL             : https://www.zlib.net/
Licenses        : Zlib
Groups          : None
Provides        : libz.so=1-64
Depends On      : glibc
Optional Deps   : None
Required By     : binutils  btrfs-progs  cairo  cfitsio  cracklib  curl  dotnet-runtime
                  exiv2  ffmpeg  ffmpeg4.4  file  freetype2  ghostscript  gimp  git
                  glib2  gnupg  gnutls  gutenprint  imagemagick  kexec-tools  kmod
                  krita  lib32-zlib  libarchive  libcaca  libcups  libelf  libfontenc
                  libgdiplus  libgme  libid3tag  libisofs  libmgba  libmysofa
                  libopenmpt  libpciaccess  libpng  libpng12  libraw  libspng  libssh
                  libssh2  libsynctex  libtiff  libunwind  libxml2  libzip  lld
                  llvm-libs  man-db  mariadb-libs  minizip  minizip-ng  mono  mpv  neon
                  nodejs  nss  openmpi  openpmix  openssh  ostree  pahole  pcre  pcre2
                  poppler  prismlauncher-git  protobuf  python  python-pillow  qpdf
                  qt6-base  qt6-svg  raptor  rsync  rtmpdump  sqlcipher  sqlite  sudo
                  taglib  tcl  thunderbird  util-linux  vim  webkit2gtk  webkit2gtk-4.1
                  webkitgtk-6.0  wxwidgets-common  zstd
Optional For    : mlt
Conflicts With  : None
Replaces        : None
Installed Size  : 339,65 KiB
Packager        : Artix Build Bot <[email protected]>
Build Date      : mer 25 ott 2023, 21:58:51
Install Date    : mar 23 gen 2024, 20:28:54
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

pacman -Qi lib32-zlib
Name            : lib32-zlib
Version         : 1.3-1
Description     : Compression library implementing the deflate compression method found
                  in gzip and PKZIP (32-bit)
Architecture    : x86_64
URL             : https://www.zlib.net/
Licenses        : Zlib
Groups          : None
Provides        : libz.so=1-32
Depends On      : lib32-glibc  zlib=1:1.3
Optional Deps   : None
Required By     : lib32-cairo  lib32-curl  lib32-freetype2  lib32-glib2  lib32-libelf
                  lib32-libpng  lib32-libssh2  lib32-libtiff  lib32-libunwind
                  lib32-libxml2  lib32-llvm-libs  lib32-nss
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 94,46 KiB
Packager        : Artix Build Bot <[email protected]>
Build Date      : lun 21 ago 2023, 02:03:26
Install Date    : mer 24 gen 2024, 17:44:12
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Code: [Select]
pacman -S system/zlib
I did update the system before using this but without the package causing issues.
As of now, that package is still being a problem.

Re: cannot resolve zlib=1:1.3.1

Reply #11
I think if you just wait it will resolve itself
The versions of the built packages on the mirrors are behind the versions of the build files on https://gitea.artixlinux.org/explore/repos
1.3 vs 1.3.1
Finger crossed and sorry for the wild goose chase

Re: cannot resolve zlib=1:1.3.1

Reply #12
Hey no need to apologize, you tried to help, I'm grateful for that :)

Re: cannot resolve zlib=1:1.3.1

Reply #13
@wgjuio

Your post shows that you don't have lib32 (Artix) enabled and do have multiilib (Arch) enabled.

Arch
Code: [Select]
Packager        : David Runge <[email protected]>
That could be the problem? Either way that setup is almost bound to be an issue at some point.

Thanks I figured out my issue. I had:

Code: [Select]
#[lib32]
Include = /etc/pacman.d/mirrorlist

I uncommented [lib32]


Code: [Select]
[lib32]
Include = /etc/pacman.d/mirrorlist

Now I have to figure this out:
Code: [Select]
sudo pacman -Syyu
:: Synchronizing package databases...
 system                                                263.8 KiB   187 KiB/s 00:01 [################################################] 100%
 world                                                   5.0 MiB  2.17 MiB/s 00:02 [################################################] 100%
 galaxy                                                516.6 KiB   321 KiB/s 00:02 [################################################] 100%
 lib32                                                 173.8 KiB   134 KiB/s 00:01 [################################################] 100%
 universe                                             1831.0   B  5.32 KiB/s 00:00 [################################################] 100%
 omniverse                                              96.1 KiB  78.0 KiB/s 00:01 [################################################] 100%
 extra                                                   8.3 MiB  7.81 MiB/s 00:01 [################################################] 100%
 community                                              45.0   B   133   B/s 00:00 [################################################] 100%
 multilib                                              139.7 KiB   236 KiB/s 00:01 [################################################] 100%
 heftig                                               1952.0   B  3.07 KiB/s 00:01 [################################################] 100%
:: Starting full system upgrade...
warning: lib32-glib2: local (2.78.4-1) is newer than lib32 (2.78.3-1)
warning: lib32-libpulse: local (17.0-1) is newer than lib32 (16.1-6)
warning: lib32-nss: local (3.97-1) is newer than lib32 (3.96.1-1)
warning: lib32-pam: local (1.6.0-1) is newer than lib32 (1.5.3-1)
 there is nothing to do

Ok I figured it out. Needed to install lib32-artix-archlinux-support and then one by one install those packages from pacman which took over the paru AUR installations

Re: cannot resolve zlib=1:1.3.1

Reply #14
I would try
Clearing the package cache
Code: [Select]
 pacman -Scc
Refreshing the databases
Code: [Select]
pacman -Syy
(re)Installing specifying lib32
Code: [Select]
pacman -S lib32/lib32-glib2  lib32/lib32-libpulse lib32/lib32-nss lib32/lib32-pam lib32/lib32-udev lib32/lib32-dbus

Check it looks sane before you click yes and I offer no warranty ;)