kisslinux/kiss

kiss unable to install packages on systems without a user with the id 1000

Closed this issue · 5 comments

  • Does this issue occur in master?

Description

kiss can't install packages on systems without a user with the uid 1000.

Steps to reproduce

  1. Download release tarball and chroot into it
  2. Clone a kiss repository and build one of the packages
  3. Run kiss i <package>

Error message

~/repo # kiss i busybox
Using su (to become 1000)
su: unknown user 1000

Verbose log

N / A


Send a log file.

All of the files/directories in the tarball are owned by root. I don't know where 1000 is coming from in your case. It makes sense for the package manager to abort as the only other option is for it to elevate to root (which comes with its own risks). I cannot reproduce.

I can reproduce but only if I extract the kiss-chroot tarball as a normal user. The tarball must be extracted as root (as per the instructions).

Ah that might explain why it always happens in chroots that I placed in my home directory but never when I was trying to install kiss. Thank you for explaining, although I still don't understand why the extraction of the tarball as a different user would make a difference?

The ownership of the files being extracted is changed to your user's ID which I presume is 1000. tar can't exactly extract them with their original ownership (root/root) for obvious reasons.