LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 07-01-2018, 02:36 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post CentOS can't update.


Hello.
I'm using CentOS 7 x86_64 and used "yum update" but my system rebooted. Yum installed the new kernel but it can't load and show me a panic error. when I boot my system using the old kernel and run "yum install packagename" then it can't work. For example:
Code:
$ sudo yum install iputils
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.centos.org
 * extras: mirror.centos.org
 * updates: mirror.centos.org
Resolving Dependencies
--> Running transaction check
---> Package iputils.x86_64 0:20121221-7.el7 will be updated
---> Package iputils.x86_64 0:20160308-10.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================================================
 Package                            Arch                              Version                                       Repository                       Size
==========================================================================================================================================================
Updating:
 iputils                            x86_64                            20160308-10.el7                               base                            148 k

Transaction Summary
==========================================================================================================================================================
Upgrade  1 Package

Total download size: 148 k
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base
iputils-20160308-10.el7.x86_64.rpm                                                                                                 | 148 kB  00:00:03     
Running transaction check
Running transaction test


Transaction check error:
  package iputils-20160308-10.el7.x86_64 is already installed

Error Summary
-------------
How can I solve it?

Thank you.
 
Old 07-01-2018, 05:40 AM   #2
polpak
Member
 
Registered: Jan 2011
Location: Planet Earth, Australia, NSW
Distribution: GNOME openSUSE Leap/Ubuntu
Posts: 189

Rep: Reputation: 21
Code:
Transaction check error:
  package iputils-20160308-10.el7.x86_64 is already installed
Sometimes a re-start may resolve confusion.






.
 
Old 07-01-2018, 06:56 AM   #3
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by hack3rcon View Post
Hello.
I'm using CentOS 7 x86_64 and used "yum update" but my system rebooted. Yum installed the new kernel but it can't load and show me a panic error. when I boot my system using the old kernel and run "yum install packagename" then it can't work. For example:
[yum output snipped]

How can I solve it?

Thank you.
What you're saying makes very little sense; you don't post the "panic error", by which, I assume you actually mean "kernel panic". So how do you expect us to be able to tell you why it "can't load" if you don't post it ??

You're own error message from yum is clearly telling you why "yum install <package name>" "can't work";

Code:
Transaction check error:
  package iputils-20160308-10.el7.x86_64 is already installed
It's clearly telling you that it's ALREADY installed. Not sure how you don't understand that ? That's why it "can't work".

The "kernel" package from the CentOS official repo is verified TO work with CentOS. If you want the very latest kernel for CentOS, you need to add the "elrepo" software repo to yum's repo list. If you don't, you will not get the very latest kernel for CentOS period.

http://elrepo.org/tiki/kernel-ml

Last edited by jsbjsb001; 07-01-2018 at 07:00 AM. Reason: added link
 
1 members found this post helpful.
Old 07-01-2018, 07:34 AM   #4
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by polpak View Post
Code:
Transaction check error:
  package iputils-20160308-10.el7.x86_64 is already installed
Sometimes a re-start may resolve confusion.






.
If it is already installed why yum download it but never install it?
 
Old 07-01-2018, 07:46 AM   #5
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by hack3rcon View Post
If it is already installed why yum download it but never install it?
Did you actually READ post #3 OR you're own error message ??
 
Old 07-01-2018, 11:21 AM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by hack3rcon View Post
If it is already installed why yum download it but never install it?
yum did not download it. You asked for an install of an already-installed package, yum detected that it was already installed, told you so, and quit.

Note that yum switched to update:
Code:
Updating:
 iputils                            x86_64                            20160308-10.el7                               base                            148 k
so try
Code:
sudo yum update iputils
An aside: You mention something about "installing new kernel" but the code you posted has nothing to do with the kernel...
Code:
yum info iputils
...
Name        : iputils
Arch        : x86_64
Version     : 20160308
Release     : 10.el7
Size        : 335 k
Repo        : installed
From repo   : anaconda
Summary     : Network monitoring tools including ping
URL         : https://github.com/iputils/iputils
License     : BSD and GPLv2+
Description : The iputils package contains basic utilities for monitoring a network,
            : including ping. The ping command sends a series of ICMP protocol
            : ECHO_REQUEST packets to a specified network host to discover whether
            : the target machine is alive and receiving network traffic.
...and based on what I see on my system, 20160308 is the latest version of iputils.

Suggest careful review of
Code:
yum --help
or
Code:
man yum
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I Update From CentOS 6.5 to 6.6 When 6.7 Is The Latest Version Of CentOS 6? shachter CentOS 5 02-02-2016 01:44 AM
[SOLVED] Update a CentOS 5 virtual server to CentOS 5.6 dazdaz Red Hat 4 04-10-2011 05:02 AM
yum update on CentOS 5.3 upgraded my system to CentOS 5.4 diskoe Red Hat 1 10-29-2009 04:41 PM
CentOS 5 Update gainil Linux - Newbie 3 03-26-2009 04:52 AM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 04:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration