How to install libnsl.so.1 in tumbleweed

Hi. I can’t figure out how to install libnsl.so.1. Any help would be appreciated.
zypper search --provides libnsl.so.1 doesn’t show anything (there’s only libnsl.so.3)

opi libnsl shows results for libnsl1:

1. openSUSE:Factory:Staging:M -              | 2.40                      | x86_64
2. devel:Factory:git-workflow:mold:core:St ? | 2.39                      | x86_64
3. home:MaxxedSUSE !                         | 2.39                      | x86_64
4. home:MaxxedSUSE:32bit-deps !              | 2.39                      | x86_64
5. home:alveus:playmarket !                  | 2.39                      | x86_64
6. home:gmbr3:Active !                       | 2.39                      | x86_64
7. home:glaubitz:loongarch64 !               | 2.40                      | x86_64

But i tried openSUSE:Factory:Staging:M and got this:

Repository 'openSUSE:Factory:Staging:M' is invalid.
[openSUSE_Factory_Staging_M|https://download.opensuse.org/repositories/openSUSE:/Factory:/Staging:/M/bootstrap_copy/] Failed to retrieve new repository metadata.
History:
 - [openSUSE_Factory_Staging_M|https://download.opensuse.org/repositories/openSUSE:/Factory:/Staging:/M/bootstrap_copy/] Repository type can't be determined.
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'openSUSE:Factory:Staging:M' because of the above error.

On arch linux, this file is provided by glibc, but not on opensuse apparently.

This file (package libnsl1) got removed from Factory/Tumbleweed as it is outdated. It is still only available in Leap 15.6

Is there no way to get it on a newer version? I have a program that needs it to run.

The newer version is libnsl.so.3 available from the package libnsl3.

Sorry, i meant a newer version of opensuse (The program actually requires libnsl.so.1, so 3 doesn’t work)

libnsl1 requires an old glibc-2.38 but Tumbleweed is already at glibc-2.41.

So you either break the package by trying to install it without needed dependencies.
Or you can try a symlink libnsl.so.3 → libnsl.so.1

I see, thanks for the help
Edit: the symlink worked! :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.