OS/2, eCS & ArcaOS - Technical > Applications
yum check problems
Andreas Schnellbacher:
Yes, I had similar database errors. I executed
--- Code: ---yum reinstall <pkg>
--- End code ---
for each listed package until the 'has missing requires' errors went away. An example:
--- Code: ---[D:\]set lang=en_US
[D:\]yum check
coreutils-8.6-11.oc00.i386 has missing requires of kintl.dll
cpio-2.11-4.oc00.i386 has missing requires of kintl.dll
diffutils-3.2-3.oc00.i386 has missing requires of kintl.dll
1:findutils-4.4.2-6.oc00.i386 has missing requires of kintl.dll
gettext-0.18.1.1-7.oc00.i386 has missing requires of kintl.dll
gettext-legacy-0.18.1.1-7.oc00.i386 provides ('kintl.dll', None, (None, None, No
ne)) but it cannot be found
grep-2.10-2.oc00.i386 has missing requires of kintl.dll
perl-core-5.16.1-1.oc00.i386 has missing requires of perl-Compress-Raw-Zlib
1:popt-libs-1.15-4.oc00.i386 has missing requires of kintl.dll
python-libs-2.7.6-10.oc00.i386 has missing requires of kintl.dll
sed-4.2.1-2.oc00.i386 has missing requires of kintl.dll
2:tar-1.23-7.oc00.i386 has missing requires of kintl.dll
Error: check all
[D:\]yum info gettext-libs
Installed Packages
Name : gettext-libs
Arch : i386
Version : 0.18.1.1
Release : 7.oc00
Size : 1.1 M
Repo : installed
Summary : Libraries for gettext
URL : http://www.gnu.org/software/gettext/
License : LGPLv2+
Description : This package contains libraries used internationalization support.
[D:\]yum reinstall gettext-libs
Setting up Reinstall Process
Resolving Dependencies
--> Running transaction check
---> Package gettext-libs.i386 0:0.18.1.1-7.oc00 will be reinstalled
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Reinstalling:
gettext-libs i386 0.18.1.1-7.oc00 netlabs-rel 929 k
Transaction Summary
================================================================================
Reinstall 1 Package
Total size: 929 k
Installed size: 929 k
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 11 pre-existing rpmdb problem(s), 'yum check' output follows:
coreutils-8.6-11.oc00.i386 has missing requires of kintl.dll
cpio-2.11-4.oc00.i386 has missing requires of kintl.dll
diffutils-3.2-3.oc00.i386 has missing requires of kintl.dll
1:findutils-4.4.2-6.oc00.i386 has missing requires of kintl.dll
gettext-0.18.1.1-7.oc00.i386 has missing requires of kintl.dll
grep-2.10-2.oc00.i386 has missing requires of kintl.dll
perl-core-5.16.1-1.oc00.i386 has missing requires of perl-Compress-Raw-Zlib
1:popt-libs-1.15-4.oc00.i386 has missing requires of kintl.dll
python-libs-2.7.6-10.oc00.i386 has missing requires of kintl.dll
sed-4.2.1-2.oc00.i386 has missing requires of kintl.dll
2:tar-1.23-7.oc00.i386 has missing requires of kintl.dll
Installing : gettext-libs-0.18.1.1-7.oc00.i386 1/1
Rpmdb checksum is invalid: dCDPT(pkg checksums)
[D:\]
--- End code ---
After that I had two duplicate database entries. I executed the commands below which I found in the Internet. Note that I had to install the yum-utils package. It fixes one duplicate. Unfortunately the duplicate entry of gettext-legacy remains. That is the .rpm file which provides kintl.dll.
--- Code: ---rpm --rebuilddb
yum reinstall <pkg>
yum install yum-utils
python \@unixroot\usr\sbin\yum-complete-transaction
python \@unixroot\usr\bin\package-cleanup --dupes
python \@unixroot\usr\bin\package-cleanup --cleandupes --skip-broken
rpm -e --justdb <package-version>
rpm -qa --queryformat="%{NAME} %{ARCH}\n" | sort | uniq -c | grep -v " 1 " | cut -c 9- | cut -d" " -f1
yum clean all
--- End code ---
Some examples with output. I used EPM's command shell for easier output catching:
--- Code: ---epm: D:\ > set lang=en_US
epm: D:\ > yum check
Error: check all
gettext-legacy-0.18.1.1-7.oc00.i386 is a duplicate with gettext-legacy-0.18.1.1-7.oc00.i386
epm: D:\ > rpm -ql gettext-legacy
/@unixroot/usr/lib/kintl.dll
/@unixroot/usr/lib/kintl.dll
epm: D:\ > rpm -q --whatrequires kintl.dll
findutils-4.4.2-6.oc00.i386
sed-4.2.1-2.oc00.i386
gettext-0.18.1.1-7.oc00.i386
grep-2.10-2.oc00.i386
cpio-2.11-4.oc00.i386
coreutils-8.6-11.oc00.i386
diffutils-3.2-3.oc00.i386
tar-1.23-7.oc00.i386
popt-libs-1.15-4.oc00.i386
epm: D:\ > python \@unixroot\usr\sbin\yum-complete-transaction
No unfinished transactions left.
epm: D:\ > python \@unixroot\usr\bin\package-cleanup --dupes
gettext-legacy-0.18.1.1-7.oc00.i386
gettext-legacy-0.18.1.1-7.oc00.i386
epm: D:\ > python \@unixroot\usr\bin\package-cleanup --cleandupes --skip-broken
--> Running transaction check
---> Package gettext-legacy.i386 0:0.18.1.1-7.oc00 will be erased
--> Processing Dependency: kintl.dll for package: 1:findutils-4.4.2-6.oc00.i386
--> Processing Dependency: kintl.dll for package: gettext-0.18.1.1-7.oc00.i386
--> Processing Dependency: kintl.dll for package: sed-4.2.1-2.oc00.i386
--> Processing Dependency: kintl.dll for package: 2:tar-1.23-7.oc00.i386
--> Processing Dependency: kintl.dll for package: coreutils-8.6-11.oc00.i386
--> Processing Dependency: kintl.dll for package: cpio-2.11-4.oc00.i386
--> Processing Dependency: kintl.dll for package: diffutils-3.2-3.oc00.i386
--> Processing Dependency: kintl.dll for package: 1:popt-libs-1.15-4.oc00.i386
--> Processing Dependency: kintl.dll for package: grep-2.10-2.oc00.i386
--> Running transaction check
---> Package coreutils.i386 0:8.6-11.oc00 will be erased
--> Processing Dependency: coreutils for package: rpm-4.8.1-23.oc00.i386
---> Package cpio.i386 0:2.11-4.oc00 will be erased
---> Package diffutils.i386 0:3.2-3.oc00 will be erased
---> Package findutils.i386 1:4.4.2-6.oc00 will be erased
---> Package gettext.i386 0:0.18.1.1-7.oc00 will be erased
---> Package grep.i386 0:2.10-2.oc00 will be erased
---> Package popt-libs.i386 1:1.15-4.oc00 will be erased
--> Processing Dependency: popt.dll for package: rpm-libs-4.8.1-23.oc00.i386
--> Processing Dependency: popt.dll for package: 1:pkgconfig-0.25-4.oc00.i386
--> Processing Dependency: popt-libs = 1:1.15-4.oc00 for package: 1:popt-1.15-4.oc00.i386
---> Package sed.i386 0:4.2.1-2.oc00 will be erased
---> Package tar.i386 2:1.23-7.oc00 will be erased
--> Running transaction check
---> Package pkgconfig.i386 1:0.25-4.oc00 will be erased
--> Processing Dependency: pkgconfig for package: apr-devel-1.4.5-1.oc00.i386
---> Package popt.i386 1:1.15-4.oc00 will be erased
---> Package rpm.i386 0:4.8.1-23.oc00 will be erased
--> Processing Dependency: rpm = 4.8.1-23.oc00 for package: rpm-python-4.8.1-23.oc00.i386
--> Processing Dependency: rpm >= 4.4.2 for package: yum-3.4.3-8.oc00.noarch
--> Processing Dependency: rpm >= 4.8.1-22 for package: gcc-4.9.2.1-3.oc00.i386
---> Package rpm-libs.i386 0:4.8.1-23.oc00 will be erased
--> Running transaction check
---> Package apr-devel.i386 0:1.4.5-1.oc00 will be erased
---> Package gcc.i386 0:4.9.2.1-3.oc00 will be erased
---> Package rpm-python.i386 0:4.8.1-23.oc00 will be erased
---> Package yum.noarch 0:3.4.3-8.oc00 will be erased
--> Processing Dependency: yum >= 3.2.27 for package: yum-utils-1.1.31-2.oc00.noarch
--> Processing Dependency: yum >= 2.6.2 for package: yum-metadata-parser-1.1.4-4.oc00.i386
--> Running transaction check
---> Package yum-metadata-parser.i386 0:1.1.4-4.oc00 will be erased
---> Package yum-utils.noarch 0:1.1.31-2.oc00 will be erased
--> Processing Dependency: /@unixroot/usr/bin/env for package: python-2.7.6-11.oc00.i386
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package python.i386 0:2.7.6-11.oc00 will be erased
--> Processing Dependency: python(abi) = 2.7 for package: urlgrabber-3.10.1-10.oc00.noarch
--> Processing Dependency: python(abi) = 2.7 for package: libxml2-2.7.7-5.oc00.i386
--> Processing Dependency: python = 2.7.6-11.oc00 for package: python-libs-2.7.6-11.oc00.i386
--> Running transaction check
---> Package libxml2.i386 0:2.7.7-5.oc00 will be erased
--> Processing Dependency: libxml2.dll for package: libxslt-1.1.26-2.oc00.i386
--> Processing Dependency: libxml2 >= 2.6.27 for package: libxslt-1.1.26-2.oc00.i386
---> Package python-libs.i386 0:2.7.6-11.oc00 will be erased
--> Processing Dependency: python27.dll for package: python-pycurl-7.19.5.1-1.oc00.i386
---> Package urlgrabber.noarch 0:3.10.1-10.oc00 will be erased
--> Running transaction check
---> Package libxslt.i386 0:1.1.26-2.oc00 will be erased
---> Package python-pycurl.i386 0:7.19.5.1-1.oc00 will be erased
--> Finished Dependency Resolution
Error: Trying to remove "yum", which is protected
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
gettext-legacy-0.18.1.1-7.oc00.i386 is a duplicate with gettext-legacy-0.18.1.1-7.oc00.i386
epm: D:\ > python \@unixroot\usr\bin\package-cleanup --dupes
gettext-legacy-0.18.1.1-7.oc00.i386
gettext-legacy-0.18.1.1-7.oc00.i386
epm: D:\ > rpm -ql gettext-legacy
/@unixroot/usr/lib/kintl.dll
/@unixroot/usr/lib/kintl.dll
epm: D:\ > yum provides kintl.dll
gettext-legacy-0.18.1.1-7.oc00.i386 : The old gettext library.
Repo : netlabs-rel
Matched from:
Other : kintl.dll
gettext-libs-0.18.1.1-3.oc00.i386 : Libraries for gettext
Repo : netlabs-rel
Matched from:
Other : kintl.dll
gettext-legacy-0.18.1.1-7.oc00.i386 : The old gettext library.
Repo : @netlabs-rel
Matched from:
Other : kintl.dll
epm: D:\ > rpm -e --justdb gettext-legacy-0.18.1.1-7.oc00.i386
error: "gettext-legacy-0.18.1.1-7.oc00.i386" specifies multiple packages:
gettext-legacy-0.18.1.1-7.oc00.i386
gettext-legacy-0.18.1.1-7.oc00.i386
epm: D:\ > yum info gettext-legacy
Installed Packages
Name : gettext-legacy
Arch : i386
Version : 0.18.1.1
Release : 7.oc00
Size : 28 k
Repo : installed
From repo : netlabs-rel
Summary : The old gettext library.
URL : http://www.gnu.org/software/gettext/
License : GPLv3+ and LGPLv2+
Description : The old gettext library.
epm: D:\ >
--- End code ---
Links:
http://trac.netlabs.org/rpm/wiki/RpmHowToEndUsers
http://9xhostingindia.blogspot.de/2014/04/rpmdb-checksum-is-invalid-directadmin.html
http://stackoverflow.com/questions/19418301/yum-error-package-is-a-duplicate-with
https://www.centos.org/forums/viewtopic.php?f=13&t=44279
https://www.centos.org/forums/viewtopic.php?f=13&t=44356
http://www.linuxquestions.org/questions/centos-*-111/remove-duplicate-libraries-centos-6-a-4175521205/
David McKenna:
Thanks for the links Andreas! Didn't know about yum-utils....
Martin Iturbide:
Hi
I tried first 'yum clean rpmdb', then 'yum check' without any results.
After that I checked the libpath and path which was a very good exercise, because I had a lot of conflicts there... after that I rebooted, again 'yum clean all', then 'yum check' with the same results.
Now I'm trying resintalling the packages... all of them. After that I will check the rebuilt commands.
Thanks for the hints.
Regards
Martin Iturbide:
Interesting, with "rpm --rebuilddb" the yum check message get reduced to:
--- Quote ---[C:\PROGRAMS\FHS]yum check
freetype-2.5.5-1.oc00.i386 is a duplicate with freetype-2.5.5-1.oc00.i386
gettext-legacy-0.18.3.2-1.oc00.i386 is a duplicate with gettext-legacy-0.18.3.2-1.oc00.i386
gettext-legacy-0.18.3.2-1.oc00.i386 is a duplicate with gettext-legacy-0.18.3.2-1.oc00.i386
rpm-python-4.8.1-23.oc00.i386 is a duplicate with rpm-python-4.8.1-23.oc00.i386
rpm-python-4.8.1-23.oc00.i386 is a duplicate with rpm-python-4.8.1-23.oc00.i386
rpm-python-4.8.1-23.oc00.i386 is a duplicate with rpm-python-4.8.1-23.oc00.i386
Error: check all
--- End quote ---
I will try the rest.
Martin Iturbide:
I'm not sure about what does the python scripts does.
I got this when running "rpm -e --justdb freetype".
--- Quote ---error: "freetype" specifies multiple packages:
freetype-2.5.5-1.oc00.i386
freetype-2.5.5-1.oc00.i386
--- End quote ---
and similar to the other two packages.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version