[Gllug] apt-get failing in chrooted python script...

general_email at technicalbloke.com general_email at technicalbloke.com
Tue Sep 7 17:40:24 UTC 2010


On 06/09/10 07:15, Bruce Richardson wrote:
> On Mon, Sep 06, 2010 at 06:37:01AM +0100, general_email wrote:
>    
>> I'm updating a custom remastering script form Ubuntu 8.04 to 10.04 and
>> shelling out to do the apt-get stuff (yes I know about subprocess, I'm
>> lazy OK!). This used to work fine but with the newer Ubuntu it flops
>> over with the following error...
>>
>> E: Unable to change to
>> /home/r0g/AAA_BACKED_UP/Code/projects/Techbench/remaster/workspace/ -
>> chdir (2: No such file or directory)
>>      
> Sounds like a python bug.  getcwd() must be returning an incorrect value
> while under the chroot.  The interesting thing is how it gets to the
> above path from
> "/home/r0g/code/projects/Techbench/remaster/workspace/squashfs".  Just
> on a hunch - is there a symlink anywhere in the path you're passing as a
> parameter, pointing to an actual path that matches what appears in the
> error message?
>
>    


Not that I know of, AAA_BACKED_UP is separate filesystem that I have 
mounted there but I don't think I have any symlinks in the path :/

Might try to rule out python next then, maybe this is the excuse I 
needed to get to grips with python 3. Am I right in assuming that if I 
install python 3 from the Ubuntu repos it won't supersede the copy of 
2.6.5 that the default install and mess things up?

Cheers,

Roger.
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list