如何解决apt-get的:命令的AWS EC2没有发现? [英] How to fix apt-get: command not found on AWS EC2?

查看:1005
本文介绍了如何解决apt-get的:命令的AWS EC2没有发现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了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.

这篇关于如何解决apt-get的:命令的AWS EC2没有发现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆