proot
proot copied to clipboard
-S or -0 -R do not work to install programs
Expected Behavior
Use proot -S or proot -0 -R to install apps in container.
Actual Behavior
Both apt and zypper do not work.
apt cannot unlock, and zypper fails to read from .run
After running Step * , it is possible to use apt and zypper but many other programs breaks for they need to be in less permission.
Steps to Reproduce the Problem
rysnc -aAxXH / /temto make a copy of OSproot -S /tem
( *. sudo chmod -R 4755 /tem)
Specifications
- Proot/Care version: 5.30
- Kernel version: 5.3
- Host distribution: openSUSE leap 15.3
- Guest distribution: openSUSE leap 15.3 (and Debian 11 also tested)
One specific problem I encountered when trying to make apt work under proot:
A process running under proot -0 sees files owned by the unprivileged user running proot as owned by root. However it does not do similar mapping for other system users or groups.
For example, apt likes to have /var/lib/apt/lists/partial owned by system user _apt. This then leads to various permission denied errors, because the unprivileged user running proot does not have permission to work with files owned by _apt.
I've created a tool to handle this here.