cannot run examples

Did you download Arduino IDE from Arduino.cc or did you install from the Ubuntu package manager?