如何解决apt-get的:命令的AWS EC2没有发现?如何解决、命令、发现、apt

2023-09-11 23:38:36 作者:活着就是瞎折腾

我安装了Ubuntu 12.04在我的实例,我试图安装使用apt-get的包,但是我收到以下错误:

I installed Ubuntu 12.04 on my instance and am trying to install packages using apt-get, but I am getting the following error:

sudo: apt-get: command not found

我该如何解决这个问题?

How do I fix this?

推荐答案

尝试更换 apt-get的百胜作为基于Linux的亚马逊AMI使用的百胜命令代替 apt-get的

Try replacing apt-get with yum as Amazon Linux based AMI uses the yum command instead of apt-get.