Page 1 of 1

[Solved] Updates failing

PostPosted: Jan 17th, '18, 16:09
by DoubtingT
Hi,

Magiea 6

There was a round of updates recently that included one for microcode. My computer crashed whilst removing old versions, but everything seemed to carry on working properly. The update applet has been coming up for a few days now, telling me more updates are available, but when I try to install them, the box comes up empty with the sign-off message: 'The list of updates is empty. This means that either there is no available update for the packages installed on your computer, or you already installed all of them.'

MCC seems to indicate that the only bits of software I currently have installed are in: development, file tools, networking, office and system. A grand total of 8 programs - although they do include KDE, X11 and Mtools.

There is no status indicated for anything else.

I ran the following:

Code: Select all
[root@localhost]# urpmi --auto-update --test
urpmi database is locked, process 11455 is already using it (/usr/bin/perl /usr/libexec/drakrpm-editmedia --embedded 81789112)
[root@localhost]#


The last time the applet ran, this error message popped up before it reverted to telling me the list was empty.

Can someone help me fix this?

TIA

Re: Updates failing

PostPosted: Jan 17th, '18, 18:01
by wintpe
you can either reboot it, to clear the rpm/urpmi commands that are running in the background, then imeadiatly it comes up, open a terminal, su to root and then run the urpmi --auto-update.


or

ps -ef|grep rpm and kill them.


as for mcc, have you selected the all: all at the top or is it showing only gui

regards peter

Re: Updates failing

PostPosted: Jan 17th, '18, 18:50
by DoubtingT
Hi,

Thanks for looking in.

I rebooted and ran urpmi --auto-update. This is what happened:

Code: Select all
[root@localhost]# urpmi --auto-update
medium "Core Release (distrib1)" is up-to-date
medium "Core Updates (distrib3)" is up-to-date
medium "Nonfree Release (distrib11)" is up-to-date
medium "Nonfree Updates (distrib13)" is up-to-date
error: db5 error(-30986) from dbcursor->c_get: BDB0075 DB_PAGE_NOTFOUND: Requested page not found
Packages are up to date
error: db5 error(-30986) from dbcursor->c_get: BDB0075 DB_PAGE_NOTFOUND: Requested page not found
writing /var/lib/rpm/installed-through-deps.list

The following packages:
 akonadi-16.12.3-1.mga6.i586
 libkdeui5-4.14.35-1.mga6.i586
 libkf5baloowidgets5-16.12.3-1.mga6.i586
 libkf5decorationprivate5-5.8.7-1.mga6.i586
 libkf5prison5-5.32.0-1.mga6.i586
 libksignalplotter5-5.8.7-1.mga6.i586
 libopencl1-2.2.11-1.mga6.i586
 librarian0-0.8.1-15.mga6.i586
 libxml2-python-2.9.7-1.mga6.i586
 mtools-4.0.18-5.mga6.i586
 python3-qt5-dbus-5.6-8.mga6.i586
 x11-driver-video-vmware-13.2.1-4.mga6.i586
are now orphaned, if you wish to remove them, you can use "urpme --auto-orphans"
[root@localhost]#


The applet popped up again after a minute. Same result as before.

In MCC I have ALL and INSTALLED selected.

As I say, there are only eight allegedly installed programs. And I notice they're in the orphaned list. On the other hand, Thunderbird and Firefox appear on the general (ALL+ALL) list, but unchecked and with no status. It's a bit weird because the computer is running okay.

Should I go ahead and try ps -ef|grep rpm?

Thanks.

Re: Updates failing

PostPosted: Jan 17th, '18, 19:25
by doktor5000
DoubtingT wrote:As I say, there are only eight allegedly installed programs. And I notice they're in the orphaned list. On the other hand, Thunderbird and Firefox appear on the general (ALL+ALL) list, but unchecked and with no status. It's a bit weird because the computer is running okay.

Should I go ahead and try ps -ef|grep rpm?

Sure you can, but if no processes are found, you should rebuild your rpm packages database. See e.g. the bottom part at http://rpm.org/user_doc/db_recovery.html

This should suffice, run as root:

Code: Select all
rm -f /var/lib/rpm/__db*
rpm --rebuilddb

Re: Updates failing

PostPosted: Jan 17th, '18, 20:15
by DoubtingT
Hi,

I ran ps -ef|grep rpm

Code: Select all
[root@localhost]# ps -ef|grep rpm
root     13877 13840  0 17:45 pts/0    00:00:00 grep --color rpm
[root@localhost]#  


I'm only posting this in case it might be useful for someone else. I don't actually know what the output means. But rpm was coloured red.

Anyway, I then ran doktor5000's code and it seems to have done the trick. Software is now shown as having a status, updates have occurred and the applet has finally disappeared

Thanks to Peter and doktor5000 (as so often before). I'm marking this as solved.

Best.

Re: Updates failing

PostPosted: Jan 17th, '18, 21:11
by doktor5000
DoubtingT wrote:
Code: Select all
[root@localhost]# ps -ef|grep rpm
root     13877 13840  0 17:45 pts/0    00:00:00 grep --color rpm
[root@localhost]#  


I'm only posting this in case it might be useful for someone else. I don't actually know what the output means. But rpm was coloured red.


This always happens if you grep for a process, usually grep itself will appear in the process listing.

It also shows that no other rpm process was active.

Re: [Solved] Updates failing

PostPosted: Jan 17th, '18, 22:37
by DoubtingT
Thanks for that.

Something to look into if I run into this problem again.
Much appreciated.

Best.