Install google-chrome-stable with apt on 16.04
Solution 1:
apt
and apt-get
share the same config files. apt-key
is a separate command, apt
doesn't have any of apt-key
's functionality. The steps from the blog post will remain the same, except that you can replace apt-get
with apt
for the last two commands.
It might be easier to just download the Google Chrome package from its website, and then install it using:
sudo apt install ./google-chrome-stable_current_amd64.deb
Chrome's package adds both the key and the repository, so I think this is the simplest way. Note that this wouldn't be directly possible with apt-get
, since apt-get
doesn't support installing deb files directly, and if you used dpkg
, you'd have to run apt-get install -f
later to fix dependency issues.