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

Bruce Richardson itsbruce at workshy.org
Mon Sep 6 06:15:52 UTC 2010


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?

-- 
Bruce

I see a mouse.  Where?  There, on the stair.  And its clumsy wooden
footwear makes it easy to trap and kill.  -- Harry Hill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20100906/fbec7509/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list