Page 1 of 1

OS Update installing failure

Posted: 2016/01/22 15:12:02
by noobofcentos

I have installed CentOS on my desktop and have seen the alert in Application Installer that an important update is available.
When I click "Restart & Install" CentOS restarts with an error that the update failed.

Is there a way to install the update via the terminal or to fix this problem?
I have tried # su -c 'yum upgrade' and sudo yum upgrade but no chance.

Thanks in advance.

Re: OS Update installing failure

Posted: 2016/01/22 19:17:04
by avij
You should be able to update with yum. Seeing the error messages that yum outputs would help in diagnosing the problem.

Re: OS Update installing failure

Posted: 2016/01/22 23:15:17
by noobofcentos
This is the message which shows me in the Application Installer:


But when I click "Restart & Install" it just restarts my laptop and shows me an error that the important update couldn't be installed.

From the terminal I get the following result:

Code: Select all

sudo yum update
[sudo] password for ----: 
Loaded plugins: fastestmirror, langpacks
base                                                     | 3.6 kB     00:00     
epel/x86_64/metalink                                     |  27 kB     00:00     
extras                                                   | 3.4 kB     00:00     
updates                                                  | 3.4 kB     00:00     
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
No packages marked for update

Re: OS Update installing failure

Posted: 2016/01/23 11:29:46
by owl102
Unfortunately PackageKit and yum are competitors regarding updates, so if you have updated your CentOS installation with yum successfully PackageKit knows nothing about this and is still trying to update your installation.

So if your system is already up-to-date (using yum), remove the file /var/lib/PackageKit/prepared-update to cleanup the ongoing update process using PackageKit.

Re: OS Update installing failure

Posted: 2016/01/29 14:43:43
by noobofcentos
Thank you for your more professional solution but I have already reinstalled CentOS and the problem is gone.
Thanks again.