Linux“找不到Apt-Get命令”错误解决方案

Linux distributions are using package managers in order to install, update and remove applications. In the old days there are very less package managers those are not so good. In to day they are very talented. apt-get command not found is command error type which is shown while installing, updating and removing applications. In this tutorial we will look some error cases and solutions.

Linux发行版使用软件包管理器来安装,更新和删除应用程序。 过去,软件包管理器的数量很少,那些都不是那么好。 如今,他们很有才华。 apt-get command not found是在安装,更新和删除应用程序时显示的命令错误类型。 在本教程中,我们将介绍一些错误情况和解决方案。

错误 (Error)

As an example when try to run apt-get install tmux command we get following error.

作为示例,当尝试运行apt-get install tmux命令时,出现以下错误。

$ apt-get install tmux
Error
Error
错误

使用Apt-Get进行发行(Distributions Using Apt-Get)

In order under stand error and get solution we need to know distributions using apt-get as default package manager. Following distributions can work with apt-get without problem.

为了避免出现错误并获得解决方案,我们需要使用apt-get作为默认程序包管理器来了解发行版。 遵循发行版可以使用apt-get毫无问题。

  • Debian

    德比安
  • Ubuntu

    的Ubuntu
  • Mint

    薄荷
  • Kali

    卡利

不使用Apt-Get的发行版(Distributions Not Using Apt-Get)

The error is caused by distributions not using apt-get as default package manager. So the command will not found. Following distributions do not use apt-get as default package manager.

该错误是由于发行版未使用apt-get作为默认程序包管理器而引起的。 因此找不到该命令。 以下发行版不使用apt-get作为默认程序包管理器。

  • openSUSE

    openSUSE
  • Fedora

    软呢帽
  • CentOS

    CentOS的
  • RHEL

    RHEL
  • Arch

  • MacOS X

    MacOS X

(Solution)

The solution is using given distribution package manager here is a list of them.

解决方案是使用给定的分发程序包管理器,下面是它们的列表。

Fedora,CentOS,RHEL (Fedora, CentOS, RHEL)

These distributions use yum as default package manager. So we can use yum like below.

这些发行版使用yum作为默认程序包管理器。 因此,我们可以像下面那样使用yum

$ sudo yum install tmux
Fedora, CentOS, RHEL
Fedora, CentOS, RHEL
Fedora,CentOS,RHEL

(Arch)

For Arch Linux we can use following command.

对于Arch Linux,我们可以使用以下命令。

$ packman -S tmux

Mac OS X (Mac OS X)

MacOS X uses brew as package manager. We can use it like below.

MacOS X使用brew作为软件包管理器。 我们可以像下面这样使用它。

$ brew install tmux
LEARN MORE  How To Solve "add-apt-repository command not found" Error In Ubuntu, Debian, Mint, Kali
了解更多如何解决“找不到add-apt-repository命令”在Ubuntu,Debian,Mint,Kali中的错误

翻译自: https://www.poftut.com/linux-apt-get-command-not-found-error-solution/

  • 3
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值