我创建了一个ec2实例debian-wheezy ami 64-hvm-2015-01-28-ebs (ami-e0efab88)
aws ec2 run-instances --image-id myimage --security-group-ids mysecuritygroup --count 1 --instance-type t2.micro --key-name mykey --query 'Instances[0].InstanceId'然后连接到它,并试图在上面安装apache2。
sudo apt-get install apache2得到以下信息
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package apache2注意:创建GCE实例debian-7-wheezy-v20131014并运行相同的命令非常有效
我遗漏了什么?
发布于 2016-05-30 15:37:56
正如注释中提到的,规则总是运行
sudo apt-get update在安装任何带有apt-get软件包的软件之前
https://stackoverflow.com/questions/37528881
复制相似问题