add-apt-repository added yes input, added apt-get update before dartsdk install.