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
Cannot install slackbuild dotnet-runtime-8.0
Re: Cannot install slackbuild dotnet-runtime-8.0
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.
P.S., Grok could have been wrong, so double-check everything.
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.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.
P.S., Grok could have been wrong, so double-check everything.
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
― George Orwell, 1984
Re: Cannot install slackbuild dotnet-runtime-8.0
Installation done without errors using
While Installation failed using
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 dotnet-runtime-8.0-8.0.22-x86_64-1_SBo.txzCode: Select all
sudo spkg dotnet-runtime-8.0-8.0.22-x86_64-1_SBo.txzThen 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