fixes for ubuntu 14.04
check before add apt-repositories