在 Linux Red Hat 服务器上安装 apt-get
我正在设置 Linux Red Hat Web 服务器。 apt-get 尚未安装,但 yum 已安装。但是,yum 找不到 apt 软件包。
当我运行 apt-get 时,我从 shell 收到一条消息,指出找不到命令 apt-get。当我尝试 yum install apt 或 yum install apt-get 时,我收到一条消息,说 yum 找不到软件包,并且无事可做,
我怀疑这可能是编辑源列表(与 apt 一样)以添加apt 的来源,但我 a) 不知道这个来源列表在哪里,b) 不知道什么来源会提供 apt...
如果有人能启发我,我将不胜感激
I'm setting up a Linux Red Hat web server. apt-get isn't installed, but yum is. However, yum cannot find the apt package.
When I run apt-get, I get a message from the shell saying that the command apt-get couldn't be found. When I try yum install apt or yum install apt-get I get a message saying yum couldn't find the package and there was nothing to do
I suspect that it's probably a case of editing a sources list (as with apt) to add the source that apt is available from, but I a) don't know where this source list would be, and b) don't know what source would provide apt...
If anyone could enlighten me, it would be greatly appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您有 Red Hat 服务器,请使用 yum。 apt-get 仅适用于 Debian、Ubuntu 和其他一些相关的 Linux。
你为什么要使用apt-get? (看来你知道yum是什么。)
If you have a Red Hat server use yum. apt-get is only for Debian, Ubuntu and some other related linux.
Why would you want to use apt-get anyway? (It seems like you know what yum is.)
如果您坚持使用
yum
,请尝试yum install apt
。正如本网站上所读到的:
链接
If you insist on using
yum
, tryyum install apt
.As read on this site:
Link
我认为您遇到了问题,因为 RedHat 使用 RPM 来管理软件包。基于 Debian 的系统使用 DEB,它们通过 apt 等工具进行管理。
I think you're running into problems because RedHat uses RPM for managing packages. Debian based systems use DEBs, which are managed with tools like apt.
可能某些 URL 已损坏,请研究它。
尽情享受吧~~
maybe some URL is broken,please research it.
Enjoy~~