Amazon Linux: apt-get: command not found

后端 未结 10 789
闹比i
闹比i 2020-12-22 20:47

I\'m trying to install an apache server on my AWS instance, however, it seems that it doesn\'t have the apt package installed.

I googled and all I found was some bro

10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-22 21:01

    apt–get: command not found

    For Debian based Linux distributions:

    Try to use sudo apt install instead of the usual sudo apt-get install

    From man apt

    apt provides a high-level commandline interface for the package management system. It is intended as an end user interface and enables some options better suited for interactive usage by default compared to more specialized APT tools like apt-get(8) and apt-cache(8).

提交回复
热议问题