I receive an error when trying to install Google Chrome [duplicate]
I am receiving a '403 forbidden error' when running sudo apt-get update.
I have used the following commands to add the Google Chrome repository :
Add key:
wget -q -O - | sudo apt-key add - Add repository:
sudo sh -c 'echo "deb [arch=amd64] stable main" >> /etc/apt/sources.list.d/google-chrome.list'Install package:
sudo apt-get update
sudo apt-get install google-chrome-stableOutput of apt-get update:
sudo apt-get update Ign stable InRelease Ign stable Release.gpg Ign stable Release Err stable/main amd64 Packages 403 Forbidden [IP: 172.217.26.206 80] Ign stable/main Translation-en_IN Ign stable/main Translation-en Ign trusty InRelease Hit trusty-security InRelease Ign trusty InRelease Hit trusty InRelease Hit trusty-updates InRelease Hit trusty Release.gpg Hit trusty-security/main Sources Hit trusty-backports InRelease Hit trusty Release Hit trusty/main amd64 Packages Hit stable InRelease Hit trusty Release.gpg Hit trusty/main i386 Packages Hit trusty-security/restricted Sources Hit trusty-updates/main Sources Hit trusty/main Translation-en Hit trusty-security/universe Sources Hit trusty-updates/restricted Sources Hit trusty-security/multiverse Sources Hit stable/main amd64 Packages Hit trusty-updates/universe Sources Hit trusty/main Sources Ign ftp://apt.postgresql.org trusty-pgdg/main Translation-en W: Failed to fetch 403 Forbidden [IP: 172.217.26.206 80] E: Some index files failed to download. They have been ignored, or old ones used instead. 2 1 Answer
Maybe something went wrong when you imported the key and added the repository - so start over from scratch by deleting the imported keys and removing the Google Chrome repository.
Search the imported Google keys : apt-key adv --list-public-keys
Delete the imported Google keys : sudo apt-key del <key-ID>
Remove the Google Chrome repo : sudo rm /etc/apt/sources.list.d/google-chrome.list
Additionally check the /etc/apt/sources.list file for old Google Chrome entries :sudo nano /etc/apt/sources.list In case that you find old entries, remove them.
Import the Google keys, add the Google Chrome repository and install Google Chrome this way :
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
wget -q -O - | sudo apt-key add -
sudo apt update
sudo apt install google-chrome-stableNote that Google Chrome can only be installed on 64-bit Linux editions - more information here.
The commands are slightly different to those ones you used, perhaps that was the reason why ...