Cannot install both kernel-3.10.0-957.5.1.el7.x86_64 and kernel-3.10.0-957.5.1.el7.x86_64

General support questions
Post Reply
hack3rcon
Posts: 738
Joined: 2014/11/24 11:04:37

Cannot install both kernel-3.10.0-957.5.1.el7.x86_64 and kernel-3.10.0-957.5.1.el7.x86_64

Post by hack3rcon » 2019/03/15 09:50:42

Hello,
When I use "dnf upgrade" then I got below error:

Code: Select all

$ sudo dnf upgrade
Last metadata expiration check: 0:10:30 ago on Fri 15 Mar 2019 01:05:19 PM +0330.
Dependencies resolved.

 Problem 1: cannot install both kernel-3.10.0-957.5.1.el7.x86_64 and kernel-3.10.0-957.5.1.el7.x86_64
  - cannot install the best update candidate for package kernel-3.10.0-957.5.1.el7.x86_64
  - cannot install the best update candidate for package kernel-3.10.0-327.el7.x86_64
 Problem 2: cannot install both kernel-devel-3.10.0-957.5.1.el7.x86_64 and kernel-devel-3.10.0-957.5.1.el7.x86_64
  - cannot install the best update candidate for package kernel-devel-3.10.0-957.5.1.el7.x86_64
  - cannot install the best update candidate for package kernel-devel-3.10.0-957.1.3.el7.x86_64
===================================================================================================================================
 Package                         Arch                      Version                                Repository                  Size
===================================================================================================================================
Reinstalling:
 kernel                          x86_64                    3.10.0-957.5.1.el7                     updates                     48 M
 kernel-devel                    x86_64                    3.10.0-957.5.1.el7                     updates                     17 M
     replacing  kernel-devel.x86_64 3.10.0-957.5.1.el7

Transaction Summary
===================================================================================================================================

Total size: 65 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] kernel-3.10.0-957.5.1.el7.x86_64.rpm: Already downloaded                                                                
[SKIPPED] kernel-devel-3.10.0-957.5.1.el7.x86_64.rpm: Already downloaded                                                          
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                           1/1 
  Reinstalling     : kernel-devel-3.10.0-957.5.1.el7.x86_64                                                                    1/4 
  Running scriptlet: kernel-devel-3.10.0-957.5.1.el7.x86_64                                                                    1/4 
  Reinstalling     : kernel-3.10.0-957.5.1.el7.x86_64                                                                          2/4 
  Running scriptlet: kernel-3.10.0-957.5.1.el7.x86_64                                                                          2/4 
  Obsoleting       : kernel-devel-3.10.0-957.5.1.el7.x86_64                                                                    3/4 
  Running scriptlet: kernel-3.10.0-957.5.1.el7.x86_64                                                                          4/4 
  Cleanup          : kernel-3.10.0-957.5.1.el7.x86_64                                                                          4/4 
  Running scriptlet: kernel-3.10.0-957.5.1.el7.x86_64                                                                          4/4 
  Verifying        : kernel-3.10.0-957.5.1.el7.x86_64                                                                          1/5 
  Verifying        : kernel-3.10.0-957.5.1.el7.x86_64                                                                          2/5 
  Verifying        : kernel-devel-3.10.0-957.5.1.el7.x86_64                                                                    3/5 
  Verifying        : kernel-devel-3.10.0-957.1.3.el7.x86_64                                                                    4/5 
  Verifying        : kernel-devel-3.10.0-957.5.1.el7.x86_64                                                                    5/5 
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Traceback (most recent call last):
  File "/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 179, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 99, in _main
    return cli_run(cli, base)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 123, in cli_run
    ret = resolving(cli, base)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 154, in resolving
    base.do_transaction(display=displays)
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 240, in do_transaction
    tid = super(BaseCli, self).do_transaction(display)
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 872, in do_transaction
    tid = self._run_transaction(cb=cb)
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 1021, in _run_transaction
    self._verify_transaction(cb.verify_tsi_package)
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 1059, in _verify_transaction
    self.history.end(rpmdbv, 0)
  File "/usr/lib/python2.7/site-packages/dnf/db/history.py", line 504, in end
    bool(return_code)
  File "/usr/lib64/python2.7/site-packages/libdnf/transaction.py", line 758, in endTransaction
    return _transaction.Swdb_endTransaction(self, dtEnd, rpmdbVersionEnd, state)
RuntimeError: TransactionItem state is not set: kernel-devel-3.10.0-957.1.3.el7.x86_64
How can I solve it?

Thank you.

stevemowbray
Posts: 517
Joined: 2012/06/26 14:20:47

Re: Cannot install both kernel-3.10.0-957.5.1.el7.x86_64 and kernel-3.10.0-957.5.1.el7.x86_64

Post by stevemowbray » 2019/03/15 10:13:37

I don't know what's wrong with dnf, but I would suggest using the default and supported CentOS package manager yum instead.

User avatar
TrevorH
Forum Moderator
Posts: 30802
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cannot install both kernel-3.10.0-957.5.1.el7.x86_64 and kernel-3.10.0-957.5.1.el7.x86_64

Post by TrevorH » 2019/03/15 10:35:39

That is a dnf bug and a very good reason for not using it.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

hack3rcon
Posts: 738
Joined: 2014/11/24 11:04:37

Re: Cannot install both kernel-3.10.0-957.5.1.el7.x86_64 and kernel-3.10.0-957.5.1.el7.x86_64

Post by hack3rcon » 2019/03/15 13:31:25

"yum" tell me that system is up to date but "dnf" show me that system need update!!!

Sabrina
Posts: 1
Joined: 2019/03/15 13:40:02

Re: Cannot install both kernel-3.10.0-957.5.1.el7.x86_64 and kernel-3.10.0-957.5.1.el7.x86_64

Post by Sabrina » 2019/03/15 13:43:24

Same thing, can someone help with that problem?
With CentOS from 2015 :ugeek:

stevemowbray
Posts: 517
Joined: 2012/06/26 14:20:47

Re: Cannot install both kernel-3.10.0-957.5.1.el7.x86_64 and kernel-3.10.0-957.5.1.el7.x86_64

Post by stevemowbray » 2019/03/15 13:49:29

You already have that kernel so yum is correct and dnf is buggy.


User avatar
toracat
Forum Moderator
Posts: 7462
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Cannot install both kernel-3.10.0-957.5.1.el7.x86_64 and kernel-3.10.0-957.5.1.el7.x86_64

Post by toracat » 2019/03/15 18:43:12

As noted in those RHBZs, updating libsolv fixes the issue. But that version is not yet available in CentOS.
CentOS Forum FAQ

User avatar
toracat
Forum Moderator
Posts: 7462
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Cannot install both kernel-3.10.0-957.5.1.el7.x86_64 and kernel-3.10.0-957.5.1.el7.x86_64

Post by toracat » 2019/03/15 18:47:52

By the way, "that version" is libsolv-0.6.35-3.el7. I have built it, so anyone wishing to give is a try, let me know.
CentOS Forum FAQ

Post Reply

Return to “CentOS 7 - General Support”