zoukankan      html  css  js  c++  java
  • python 错误信息是:sudo :apt-get:command not found

    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 可以解决

  • 相关阅读:
    Extension Methods(扩展方法)
    linux面试题
    渗透测试 day4
    渗透测试 day3
    渗透测试 day2
    渗透测试 day1
    9.3 网络安全介绍
    9.2 Iptables
    8.30 进程管理
    8.29 linux的网络
  • 原文地址:https://www.cnblogs.com/zmdComeOn/p/11708648.html
Copyright © 2011-2022 走看看