OS Update installing failure

Support for security such as Firewalls and securing linux
Post Reply
noobofcentos
Posts: 7
Joined: 2016/01/22 15:03:45

OS Update installing failure

Post by noobofcentos » 2016/01/22 15:12:02

Hey!

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.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: OS Update installing failure

Post by avij » 2016/01/22 19:17:04

You should be able to update with yum. Seeing the error messages that yum outputs would help in diagnosing the problem.

noobofcentos
Posts: 7
Joined: 2016/01/22 15:03:45

Re: OS Update installing failure

Post by noobofcentos » 2016/01/22 23:15:17

This is the message which shows me in the Application Installer:

Image

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: mirror.de.leaseweb.net
 * epel: mirror.proserve.nl
 * extras: mirror.de.leaseweb.net
 * updates: mirror.netcologne.de
No packages marked for update

owl102
Posts: 413
Joined: 2014/06/10 19:13:41

Re: OS Update installing failure

Post by owl102 » 2016/01/23 11:29:46

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.
German speaking forum for Fedora and CentOS: https://www.fedoraforum.de/

noobofcentos
Posts: 7
Joined: 2016/01/22 15:03:45

Re: OS Update installing failure

Post by noobofcentos » 2016/01/29 14:43:43

Thank you for your more professional solution but I have already reinstalled CentOS and the problem is gone.
Thanks again.

Post Reply