PDA

View Full Version : Yumex under amnesia



jacbro
17th December 2006, 10:19 PM
Good day to you all.
This is just another question about (sometimes) weird behavior of YUMEX.

I pasted here the result after resetting the repository cache. At that point, the next operation has been a long one (at least for me, under a dialup connection).

But the problem is that Yumex does not recognizes the packages already installed on my computer. BTW I'm running under FC 5.

With the way yumex ended its job, there is nothing I can do...
UPDATE and REMOVE menus give a blank result screen. According to yumex, I have nothing installed, so nothing to update or delete...
And the INSTALL menu is reporting all the available packages, even (and naturally) all those already installed on my machine..

Can someone give me a wall to bang my head on ?
How can I 'restore' yumex memory's about the already installed packages ?

Thanks in advance.
If any more infos are required, I will submit it.

Jacques



RESULT SCREEN AFTER RELOADING THE REPOSITORIES DATA
15:44:24 : Current Settings :
15:44:25 : autocleanup: False
15:44:25 : autorefresh: False
15:44:25 : debug: True
15:44:25 : exclude: []
15:44:25 : filelists: False
15:44:25 : fullobsoletion: False
15:44:25 : mirrordetection: 'best'
15:44:25 : noplugins: False
15:44:25 : processsafemode: True
15:44:25 : proxy: ''
15:44:25 : recentdays: 14
15:44:25 : usecache: False
15:44:25 : Mirrordetection : best
15:44:25 : Yum Version : 2.6.1 (/usr/share/yum-cli)
15:44:25 : Setup Yum : Config
15:44:25 : Setup Yum : Plugins
15:44:25 : Setup Yum : Transaction Set
15:44:25 : Setup Yum : RPM Db.
15:44:25 : Setup Yum : Base setup completed
15:44:25 : Enable/Disable Repositories
15:44:35 : Loading Repositories Data
15:44:35 : Loading Repositories Data : Init. core repository
15:44:35 : Loading Repositories Data : Init. extras repository
15:44:35 : Determining best mirrors for extras
15:44:52 : --> Mirrors Detected (Top 3)
15:44:52 : ---> http://download.fedora.redhat.com/pub/fedora/linux/extras/5/i386/
15:44:52 : Loading Repositories Data : Init. updates repository
15:44:52 : Determining best mirrors for updates
15:45:00 : --> Mirrors Detected (Top 3)
15:45:00 : ---> http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/i386/
15:45:00 : Loading Repositories Data : Populate Package Sack for core
15:45:00 : Loading Repositories Data : Populate Package Sack for extras
15:54:48 : Added 5902 new packages, deleted 0 old in 72.62 seconds
15:54:48 : Loading Repositories Data : Populate Package Sack for updates
15:59:36 : Added 1018 new packages, deleted 0 old in 16.39 seconds
15:59:36 : Loading Repository Group Data
15:59:52 : Loading Repositories Data completed
15:59:52 : Writing Mirrorcache to disk
15:59:52 : --> Repositories saved: core,extras,updates
15:59:52 : Building Package Lists : Updates
15:59:54 : Building Package Lists : 0 Updates found
15:59:54 : Building Package Lists : Installed
15:59:54 : Building Package Lists : 0 Installed packages found
15:59:54 : Building Package Lists : Available
16:00:53 : Building Package Lists : 5948 Available packages found
16:00:53 : Building Package Lists completed
16:00:53 : Updating groups view, populate view with data
16:00:53 : Repository initialization completed in 988.90 seconds

Seve
17th December 2006, 11:07 PM
Hello:
Since yumex is a front end gui for yum.
You could try using yum
yum clean all
then try
yum check-update
if it processes fine then exit and give yumex a whirl again
If yum is somehow behaving the same way you may have to rebuild the db to do so, please see this thread Post #11 http://forums.fedoraforum.org/forum/showthread.php?t=135473&highlight=timdsmith
if yumex isn't working any better, try yum remove yumex
then yum clean all
yum install yumex

Seve

jacbro
18th December 2006, 04:16 AM
Thanks for your response Seve
But
1- been there using yum only...same response: nothing to update because nothing is installed. It does not see any installed packages, as with yumex.
2- I cannot use yum to remove yumex, because no installed packages are seen. And if I try to install yumex, I get a lot of dependencies errors...

Any way to reload installed packages database ?
rpm --initdb or --rebuilddb are not giving any results.

TIA
Jacques

jacbro
18th December 2006, 04:27 AM
Here is the result when I try to remove yumex with yum:
[root@localhost ~]# yum remove yumex
Setting up Remove Process
No Match for argument: yumex
No Packages marked for removal
[root@localhost ~]#

or using rpm :
[root@localhost ~]# rpm -e yumex
error: package yumex is not installed
[root@localhost ~]#

Thanks for your help

Seve
18th December 2006, 04:53 AM
Hello:

You likely have to remove the old rpm dbs and rebuild

Have you tried logging in as root using su -
and running

rm /var/lib/rpm/__db* <--- the __ is 2 underscores

then run

rpm --rebuilddb

then try

yum check-update

If yum works, you could try yumex and if it is still not working correctly then use yum to remove and re-install


Seve

jacbro
18th December 2006, 04:59 AM
Thanks Seve
I deleted the database files.

Not working ......

[root@localhost ~]# rpm --rebuilddb
[root@localhost ~]# yum check-update
Setting up repositories
core [1/3]
extras [2/3]
updates [3/3]
Reading repository metadata in from local files
[root@localhost ~]# yum list installed
[root@localhost ~]# yum remove yumex
Setting up Remove Process
No Match for argument: yumex
No Packages marked for removal
[root@localhost ~]#


And I can't use yum to remove yumex?!?!?!?!!!!!!!!!!

Jacques

Seve
18th December 2006, 05:14 AM
Hello:
The good news is that yum seems to work :)
Since yum doesn't see yumex can you use yum to install yumex?

yum install yumex

Seve

jacbro
18th December 2006, 05:22 AM
To answer your question Seve : No. So many packages need to be installed before I install yumex than i'm running into a dependency hell. ( always according to the fact that yum does not see the installed packages, neither yumex.)


Here is a sequence of operations I tried, without success :

[root@localhost ~]# yum clean all
Cleaning up Everything
110 headers removed
0 packages removed
11 metadata files removed
0 cache files removed
3 cache files removed
[root@localhost ~]# rpm --rebuilddb
[root@localhost ~]# yum list installed
[root@localhost ~]# yum remove yumex
Setting up Remove Process
No Match for argument: yumex
No Packages marked for removal
[root@localhost ~]# yum check-update
Setting up repositories
core [1/3]
core 100% |=========================| 1.1 kB 00:00
extras [2/3]
extras 100% |=========================| 1.1 kB 00:00
updates [3/3]
updates 100% |=========================| 1.2 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 767 kB 02:52
core : ################################################## 2207/2207
Added 2207 new packages, deleted 0 old in 25.99 seconds
primary.xml.gz 100% |=========================| 1.8 MB 07:08
extras : ################################################## 5902/5902
Added 5902 new packages, deleted 0 old in 71.63 seconds
primary.xml.gz 100% |=========================| 360 kB 01:28
updates : ################################################## 1018/1018
Added 1018 new packages, deleted 0 old in 16.98 seconds
[root@localhost ~]# yum list installed
[root@localhost ~]# yum remove yumex
Setting up Remove Process
No Match for argument: yumex
No Packages marked for removal
[root@localhost ~]#

Seriously asking myself what the hell is happening.

TIA
Jacques

Seve
18th December 2006, 05:31 AM
Hello:
You need to first run

rm /var/lib/rpm/__db*

then take a look in /var/lib/rpm to ensure that there is nothing there

then run

rpm --rebuilddb

Seve

jacbro
18th December 2006, 05:38 AM
Seve
I already tried it , without positive results.

I erased everything ih the /var/....__db? and recreated the databases.
same problem.

I'm punching off for today. Must wake up at 5:40 tomorrow morning.
Thanks for your help Seve.

Jacques