当前位置: 移动技术网 > 科技>操作系统>Linux > python 错误信息是:sudo :apt-get:command not found

python 错误信息是:sudo :apt-get:command not found

2019年10月21日  | 移动技术网科技  | 我要评论

1、问题描述

错误信息是:sudo :apt-get:command not found

2、问题原因及解决

在centos下用yum install xxx

yum和apt-get的区别
一般来说著名的linux系统基本上分两大类: 
1.redhat系列:redhat、centos、fedora等 
2.debian系列:debian、ubuntu等 
redhat 系列 
1 常见的安装包格式 rpm包,安装rpm包的命令是“rpm -参数” 
2 包管理工具 yum 
3 支持tar包 
debian系列 
1 常见的安装包格式 deb包,安装deb包的命令是“dpkg -参数” 
2 包管理工具 apt-get 
3 支持tar包

 

如果:执行sudo apt-get install openssh-server 报错

使用的是centos, 下载的时候 使用yum不要用apt-get

sudo yum install openssh-server 可以解决

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网