-1

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

Diganta Bharali
  • 243
  • 2
  • 3
  • 9

1 Answers1

6

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

sudo yum install ...