首页 > 其他分享 >【转载】GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_2dengine_2derror_2dquark.Code1:Prepared updat

【转载】GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_2dengine_2derror_2dquark.Code1:Prepared updat

时间:2023-03-12 16:48:19浏览次数:49  
标签:Code1 GDBus x86 update 64 Error var

我的阿里云上的 CentOS 8 碰到这个错误,采用下面Best Response 中针对RHEL 8的解决办法,成功解决。

原文:

原文链接:https://access.redhat.com/discussions/4728791

Unable to update - os updates

Latest response March 2 2022 at 3:52 PM

unable to update "null"

GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_2dengine_2derror_2dquark.Code1:Prepared update not found: /var/lib/PackageKit/prepare-update

Operating system

[root@localhost bin]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.0 (Ootpa)

Error while perform update - dnf

[root@localhost bin]# sudo dnf upgrade
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 2.9 kB/s | 4.5 kB 00:01
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 2.6 kB/s | 4.1 kB 00:01
Error:
Problem: cannot install the best update candidate for package libidn2-2.0.5-1.el8.x86_64
- nothing provides libunistring.so.0()(64bit) needed by libidn2-2.3.0-1.el7.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@localhost bin]#

Error when using yum

[root@localhost bin]# yum update
Updating Subscription Management repositories.
Last metadata expiration check: 0:03:49 ago on Friday 17 January 2020 07:12:13 AM IST.
Error:
Problem: cannot install the best update candidate for package libidn2-2.0.5-1.el8.x86_64
- nothing provides libunistring.so.0()(64bit) needed by libidn2-2.3.0-1.el7.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@localhost bin]#

JK   Started January 12 2020 at 3:02 AM by jegadeesh kumarasami    Best Response 12 January 2020 1:05 PM Christian Labisch  Community Leader

Hi Jegadeesh,

This might be a temporary issue, PackageKit runs alongside DNF ... check if the following commands resolve it. :)

On RHEL 7 :

sudo yum clean all
sudo rm -r /var/cache/yum
sudo rm -r /var/cache/PackageKit
sudo yum update

On RHEL 8 :

sudo dnf clean all
sudo rm -r /var/cache/dnf
sudo rm -r /var/cache/PackageKit
sudo dnf upgrade

In case this doesn't resolve it, follow the instructions in the link RJ has provided and repeat the commands again.

Regards,
Christian

标签:Code1,GDBus,x86,update,64,Error,var
From: https://www.cnblogs.com/teacher-chen/p/17208414.html

相关文章