Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#173 closed defect (fixed)

"YUM version" gives an error

Reported by: Mat Owned by:
Priority: minor Milestone:
Component: yum Version:
Severity: low Keywords:
Cc:

Description

When entering "yum version" is gives error:
Error: Error accessing file for config file:///etc/yum/version-groups.conf
This file exists and can be opened with e.exe without problem.

Change History (7)

comment:1 Changed 8 years ago by Yuri Dario

Resolution: fixed
Status: newclosed

yum: change default file path. fixes ticket#173.
Committed revision r653.

comment:2 Changed 8 years ago by Mat

Thanks for the quick fix, but when will it be available? I did a "yum update" just now, and yum wasn't updated. I presume this is a small fix, can yum not be released with this fix? Or is there from yum more already Pending?

comment:3 Changed 8 years ago by Mat

I would like to test if this change really fixes it. Becaus ein the old code, the file path was /etc/yum/version-groups.conf . Now that unitroot is prepended, it will be (in my test partition) F:/etc/yum/version-groups.conf . As I was running this from F: anyway, I suspect this will not fix it. So please let me test it.
On another note, you have closed the ticket without verifying if the reporter (me) finds it fixed too. Unless you could duplicate the problem and the fix (but you don't mention this at all in your comment), then closing it without verification is not good.

comment:4 Changed 8 years ago by Yuri Dario

The new yum package is now online.

comment:5 Changed 8 years ago by Mat

Thank, but it doesn't allow me to update. It says:

[F:\usr\bin]yum update --skip-broken
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package yum.noarch 0:3.4.3-8.oc00 will be updated
---> Package yum.i686 0:3.4.3-9.oc00 will be an update
--> Processing Dependency: /@unixroot/usr/bin/bash for package: yum-3.4.3-9.oc00
.i686
--> Processing Dependency: /@unixroot/usr/bin/bash for package: yum-3.4.3-9.oc00
.i686

Packages skipped because of dependency problems:

yum-3.4.3-9.oc00.i686 from netlabs-rel

But unixroot is F: and in F:\usr\bin is bash.exe . Also the package manager says bash 3.2.0-7 (i386) is installed. It looks to me like the check for bash is incorrect, it is in the path.
Installing the i686 version (3.2.0-4) doesn't help, and it puts it in \bin instead of \usr\bin.

comment:6 Changed 8 years ago by Silvan Scherrer

yum update bash will fix it.

comment:7 Changed 8 years ago by Mat

Yes, it did, thanks. Curious that "yum update" didn't list bash as updatable. Anyway, I could update yum now, and can confirm "yum version" now indeed works:
================
[F:\]yum version
Warning: RPMDB altered outside of yum.
Installed: 00/i386 77:9e7961c6ca79c82733b081f67c9fcf3c4561acfe

Group-Installed: yum 10:24757c811c4c5a1cfa85ba72b7d91b5eaf71277b

version
================

Also, yum --version gives more usable info, I think:
================
[F:\]yum --version
3.4.3

Installed: rpm-4.8.1-25.oc00.i686 at 2016-02-22 18:57
Built : None at 2015-12-15 16:31
Committed: yd <yd@…> at 2015-12-15

Installed: yum-3.4.3-9.oc00.i686 at 2016-03-15 10:51
Built : None at 2016-02-18 20:57
Committed: yd <yd@…> at 2016-02-10

================

Note: See TracTickets for help on using tickets.