0

So I understand that the "right way" to get google chrome is to simply hit the button to download and install it from their web page. That said I like the idea of having all my basic setup requirements in a script so that if I ever have to start on a fresh install of Ubuntu I can simply run that script and have all my favorite software. That said when I took the bash commands listed here and put them in a script (as seen below) running the script as sudo user did not result in google-chrome-stable installing... What gives?

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
apt-get update 
apt-get install google-chrome-stable -y

I ran the script by typing it's fully qualified location into the terminal.

kpie
  • 275

1 Answers1

0

Try this.

cd /tmp
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb

If you get errors, use sudo apt-get -f install