Cannot install build-essential package

That looks sane. Then there is something going fishy going on with the new jessie images…

As a sanity check could you check what is the libc version installed?

sudo dpkg -l | grep libc