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
使用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 软呢帽
- CentOSCentOS的
- RHELRHEL
- Arch 拱
- MacOS XMacOS 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
拱 (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
翻译自: https://www.poftut.com/linux-apt-get-command-not-found-error-solution/