Looks more like a FS issue to me. - We successfullt downloaded the keyfile - We successfully created a tmp file /var/tmp/TmpFile.JGNIf - Later we hardlink/copy the downloaded key file to this location: - we successfully unlink the file /var/tmp/TmpFile.JGNIf - we LINK(2) the file to the new location, which fails with EACCES ((13)Permission denied): EACCES Write access to the directory containing newpath is denied, or search permission is denied for one of the directories in the path prefix of oldpath or newpath. If the command had returned EPERM (does not support hardlinks) or EXDEV (cross device linkk) we would have fallen back COPY the file. But not EACCESSS, which is IMO dubious here. [https://github.com/openSUSE/libzypp/blob/master/zypp/PathInfo.cc#L867]