[Solved] Updates failing

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[Solved] Updates failing

Postby DoubtingT » Jan 17th, '18, 16:09

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
Last edited by DoubtingT on Jan 17th, '18, 20:17, edited 2 times in total.
DoubtingT
 
Posts: 49
Joined: Jul 11th, '12, 15:21

Re: Updates failing

Postby wintpe » Jan 17th, '18, 18:01

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
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
wintpe
 
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK

Re: Updates failing

Postby DoubtingT » Jan 17th, '18, 18:50

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.
DoubtingT
 
Posts: 49
Joined: Jul 11th, '12, 15:21

Re: Updates failing

Postby doktor5000 » Jan 17th, '18, 19:25

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18055
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Updates failing

Postby DoubtingT » Jan 17th, '18, 20:15

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.
DoubtingT
 
Posts: 49
Joined: Jul 11th, '12, 15:21

Re: Updates failing

Postby doktor5000 » Jan 17th, '18, 21:11

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18055
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [Solved] Updates failing

Postby DoubtingT » Jan 17th, '18, 22:37

Thanks for that.

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

Best.
DoubtingT
 
Posts: 49
Joined: Jul 11th, '12, 15:21


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest