Page 1 of 1

Cannot install slackbuild dotnet-runtime-8.0

Posted: 15. Dec 2025, 08:17
by joulami
I issued the command sudo slapt-src -i dotnet-runtime-8.0
It failed installing with the error message:

ERROR: Symlink was found in the archive. (usr/bin/dotnet)
ERROR: Failed to extract file usr/bin/dotnet.
ERROR: Package installation failed!
/sbin/spkg -u --reinstall --install-new dotnet-runtime-8.0-8.0.22-x86_64-1_SBo.txz failed

Re: Cannot install slackbuild dotnet-runtime-8.0

Posted: 16. Dec 2025, 21:17
by laprjns
I getting the same errors that you got. Also tried the 9.0 version and got the same error. Something is wrong with the SlackBuild . I know nothing about this package and what to does but I did pass the error output to Grok AI and this is what it said.
Grok AI wrote: The error you're seeing is caused by Slackware's package installer (`spkg` / `installpkg`) refusing to install packages that contain **absolute symlinks** pointing outside the package's own directory structure — specifically, the symlink `/usr/bin/dotnet → ../lib64/dotnet/dotnet`.

This is a long-standing security/policy restriction in Slackware's tools: they forbid symlinks that start with `/usr` (or any absolute path) inside .txz packages unless they point to a location that will exist **inside the package itself**.
Microsoft's official .NET Linux tarballs (which SBo's slapt-src script uses) create exactly this kind of forbidden symlink:

usr/bin/dotnet → ../lib64/dotnet/dotnet

When packaged as-is, that becomes the absolute symlink `/usr/bin/dotnet` in the .tgz/.txz, which Slackware blocks with the message you saw.

### Solutions (from easiest to most correct)

#### Option 1: Quick-and-dirty workaround (just install it, ignoring the check)
```bash
installpkg --force-symlinks dotnet-runtime-8.0-8.0.22-x86_64-1_SBo.txz
```
or if you're using spkg:
```bash
spkg -i --force-symlinks dotnet-runtime-8.0-8.0.22-x86_64-1_SBo.txz
```
This works fine in practice and is what most Slackware users do with Microsoft’s .NET packages.
I used the installpkg --force-symlink option (spkg doesn't have the force-sym link option) and the package installed. The symbolic links have been added, but I really don't know if the package works.
P.S., Grok could have been wrong, so double-check everything.

Re: Cannot install slackbuild dotnet-runtime-8.0

Posted: 17. Dec 2025, 09:18
by djemos
Installation done without errors using

Code: Select all

sudo installpkg dotnet-runtime-8.0-8.0.22-x86_64-1_SBo.txz
While Installation failed using

Code: Select all

sudo spkg dotnet-runtime-8.0-8.0.22-x86_64-1_SBo.txz
After using sudo slapt-src -i dotnet-runtime-8.0 the package exists in /usr/src/slapt-src/development/dotnet-runtime-8.0/dotnet-runtime-8.0-8.0.22-x86_64-1_SBo.txz
Then install it with

Code: Select all

sudo installpkg /usr/src/slapt-src/development/dotnet-runtime-8.0/dotnet-runtime-8.0-8.0.22-x86_64-1_SBo.txz