Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 474
liron_hazan Avatar asked Dec 11 '14 13:12

liron_hazan


2 Answers

Setup key with:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

Setup repository with:

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

sudo apt-get update 
sudo apt-get install google-chrome-stable

(https://www.ubuntuupdates.org/ppa/google_chrome)

like image 128
Milso Avatar answered Sep 17 '22 21:09

Milso


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"
like image 30
liron_hazan Avatar answered Sep 19 '22 21:09

liron_hazan