junest icon indicating copy to clipboard operation
junest copied to clipboard

proot fakeroot doesn't work

Open Thrashophil opened this issue 2 years ago • 9 comments

I have a problem with junest p on a remote computer, where I log in via ssh. When I want to run for example sudo pacman -Syy, I get the following error:

fakeroot: preload library `libfakeroot.so' not found, aborting.

As far as I understand, junest comes with an own fakeroot and directory management and is therefore independent of the existence of fakeroot on the host machine.

When I first run junest p -f and then pacman -Syy, I get

error: failed to initialize alpm library:
(root: /, dbpath: /var/lib/pacman/)
could not find or read directory

What can I do?

Thrashophil avatar Apr 17 '22 11:04 Thrashophil

Very strange, I guess you installed a fresh junest image and the latest junest command, right?

Which linux distro has the host machine?

fsquillace avatar Apr 22 '22 16:04 fsquillace

The host machine has Ubuntu 20.04.4 LTS. Yes, I tried it again by deleting all junest folders and copying this git repository to the host machine. Same problem.

What do you mean by installing the latest junest command? In my .bashrc, there has been always the line export PATH=~/.local/share/junest/bin:$PATH since the beginning.

Thrashophil avatar May 02 '22 19:05 Thrashophil

What do you mean by installing the latest junest command?

I mean to run:

cd ~/.local/share/junest
git pull origin master

This is very strange because in Ubuntu it should work very well. What if you use junest ns instead?

fsquillace avatar May 03 '22 19:05 fsquillace

I get the following:

From https://github.com/fsquillace/junest
 * branch            master     -> FETCH_HEAD
Already up to date.

With junest ns I get

~/.local/share/junest/lib/core/common.sh: line 122: ~/.junest/usr/bin/zgrep: No such file or directory
Unprivileged user namespace disabled. Root permissions are required to enable it: sudo sysctl kernel.unprivileged_userns_clone=1
bwrap: No permissions to creating new namespace, likely because the kernel does not allow non-privileged user namespaces. On e.g. debian this can be enabled with 'sysctl kernel.unprivileged_userns_clone=1'.
Error: Something went wrong while executing bwrap command. Exiting

Thrashophil avatar May 05 '22 19:05 Thrashophil

There is definitely something strange in the host machine. Ubuntu 20.04 should have the User NS enabled by default.

fsquillace avatar May 08 '22 06:05 fsquillace

How come there is not even the file ~/.junest/usr/bin/zgrep: No such file or directory? The image is not installed correctly.

fsquillace avatar May 08 '22 07:05 fsquillace

I only just found out that there's a workaround for the pacman issue. Edit "RootDir" to full directory of root (example: /home/container/.junest) in /etc/pacman.conf

ambientxd avatar Aug 06 '22 16:08 ambientxd