Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79960 - [nix] Update fails because libraries can not be resolved

Attached to Project: Arch Linux
Opened by Sandro (sandroid) - Saturday, 14 October 2023, 16:38 GMT
Last edited by Jan Alexander Steffens (heftig) - Monday, 16 October 2023, 09:06 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Caleb Maclennan (alerque)
George Rawlinson (rawlinsong)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 32
Private No

Details

Description:

When trying to update or (re-)reinstall nix with pacman, the operation fails with the following message:

warning: cannot resolve "libeditline.so=1-64", a dependency of "nix"
warning: cannot resolve "libcpuid.so=16-64", a dependency of "nix"
warning: cannot resolve "liblowdown.so=3-64", a dependency of "nix"
warning: cannot resolve "libsodium.so=26-64", a dependency of "nix"
:: The following package cannot be upgraded due to unresolvable dependencies:
nix

:: Do you want to skip the above package for this upgrade? [y/N] N
error: failed to prepare transaction (could not satisfy dependencies)
:: unable to satisfy dependency 'libeditline.so=1-64' required by nix
:: unable to satisfy dependency 'libcpuid.so=16-64' required by nix
:: unable to satisfy dependency 'liblowdown.so=3-64' required by nix
:: unable to satisfy dependency 'libsodium.so=26-64' required by nix

Additional info:

* Probably related to the changes in https://gitlab.archlinux.org/archlinux/packaging/packages/nix/-/commit/969f4acf5d793e4847933ac5c3d3f4cc86e251e6


Steps to reproduce:

* pacman -Syu
* pacman -Syyu
* pacman -S nix
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Monday, 16 October 2023, 09:06 GMT
Reason for closing:  Fixed
Additional comments about closing:  soprovides added to editline, libcpuid, libsodium, lowdown
Comment by Dmitriy Nikiforov (foxpro) - Monday, 16 October 2023, 07:21 GMT
How can we fix that? My work is blocked due to this issue for two days. Rolling back Nix to version 2.17.0-4 doesn't help, error remains same.
Comment by Dawid Janczak (Gat) - Monday, 16 October 2023, 07:33 GMT
2.17.0-5 works just fine for me. I did have to downgrade libsodium as well, but that was giving me a different error message.
Comment by Earthworm (Earthworm8030) - Monday, 16 October 2023, 07:34 GMT
I'm also affected by this bug.
On my side `nix` wouldn't launch because it could not find `libsodium.so.23`.
As a workaround, I have rollback `libsodium` package to the previous version (from `1.0.19-1` rollback to `1.0.18-2`) and `nix` to version `2.17.0-3`.
Comment by Toolybird (Toolybird) - Monday, 16 October 2023, 07:41 GMT
Please cut out the "me too" posts. Any more pointless comments will be deleted! We have to wait for the maintainers. It's that simple.
Comment by Dmitriy Nikiforov (foxpro) - Monday, 16 October 2023, 07:43 GMT
Thanks @Gat, I downgraded libsodium: sudo pacman -U /var/cache/pacman/pkg/libsodium-1.0.18-2-x86_64.pkg.tar.zst
And now it works with Nix 2.17.
Comment by Mynacol (mynacol) - Monday, 16 October 2023, 08:12 GMT
I just updated my machine, but upgraded nix manually to 2.18.1-4. This version hasn't the reported dependency issues. This way I avoid having to downgrade any other package for now.
You can download 2.18.1-4 from https://archive.archlinux.org/packages/n/nix/nix-2.18.1-4-x86_64.pkg.tar.zst

Loading...