LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   yum duplicates (https://www.linuxquestions.org/questions/linux-software-2/yum-duplicates-4175540285/)

DBabo 04-20-2015 09:29 PM

yum duplicates
 
i'm definitely smoking something bad these days.
Earlier last week i discovered a completely hosed rpm DB on F21. Now i'm having "fun" with the duplicates in RH6.5:
Code:

[root@server ~]# package-cleanup --cleandu
Loaded plugins: auto-update-debuginfo
adobe-linux-x86_64                                                                                    2/2
google-chrome                                                                                        3/3
google-talkplugin                                                                                    1/1
https://copr-be.cloud.fedoraproject.org/results/jenslody/codeblocks/epel-6.5-x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
jenslody.de                                                                        | 1.9 kB    00:00   
jenslody.de/primary_db                                                            |  19 kB    00:00   
linuxtech-release                                                                  | 2.6 kB    00:00   
linuxtech-release/primary_db                                                      | 696 kB    00:00   
rpmfusion-free-updates                                                            | 2.7 kB    00:00   
rpmfusion-free-updates/primary_db                                                  | 267 kB    00:00   
sl                                                                                | 3.6 kB    00:01   
sl/primary_db                                                                      | 4.1 MB    00:05   
sl-security                                                                        | 2.9 kB    00:00   
sl-security/primary_db                                                            | 7.5 MB    00:09   
virtualbox                                                                        |  951 B    00:00   
virtualbox/primary                                                                | 5.6 kB    00:00   
virtualbox                                                                                          20/20
No duplicates to remove
[root@server ~]# rpm -qa | grep a52dec
a52dec-0.7.4-15.el6.3.i686
a52dec-0.7.4-10.el6.x86_64

[root@server ~]# rpm -ql a52dec-0.7.4-15.el6.3.i686
/usr/bin/a52dec
/usr/bin/extract_a52
/usr/lib/liba52.so.0
/usr/lib/liba52.so.0.0.0
/usr/share/doc/a52dec-0.7.4
/usr/share/doc/a52dec-0.7.4/AUTHORS
/usr/share/doc/a52dec-0.7.4/COPYING
/usr/share/doc/a52dec-0.7.4/ChangeLog
/usr/share/doc/a52dec-0.7.4/HISTORY
/usr/share/doc/a52dec-0.7.4/NEWS
/usr/share/doc/a52dec-0.7.4/TODO
/usr/share/man/man1/a52dec.1.gz
/usr/share/man/man1/extract_a52.1.gz
[root@server ~]# rpm -ql a52dec-0.7.4-10.el6.x86_64
/usr/bin/a52dec
/usr/bin/extract_a52
/usr/share/man/man1/a52dec.1.gz
/usr/share/man/man1/extract_a52.1.gz
[root@server ~]# file /usr/bin/a52dec
/usr/bin/a52dec: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
[root@server ~]# file /usr/bin/extract_a52
/usr/bin/extract_a52: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
[root@server ~]# file /usr/lib/liba52.so.0
/usr/lib/liba52.so.0: symbolic link to `liba52.so.0.0.0'
[root@server ~]# file /usr/lib/liba52.so.0
liba52.so.0      liba52.so.0.0.0 
[root@server ~]# file /usr/lib/liba52.so.0.0.0
/usr/lib/liba52.so.0.0.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped

i did yum clean all. But still can't remove the packages.
Any advise is welcomed.

Code:

[root@server ~]# yum remove a52dec
Loaded plugins: auto-update-debuginfo, changelog, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package a52dec.x86_64 0:0.7.4-10.el6 will be erased
---> Package a52dec.i686 0:0.7.4-15.el6.3 will be erased
--> Finished Dependency Resolution
https://copr-be.cloud.fedoraproject.org/results/jenslody/codeblocks/epel-6.5-x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: jenslody-codeblocks. Please verify its path and try again
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
a52dec-0.7.4-15.el6.3.i686 is a duplicate with a52dec-0.7.4-10.el6.x86_64


DBabo 04-20-2015 09:44 PM

ohhhh, what a .....
Code:

[root@server ~]# rpm -qa | grep i686
a52dec-0.7.4-15.el6.3.i686
libaio-0.3.107-10.el6.i686
nss-softokn-freebl-3.14.3-12.el6_5.i686
libaio-devel-0.3.107-10.el6.i686
glibc-2.12-1.149.el6_6.5.i686


DBabo 04-20-2015 09:47 PM

hmmm. still can't get rid of :
Code:

[root@server ~]# package-cleanup --cleandupes
Loaded plugins: auto-update-debuginfo
https://copr-be.cloud.fedoraproject.org/results/jenslody/codeblocks/epel-6.5-x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
No duplicates to remove

[root@server ~]# rpm -qa | grep i686
a52dec-0.7.4-15.el6.3.i686
libaio-0.3.107-10.el6.i686
nss-softokn-freebl-3.14.3-12.el6_5.i686
libaio-devel-0.3.107-10.el6.i686
glibc-2.12-1.149.el6_6.5.i686

[root@server ~]# yum remove glibc-2.12-1.149.el6_6.5.i686
Loaded plugins: auto-update-debuginfo, changelog, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package glibc.i686 0:2.12-1.149.el6_6.5 will be erased
--> Processing Dependency: libc.so.6 for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libc.so.6 for package: a52dec-0.7.4-15.el6.3.i686
--> Processing Dependency: libc.so.6(GLIBC_2.0) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libc.so.6(GLIBC_2.0) for package: a52dec-0.7.4-15.el6.3.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1) for package: a52dec-0.7.4-15.el6.3.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1.3) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1.3) for package: a52dec-0.7.4-15.el6.3.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3.4) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3.4) for package: a52dec-0.7.4-15.el6.3.i686
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: a52dec-0.7.4-15.el6.3.i686
--> Processing Dependency: libc.so.6(GLIBC_2.7) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libdl.so.2 for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libdl.so.2(GLIBC_2.0) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libdl.so.2(GLIBC_2.1) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libm.so.6 for package: a52dec-0.7.4-15.el6.3.i686
--> Processing Dependency: libm.so.6(GLIBC_2.0) for package: a52dec-0.7.4-15.el6.3.i686
--> Processing Dependency: libm.so.6(GLIBC_2.1) for package: a52dec-0.7.4-15.el6.3.i686
--> Running transaction check
---> Package a52dec.i686 0:0.7.4-15.el6.3 will be erased
---> Package nss-softokn-freebl.i686 0:3.14.3-12.el6_5 will be erased
--> Finished Dependency Resolution
https://copr-be.cloud.fedoraproject.org/results/jenslody/codeblocks/epel-6.5-x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: jenslody-codeblocks. Please verify its path and try again
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
a52dec-0.7.4-15.el6.3.i686 is a duplicate with a52dec-0.7.4-10.el6.x86_64

[root@server ~]# yum remove glibc-2.12-1.149.el6_6.5.i686 --exclude a52dec
Loaded plugins: auto-update-debuginfo, changelog, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package glibc.i686 0:2.12-1.149.el6_6.5 will be erased
--> Processing Dependency: libc.so.6 for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
<skip>
--> Running transaction check
---> Package a52dec.i686 0:0.7.4-15.el6.3 will be erased
---> Package nss-softokn-freebl.i686 0:3.14.3-12.el6_5 will be erased
--> Finished Dependency Resolution
https://copr-be.cloud.fedoraproject.org/results/jenslody/codeblocks/epel-6.5-x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: jenslody-codeblocks. Please verify its path and try again
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
a52dec-0.7.4-15.el6.3.i686 is a duplicate with a52dec-0.7.4-10.el6.x86_64

[root@server ~]# yum repolist
Loaded plugins: auto-update-debuginfo, changelog, security
https://copr-be.cloud.fedoraproject.org/results/jenslody/codeblocks/epel-6.5-x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
repo id                                repo name                                                    status
adobe-linux-x86_64                    Adobe Systems Incorporated                                        2
elrepo                                ELRepo.org Community Enterprise Linux Repository - el6          325
epel                                  Extra Packages for Enterprise Linux 6 - x86_64              11,373
epel-debuginfo                        Extra Packages for Enterprise Linux 6 - x86_64 - Debug        2,192
google-chrome                          google-chrome                                                    3
google-talkplugin                      google-talkplugin                                                1
jenslody.de                            CentOS 6.5 - x86_64 - jenslody.de                                18
linuxtech-release                      LinuxTECH.NET el6 production repo                            1,161
rpmfusion-free-updates                RPM Fusion for EL 6 - Free - Updates                            293
rpmfusion-free-updates-debuginfo      RPM Fusion for EL 6 - Free - Updates Debug                      59
sl                                    Scientific Linux 6.5 - x86_64                                6,524
sl-debuginfo                          Scientific Linux Debuginfo                                    9,437
sl-security                            Scientific Linux 6.5 - x86_64 - security updates              1,517
virtualbox                            RHEL/CentOS-6.5 / x86_64 - VirtualBox                            20
repolist: 32,925


T3RM1NVT0R 04-20-2015 10:43 PM

Did you try:

Code:

rpm -e a52dec-0.7.4-15.el6.3.i686
If yes, what was the result?

Which repository this URL belongs to: "https://copr-be.cloud.fedoraproject.org/results/jenslody/codeblocks/epel-6.5-x86_64/repodata/repomd.xml"

Comment out this URL in that repository, try yum clean all and then yum repolist

DBabo 04-21-2015 07:15 AM

Quote:

Originally Posted by T3RM1NVT0R (Post 5350513)
Did you try:

Code:

rpm -e a52dec-0.7.4-15.el6.3.i686
If yes, what was the result?

Which repository this URL belongs to: "https://copr-be.cloud.fedoraproject.org/results/jenslody/codeblocks/epel-6.5-x86_64/repodata/repomd.xml"

Comment out this URL in that repository, try yum clean all and then yum repolist

rpm -e took care of the ac52.
the "https" - belongs to "jenslody-codeblocks" repo.

that did it:
Code:

[root@server ~]# yum clean all
Loaded plugins: auto-update-debuginfo, changelog, security
Repository 'jenslody-codeblocks': Error parsing config: Error parsing "enabled = 'o'": invalid boolean value
Cleaning repos: adobe-linux-x86_64 elrepo epel google-chrome google-talkplugin linuxtech-release
              : rpmfusion-free-updates sl sl-security virtualbox
Cleaning up Everything
[root@server ~]# yum repolist
Loaded plugins: auto-update-debuginfo, changelog, security
Repository 'jenslody-codeblocks': Error parsing config: Error parsing "enabled = 'o'": invalid boolean value
adobe-linux-x86_64                                                                |  951 B    00:00   
adobe-linux-x86_64/primary                                                        | 1.2 kB    00:00   
adobe-linux-x86_64                                                                                    2/2
elrepo                                                                            | 2.9 kB    00:00   
elrepo/primary_db                                                                  | 717 kB    00:01   
epel/metalink                                                                      |  15 kB    00:00   
epel                                                                              | 4.4 kB    00:00   
epel/primary_db                                                                    | 6.5 MB    00:03   
google-chrome                                                                      |  951 B    00:00   
google-chrome/primary                                                              | 1.9 kB    00:00   
google-chrome                                                                                        3/3
google-talkplugin                                                                  |  951 B    00:00   
google-talkplugin/primary                                                          | 1.4 kB    00:00   
google-talkplugin                                                                                    1/1
linuxtech-release                                                                  | 2.6 kB    00:00   
linuxtech-release/primary_db                                                      | 696 kB    00:00   
rpmfusion-free-updates                                                            | 2.7 kB    00:00   
rpmfusion-free-updates/primary_db                                                  | 267 kB    00:00   
sl                                                                                | 3.6 kB    00:00   
sl/primary_db                                                                      | 4.1 MB    00:05   
sl-security                                                                        | 2.9 kB    00:00   
sl-security/primary_db                                                            | 7.5 MB    00:09   
virtualbox                                                                        |  951 B    00:00   
virtualbox/primary                                                                | 5.6 kB    00:00   
virtualbox                                                                                          20/20
repo id                                repo name                                                    status
adobe-linux-x86_64                    Adobe Systems Incorporated                                        2
elrepo                                ELRepo.org Community Enterprise Linux Repository - el6          325
epel                                  Extra Packages for Enterprise Linux 6 - x86_64              11,373
epel-debuginfo                        Extra Packages for Enterprise Linux 6 - x86_64 - Debug        2,192
google-chrome                          google-chrome                                                    3
google-talkplugin                      google-talkplugin                                                1
linuxtech-release                      LinuxTECH.NET el6 production repo                            1,161
rpmfusion-free-updates                RPM Fusion for EL 6 - Free - Updates                            293
rpmfusion-free-updates-debuginfo      RPM Fusion for EL 6 - Free - Updates Debug                      59
sl                                    Scientific Linux 6.5 - x86_64                                6,524
sl-debuginfo                          Scientific Linux Debuginfo                                    9,437
sl-security                            Scientific Linux 6.5 - x86_64 - security updates              1,517
virtualbox                            RHEL/CentOS-6.5 / x86_64 - VirtualBox                            20
repolist: 32,907
[root@server ~]# vi /etc/yum.repos.d/centos-jenslody.de.repo
[root@server ~]#
[root@server ~]#
[root@server ~]# yum repolist
Loaded plugins: auto-update-debuginfo, changelog, security
repo id                                repo name                                                    status
adobe-linux-x86_64                    Adobe Systems Incorporated                                        2
elrepo                                ELRepo.org Community Enterprise Linux Repository - el6          325
epel                                  Extra Packages for Enterprise Linux 6 - x86_64              11,373
epel-debuginfo                        Extra Packages for Enterprise Linux 6 - x86_64 - Debug        2,192
google-chrome                          google-chrome                                                    3
google-talkplugin                      google-talkplugin                                                1
linuxtech-release                      LinuxTECH.NET el6 production repo                            1,161
rpmfusion-free-updates                RPM Fusion for EL 6 - Free - Updates                            293
rpmfusion-free-updates-debuginfo      RPM Fusion for EL 6 - Free - Updates Debug                      59
sl                                    Scientific Linux 6.5 - x86_64                                6,524
sl-debuginfo                          Scientific Linux Debuginfo                                    9,437
sl-security                            Scientific Linux 6.5 - x86_64 - security updates              1,517
virtualbox                            RHEL/CentOS-6.5 / x86_64 - VirtualBox                            20
repolist: 32,907

[root@server ~]# rpm -qa | grep i686
nss-softokn-freebl-3.14.3-12.el6_5.i686
libaio-0.3.107-10.el6.i686
glibc-2.12-1.149.el6_6.5.i686
libaio-devel-0.3.107-10.el6.i686

[root@server ~]# yum remove glibc-2.12-1.149.el6_6.5.i686
Loaded plugins: auto-update-debuginfo, changelog, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package glibc.i686 0:2.12-1.149.el6_6.5 will be erased
--> Processing Dependency: libc.so.6 for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libc.so.6(GLIBC_2.0) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1.3) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3.4) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libc.so.6(GLIBC_2.7) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libdl.so.2 for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libdl.so.2(GLIBC_2.0) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Processing Dependency: libdl.so.2(GLIBC_2.1) for package: nss-softokn-freebl-3.14.3-12.el6_5.i686
--> Running transaction check
---> Package nss-softokn-freebl.i686 0:3.14.3-12.el6_5 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================
 Package                      Arch          Version                        Repository              Size
==========================================================================================================
Removing:
 glibc                        i686          2.12-1.149.el6_6.5              @sl-security            13 M
Removing for dependencies:
 nss-softokn-freebl          i686          3.14.3-12.el6_5                @sl-security          363 k

Transaction Summary
==========================================================================================================
Remove        2 Package(s)

Installed size: 14 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Erasing    : nss-softokn-freebl-3.14.3-12.el6_5.i686                                                1/2
  Erasing    : glibc-2.12-1.149.el6_6.5.i686                                                          2/2
  Verifying  : glibc-2.12-1.149.el6_6.5.i686                                                          1/2
  Verifying  : nss-softokn-freebl-3.14.3-12.el6_5.i686                                                2/2

Removed:
  glibc.i686 0:2.12-1.149.el6_6.5                                                                       

Dependency Removed:
  nss-softokn-freebl.i686 0:3.14.3-12.el6_5                                                             

Complete!
[root@server ~]# yum remove nss-softokn-freebl-3.14.3-12.el6_5.i686  libaio-0.3.107-10.el6.i686 libaio-devel-0.3.107-10.el6.i686
Loaded plugins: auto-update-debuginfo, changelog, security
Setting up Remove Process
No Match for argument: nss-softokn-freebl-3.14.3-12.el6_5.i686
Package(s) nss-softokn-freebl-3.14.3-12.el6_5.i686 available, but not installed.
Resolving Dependencies
--> Running transaction check
---> Package libaio.i686 0:0.3.107-10.el6 will be erased
---> Package libaio-devel.i686 0:0.3.107-10.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================
 Package                    Arch                Version                        Repository          Size
==========================================================================================================
Removing:
 libaio                      i686                0.3.107-10.el6                  @sl                31 k
 libaio-devel                i686                0.3.107-10.el6                  @sl                19 k

Transaction Summary
==========================================================================================================
Remove        2 Package(s)

Installed size: 50 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : libaio-devel-0.3.107-10.el6.i686                                                      1/2
  Erasing    : libaio-0.3.107-10.el6.i686                                                            2/2
  Verifying  : libaio-0.3.107-10.el6.i686                                                            1/2
  Verifying  : libaio-devel-0.3.107-10.el6.i686                                                      2/2

Removed:
  libaio.i686 0:0.3.107-10.el6                    libaio-devel.i686 0:0.3.107-10.el6                   

Complete!
[root@server ~]#
[root@server ~]# rpm -qa | grep i686[root@server ~]#
[root@server ~]#

[root@server ~]# rpm -qa | grep a52
liba52-0.7.4-10.el6.x86_64
a52dec-0.7.4-10.el6.x86_64
[root@server ~]# rpm -ql a52dec-0.7.4-10.el6.x86_64
/usr/bin/a52dec
/usr/bin/extract_a52
/usr/share/man/man1/a52dec.1.gz
/usr/share/man/man1/extract_a52.1.gz


T3RM1NVT0R 04-21-2015 07:19 AM

Good to hear that! If everything looks good then please mark the thread as solved!

DBabo 04-21-2015 11:32 PM

Quote:

Originally Posted by T3RM1NVT0R (Post 5350662)
Good to hear that! If everything looks good then please mark the thread as solved!

update worked. Thank you for the help.

John VV 04-22-2015 02:03 PM

as you found out
rhel6 IS NOT!!!!! fedora 21

rhel6 rpm's can NOT be used on Fedora
( a few exceptions but then there ARE fedora versions OF them so....)
things like fonts and icons


All times are GMT -5. The time now is 09:56 PM.