fix dependency installation for Travis CI

looks like the Ubuntu repositories don't update automatically
Merge pull request #3267 from Mailaender/ubuntu-travis

Tried to fix Travis CI problems