I am currently facing troubles in installing google chrome/chromium in Amazon EC2 instance.
I tried the command,
[ec2-user@ip-XXXX yum.repos.d]$ sudo yum install google-chrome-stable
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
http://dl.google.com/linux/chrome/rpm/stable/aarch64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
191 packages excluded due to repository priority protections
I have seen any solutions from stack overflow/other sites for this, but I nothing works and getting the same error. Some of them I tried are,
- https://stackoverflow.com/questions/21623131/centos-unable-to-install-chromium-browser
- How to install Google Chrome on CentOS, Red Hat or Fedora
- Unable to install Google Chrome on Linux
It looks like the repository is not found. It is true, as I get the same when I tried to access the link from the browser. As an alternative, I tried downloading the rpm and insatlled, but it seems to be a wrong architecture (but I thought its the same),
[ec2-user@ip-XXXX yum.repos.d]$ sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
......
[ec2-user@ip-XXXX yum.repos.d]$ sudo yum install google-chrome-stable_current_x86_64.rpm
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Examining google-chrome-stable_current_x86_64.rpm: google-chrome-stable-92.0.4515.107-1.x86_64
Cannot add package google-chrome-stable_current_x86_64.rpm to transaction. Not a compatible architecture: x86_64
Error: Nothing to do
Other information about the OS and repo are,
/etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
Os details
[ec2-user@XXXX yum.repos.d]$ uname -m
aarch64
ec2-user@XXXX yum.repos.d]$ cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
[ec2-user@XXXX yum.repos.d]$ rpm -E %{rhel}
7
Could someone please help on this?
yum install chromium
..... Please always do a search, e.g.yum search chrom