Diganta Bharali Diganta Bharali - 1 year ago 144
Linux Question

sudo: apt-get: command not found linux server

I am using a Linux server andtrying to install the jdk package. But when i try sudo apt , I get the following error:

sudo: apt-get: command not found

The version of Linux is:

3.10.0-229.el7.x86_64 GNU/Linux

Can't figure out whats wrong

Answer Source

It seems that you have CentOS on your server based on Linux version. You can try Yum instead. For example:

sudo yum install ...