Pierre Neidhardt writes: > I can fix it with > >> patchelf --set-interpreter "$(realpath "$(which sh)")" /path/to/foreign/binary Copy/paste mistake, the correct command is > patchelf --set-interpreter "$(patchelf --print-interpreter "$(realpath "$(which sh)")")" /path/to/foreign/binary -- Pierre Neidhardt