bumplzz69 / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

Issue with apt-get install apache2 #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
The following steps came form the quick start guide
Setting up a new VM
Setting up ssh
In the ssh command window try install apache2 with command "apt-get install 
apache2"

What is the expected output? What do you see instead?
apache2 getting installed

What is the output of 'gcloud info'?
E: Unable to locate package apache2

Please provide any additional information below.
The issue was that the apt-get from the original vm image needed to be updated
I was able to manually fix it by running "apt-get update"
Proposed fix: either add note to the quickstart guide or fix the vm image

Original issue reported on code.google.com by hongyan...@gmail.com on 14 Mar 2015 at 2:39

GoogleCodeExporter commented 9 years ago
Hey,

Could you try to run "apt-get update" before running "apt-get install apache"?

The local cache and package list can be out of date when a VM first boots. 
"apt-get update" will update those lists.

Original comment by dlor...@google.com on 14 Mar 2015 at 2:58

GoogleCodeExporter commented 9 years ago
Are you referring to https://cloud.google.com/compute/docs/quickstart? It has 
"sudo apt-get update" before "sudo apt-get install apache2". Not sure if it was 
there before or not.

I am marking it Obsolete assuming that it was a problem before and someone else 
fixed it. If you still see this problem, please reopen this ticket.

Original comment by stephe...@google.com on 16 Mar 2015 at 4:32