Linux rpm 安装但无法删除。为什么?

发布于 2024-09-01 11:30:33 字数 1549 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

晨与橙与城 2024-09-08 11:30:34
  1. 安装后,使用包名称,而不是包文件名。
  2. 您不需要在升级之前删除软件包。这样做意味着其中一个或两个包已损坏。
  1. Once installed, use the package name, not the package filename.
  2. You should not need to remove a package before upgrading it. Doing so means that one or both of the packages are broken.
夏尔 2024-09-08 11:30:34

它未被删除的原因可能是因为其中一个脚本失败。手动执行并注意错误。如果它提到失败的 scriptlet,请尝试使用 rpm -e --noscripts 删除它

The reason it is not erased is likely because one of the scriptlets is failing. Do it manually and watch for errors. If it mentions a failed scriptlet, try erasing it with rpm -e --noscripts

薄暮涼年 2024-09-08 11:30:34

rpm -e --force不会强制删除软件包,rpm -e --nodeps 通过停止它来检查其他依赖项。

您的 RPM 数据库可能在某种程度上变形了,您可能希望尝试 rpm --rebuilddb

rpm -e --force will not forcibly remove a package, rpm -e --nodeps will by stopping it to check for other dependencies.

It's possible your RPM database is in some way bent out of shape, you may wish to try an rpm --rebuilddb

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文