Ubuntu Google Chrome Install

はじめに

Ubuntu で Google Chrome を Install する方法です。

For Ubuntu 22.04

curl -fsSL https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /etc/apt/keyrings/google-chrome.gpg
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo apt update
sudo apt install google-chrome-stable

For Ubuntu 20.04

curl https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo apt update
sudo apt install google-chrome-stable

なお、Ubuntu 22.04 でこの方法で apt update すると下記の Warning が出てしまいます。

W: http://dl.google.com/linux/chrome/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

この場合、一旦下記を行ってから上記のgpgを使う方法を再度実行します。

sudo apt-key del 7FAC5991
sudo rm /etc/apt/sources.list.d/google-chrome.list
Copied title and URL