bashgoogle-chromeubuntu

Unable to locate package google-chrome-stable ubuntu12 on openstack


I'm running a script on my ubuntu on openstack (env bash) which is trying to install the latest stable chrome browser:

sudo apt-get update     
sudo apt-get -y install openjdk-7-jre google-chrome-stable

But I'm getting --> Unable to locate package google-chrome-stable ubuntu

I tried the following additions but they didn't help:

# trying universe repo
sudo apt-get -y install libgconf2-4 libnss3-1d libxss1
sudo apt-get update

# trying something for openstack
sudo apt-get install ubuntu-cloud-keyring
sudo apt-get update

Will be happy to hear more suggestions.


Solution

  • As written in the comment above, The fix is adding:
    deb http://dl.google.com/linux/chrome/deb/ stable main to the source file:

    sudo sh -c "echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' >>   /etc/apt/sources.list"