无法安装 yum-utils 来解决由于冲突而导致安装损坏的问题

发布于 2024-12-27 15:03:18 字数 1011 浏览 4 评论 0原文

我正在尝试安装 yum-utils 包来解决损坏的安装,但由于冲突而失败:

sudo yum install yum-utils --skip-broken

返回

Loaded plugins: fastestmirror, priorities, security, update-motd
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.30-6.11.amzn1 will be installed
--> Processing Conflict: yum-utils-1.1.30-6.11.amzn1.noarch conflicts system-release <= 2011.09-1.33
--> Finished Dependency Resolution

Packages skipped because of dependency problems:
yum-utils-1.1.30-6.11.amzn1.noarch from amzn-updates

我发现自己处于 catch-22 情况,并且我不知道如何解决它。由于安装损坏,无法使用 yum 安装任何软件包(建议运行 yum-utils 中的 yum-complete-transaction),但安装 yum-utils 也会失败。

任何帮助将不胜感激。

谢谢, 中号

I am trying to install yum-utils package to resolve a broken installation, but it fails due to a conflict:

sudo yum install yum-utils --skip-broken

returns

Loaded plugins: fastestmirror, priorities, security, update-motd
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.30-6.11.amzn1 will be installed
--> Processing Conflict: yum-utils-1.1.30-6.11.amzn1.noarch conflicts system-release <= 2011.09-1.33
--> Finished Dependency Resolution

Packages skipped because of dependency problems:
yum-utils-1.1.30-6.11.amzn1.noarch from amzn-updates

I am finding myself in a catch-22 situation and I don't know how to resolve it. Cannot install any package with yum because of a broken installation (it recommends to run yum-complete-transaction which is in yum-utils), but installing yum-utils also fails.

Any help would be greatly appreciated.

Thanks,
M

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

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

发布评论

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

评论(1

八巷 2025-01-03 15:03:18

好吧,我遇到了同样的问题 - yum 被炸毁了,我无法安装 yum-complete-transaction。

最后,我所做的是从另一个 Amazon 实例复制 /usr/sbin/yum-complete-transaction,然后运行它,并在完成剩余事务后安装“yum-utils”包。

我知道这可能不是修复它的“最正确”方法,但它确实有效,而且坦率地说,如果它很愚蠢但有效,那么它并不愚蠢:)

Okay, I ran into the same problem - yum bombed out and I couldn't install yum-complete-transaction.

In the end, what I did was copy /usr/sbin/yum-complete-transaction across from another Amazon instance, then ran it and after it finished the remaining transactions installed the 'yum-utils' package.

I know this is probably not the 'most correct' method to fix it, but it worked and quite frankly, if it's stupid but worked, it's not stupid :)

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