
I am trying to run debian wheezy in chroot (got debian files from https://github.com/tianon/docker-brew-debian/blob/02108ee636f54b504e2aec4ee7bb59a2de8a5b99/wheezy/rootfs.tar.xz)
That is the way i'm using it:
user$>fakechroot fakeroot-ng chroot /home/user/wheezy
When installing packages with apt-get, ldconfig is executed, but it fails with an error:
ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
- selinux on host os is not installed
- /home/user/wheezy/sbin/ldconfig permissions are -rwxr-xr-x
Is it possible to find a workaround for that without running under root?
I wonder if, in general, it is possible to get things work in such environment, e.g. install packages, run servers (ports above 1024, of course), scripts etc?
答え1
/home/user/wheezy/etc is probably not writable for you.
As a side note, you may like to take a look at the Schroot package if you actually want to run services from inside the chroot.