如何修复 apt-get: 命令未在 AWS EC2 上找到? [英] How to fix apt-get: command not found on AWS EC2?
本文介绍了如何修复 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
替换为 yum
,因为基于 Amazon Linux 的 AMI 使用 yum
命令而不是 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屋!
查看全文