Closed penyuan closed 3 years ago
Thanks. I was able to reproduce the issue. We may need to change the way -f
works.
Try the normal user and run sudo
instead:
$ junest
sudo pacman -Sy nano
Try the normal user and run
sudo
instead
I tried this with the same errors. I tried junest pacman -Syu
to install updates, full output here.
Lots of (Can't set user=0/group=0 for [path to a file])
Even though it shows the message it should install the package correctly anyway: https://github.com/fsquillace/junest#cant-set-user-and-group-as-root
Even though it shows the message it should install the package correctly anyway: https://github.com/fsquillace/junest#cant-set-user-and-group-as-root
Ah I see. After running sudo pacman -S nano
, nano
was indeed installed and looks usable so far. Thank you!
You did say we might need to change the way -f
works earlier. How can I help with that?
junest ns -f
uses an option from the backend bwrap to simulate fakeroot: --uid 0
source. The normal user can use sudo
which is based on the combination of fakechroot fakeroot
source. One way would be to make sure they both use the same behavior but it would require to see whether side effects could come from it.
OK, well if it's every implemented I'd be happy to help test it.
This has been solved now. Resolving.
Hello,
I am testing out Junest on a RHEL 8.1 system, and I was able to use the recommended method to install Junest and
junest setup
andjunest -f pacman -Syy
ran without errors. I started by installing the fairly simplenano
via the commandjunest -f pacman -S nano
. Unfortunately this fails with:I can also confirm that running
junest -f pacman -Syu
fails with a ton ofcould not change the root directory (Operation not permitted)
and(Can't set user=0/group=0 for [a certain file/path])
errors.Looks like permissions problems, but I can't figure out what's wrong. Can anyone please advise? Thanks!