add license and fix add-apt-repository issue