The problem was that the ubuntu image that i was using was armel
architecture, but the sage distribution made by Julien was compiled in
an armhf environment (a slightly different architecture). So there
were not compatible.
My solution was to get an armhf rootfs from the ubuntu core site
(
http://cdimage.ubuntu.com/ubuntu-core/releases/12.04/release/), and
create a disk image with it to use.
The procedure to do so would be the following (on a linux box, maybe
you would need root privileges to mount the image):
1) create an empty file to build the image in. If you just wwant it to
use sage, 3GB should be fine. If you want to install a complete ubuntu
system, you will need more (i used 7GB):
dd -if=/dev/zero of=ubuntu.img -bs=1G count=3
2) format the file
mkfs.ext2 ubuntu.img
3)create a directory and mount the image there
mkdir mount
mount -o loop ubuntu.img mount
4) put the ubuntu core tarball in the directory and unpack it
cd mount
wget
http://cdimage.ubuntu.com/ubuntu-core/releases/12.04/release/ubuntu-core-12.04.1-core-armhf.tar.gz
tar xzf ubuntu-core-12.04.1-core-armhf.tar.gz
5) Unpack the sage install inside the directory
6) Unmount the directory
cd ..
umount mount
And that's it, the file ubuntu.img is ready to be used as a chroot
environment with a very minimal ubuntu system (not even graphical
interface, just the very basic system tools), where sage should work
just fine.
I do have a 7gb image with a lightweight desktop, vnc server, and some
applications installed (although for example qt apps don't render
well, and firefox and chromium don't work either, so i have replaced
them by some alternatives).
I can try to upload it somewhere, if people is interested.