Check the Linux distribution, apt-get
works in Debian based distro whereas yum
works in Fedora based distro.
Ref: How to know distro name, execute command cat /etc/*-release
It is also possible your system administrator does not permit you (or did not put you in the group of users who have sudo
permissions) to execute apt-get
but if you have sudo
access try to execute with sudo apt-get <package_name>
if debian
or yum install <package_name>
if you are using Fedora
.