Installation 1.7.1 on Ubuntu Maverick 64

After of a fresh install of Panda3d 1.7.1
on Ubuntu maverick 64bits, when i did try to start any sample file got the error:

ImportError: No module named direct.directbase.DirectStart

So i did this:

sudo echo “/usr/share/panda3d” > /usr/local/lib/python2.6/site-packages/panda3d.pth

And now the samples are working …

i hope this helps somebody,

However, I am getting

bash: /usr/local/lib/python2.6/site-packages/panda3d.pth: Permission denied

as my response. This is even when ran with sudo.