I am trying to install a bunch of packages using apt-get install on a VM running Debian 5.0.9 (Lenny). What makes this endeavor frustrating and difficult is the fact that my home directory on this machine is in fact a mounted NFS share. My local user is in the VM's sudoers file, and I can start installing all packages but eventually every installation fails because:
failed to open configuration file '/path/to/home/.dpkg.cfg' for
reading: Permission denied.
I assume that using sudo to run apt-get makes me act as the local root of the VM, which has no permissions whatsoever on the NFS share where my home directory is mounted. Thus, the installation cannot be finished.
I already tried to sudo -s my way around this issue but I am :
Sorry, user $user is not allowed to execute '/bin/bash' as root on
I was wondering if anyone could suggest any alternative way around this issue.