I’m trying to install chrome using the commands below:
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
sh -c 'echo "deb [arch=$(dpkg --print-architecture)] https://dl-ssl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
apt update && apt install -y google-chrome-stable --no-install-recommends
I get the following error:
Get:4 https://dl-ssl.google.com/linux/chrome/deb stable InRelease [1811 B]
Fetched 1811 B in 0s (4467 B/s)
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package google-chrome-stable
Anyone have any ideas why this doesn’t work for me? Could it be that Google chrome package is not available for my system:
root@xxx:/# dpkg --print-architecture
arm64
root@xxx:/# uname -a
Linux xxxx 5.11.0-1021-oracle #22~20.04.1-Ubuntu SMP Fri Oct 22 21:42:24 UTC 2021 aarch64 GNU/Linux
root@65653cdc2f7b:/# cat /etc/debian_version
11.2
>Solution :
This is expected. Google Chrome is only packaged for amd64, and is not available for ARM.
You can use Chromium instead. It is the free and open source browser, on which Chrome is based.
You can remove the Chrome repository, and install chromium with
sudo apt install chromium-browser
This will install the snap chromium package. If you want a pure apt version, see this answer.