Python error message is: sudo: apt get: command not found

Time:2020-1-24

1. Problem description

The error message is: sudo: apt get: command not found

2. Causes and Solutions

Use Yum install XXX under CentOS

Differences between Yum and apt get
Generally speaking, famous Linux systems are basically divided into two categories:
1. RedHat series: RedHat, CentOS, Fedora, etc
2. Debian series: Debian, Ubuntu, etc
RedHat collection
1. The common installation package format is RPM package. The command to install RPM package is RPM – parameter
2 package management tool yum
3. Support tar package
Debian series
1. The common installation package format is DEB package. The command to install DEB package is dpkg – parameter
2. Package management tool apt get
3. Support tar package

 

If: sudo apt get install openssh server error

CentOS is used. Do not use apt get when downloading

Sudo Yum install openssh server can solve this problem