It sounds like you don't have the GD extension installed. I don't use Ubuntu any longer, but I think it may be named php5-gd,...
Command line interface for testing internet bandwidth using speedtest.net How to check Internet Speed via Terminal?
1 Solution We suggest the next steps, with a temporary working internet connection by ethernet, tethered or whatever means possible, open a terminal and do:...