timlau / yumex-dnf-old

Next Generation of Yum Extender using DNF as backend
GNU General Public License v2.0
61 stars 17 forks source link

Error(s) in building transaction update #129

Closed audreytoskin closed 3 years ago

audreytoskin commented 8 years ago

For the past few weeks, whenever I try to install updates with Yumex-DNF, I get an error like this:

yumex-dnf Error(s) in building transactionupdate : python2-pygpgme-0.3-18.fc24.x86_64

This appears similar to issue #123. Adding an option to exempt a package from an update could still be useful -- however, in my case at least, the DNF commandline was able to handle the updates without errors or warnings, so I don't think removing the package from the update would have been the best solution. In this latest instance for me, it seems like issue was that the package pygpgme was renamed to python2-pygpgme.

> sudo dnf upgrade -y --refresh

Dependencies resolved.
=============================================================================================
 Package                        Arch      Version                   Repository           Size
=============================================================================================
Installing:
 python2-pygpgme                x86_64    0.3-18.fc24               updates       90 k
     replacing  pygpgme.x86_64 0.3-15.fc24
Upgrading:
 google-chrome-beta             x86_64    53.0.2785.34-1            google-chrome-beta   50 M
 gpgme                          x86_64    1.6.0-3.fc24              updates             171 k
 java-1.8.0-openjdk-headless    x86_64    1:1.8.0.101-1.b14.fc24    updates              32 M
 linkchecker                    x86_64    9.3-5.fc24                updates             717 k
 linkchecker-gui                x86_64    9.3-5.fc24                updates              25 k
 ncurses                        x86_64    6.0-6.20160709.fc24       updates             341 k
 ncurses-base                   noarch    6.0-6.20160709.fc24       updates              78 k
 ncurses-libs                   i686      6.0-6.20160709.fc24       updates             306 k
 ncurses-libs                   x86_64    6.0-6.20160709.fc24       updates             297 k
 orca                           noarch    3.20.3-1.fc24             updates             2.4 M
 python3-pygpgme                x86_64    0.3-18.fc24               updates              90 k

Transaction Summary
=============================================================================================
Install   1 Package
Upgrade  11 Packages

Total download size: 86 M
Downloading Packages:
[MIRROR] linkchecker-9.3-4.fc24_9.3-5.fc24.x86_64.drpm: Status code: 404 for http://mirror.nexcess.net/fedora/updates/24/x86_64/drpms/linkchecker-9.3-4.fc24_9.3-5.fc24.x86_64.drpm
[MIRROR] linkchecker-gui-9.3-4.fc24_9.3-5.fc24.x86_64.drpm: Status code: 404 for http://mirror.nexcess.net/fedora/updates/24/x86_64/drpms/linkchecker-gui-9.3-4.fc24_9.3-5.fc24.x86_64.drpm  
[MIRROR] java-1.8.0-openjdk-headless-1.8.0.92-5.b14.fc24_1.8.0.101-1.b14.fc24.x86_64.drpm: Status code: 404 for http://mirror.nexcess.net/fedora/updates/24/x86_64/drpms/java-1.8.0-openjdk-headless-1.8.0.92-5.b14.fc24_1.8.0.101-1.b14.fc24.x86_64.drpm
[MIRROR] linkchecker-9.3-4.fc24_9.3-5.fc24.x86_64.drpm: Status code: 404 for http://mirror.steadfast.net/fedora/updates/24/x86_64/drpms/linkchecker-9.3-4.fc24_9.3-5.fc24.x86_64.drpm
[MIRROR] linkchecker-gui-9.3-4.fc24_9.3-5.fc24.x86_64.drpm: Status code: 404 for http://mirror.steadfast.net/fedora/updates/24/x86_64/drpms/linkchecker-gui-9.3-4.fc24_9.3-5.fc24.x86_64.drpm
[MIRROR] java-1.8.0-openjdk-headless-1.8.0.92-5.b14.fc24_1.8.0.101-1.b14.fc24.x86_64.drpm: Status code: 404 for http://mirror.steadfast.net/fedora/updates/24/x86_64/drpms/java-1.8.0-openjdk-headless-1.8.0.92-5.b14.fc24_1.8.0.101-1.b14.fc24.x86_64.drpm
[MIRROR] linkchecker-9.3-4.fc24_9.3-5.fc24.x86_64.drpm: Status code: 404 for https://mirror.steadfast.net/fedora/updates/24/x86_64/drpms/linkchecker-9.3-4.fc24_9.3-5.fc24.x86_64.drpm
[MIRROR] linkchecker-gui-9.3-4.fc24_9.3-5.fc24.x86_64.drpm: Status code: 404 for https://mirror.steadfast.net/fedora/updates/24/x86_64/drpms/linkchecker-gui-9.3-4.fc24_9.3-5.fc24.x86_64.drpm
[MIRROR] java-1.8.0-openjdk-headless-1.8.0.92-5.b14.fc24_1.8.0.101-1.b14.fc24.x86_64.drpm: Status code: 404 for https://mirror.steadfast.net/fedora/updates/24/x86_64/drpms/java-1.8.0-openjdk-headless-1.8.0.92-5.b14.fc24_1.8.0.101-1.b14.fc24.x86_64.drpm
(1/12): linkchecker-gui-9.3-4.fc24_9.3-5.fc24.x86_64.drpm                                                                                                     5.3 kB/s |  10 kB     00:01
[MIRROR] ncurses-libs-6.0-5.20160116.fc24_6.0-6.20160709.fc24.x86_64.drpm: Status code: 404 for http://mirror.steadfast.net/fedora/updates/24/x86_64/drpms/ncurses-libs-6.0-5.20160116.fc24_6.0-6.20160709.fc24.x86_64.drpm
(2/12): linkchecker-9.3-4.fc24_9.3-5.fc24.x86_64.drpm                                                                                                          53 kB/s | 118 kB     00:02
[MIRROR] ncurses-libs-6.0-5.20160116.fc24_6.0-6.20160709.fc24.x86_64.drpm: Status code: 404 for http://mirror.nexcess.net/fedora/updates/24/x86_64/drpms/ncurses-libs-6.0-5.20160116.fc24_6.0-6.20160709.fc24.x86_64.drpm
[MIRROR] ncurses-libs-6.0-5.20160116.fc24_6.0-6.20160709.fc24.i686.drpm: Status code: 404 for http://mirror.nexcess.net/fedora/updates/24/x86_64/drpms/ncurses-libs-6.0-5.20160116.fc24_6.0-6.20160709.fc24.i686.drpm
[MIRROR] ncurses-libs-6.0-5.20160116.fc24_6.0-6.20160709.fc24.x86_64.drpm: Status code: 404 for https://mirror.steadfast.net/fedora/updates/24/x86_64/drpms/ncurses-libs-6.0-5.20160116.fc24_6.0-6.20160709.fc24.x86_64.drpm
(3/12): java-1.8.0-openjdk-headless-1.8.0.92-5.b14.fc24_1.8.0.101-1.b14.fc24.x86_64.drpm                                                                      356 kB/s | 1.5 MB     00:04
[DRPM] linkchecker-gui-9.3-4.fc24_9.3-5.fc24.x86_64.drpm: done
(4/12): ncurses-libs-6.0-5.20160116.fc24_6.0-6.20160709.fc24.x86_64.drpm                                                                                       32 kB/s |  86 kB     00:02
[MIRROR] ncurses-libs-6.0-5.20160116.fc24_6.0-6.20160709.fc24.i686.drpm: Status code: 404 for https://mirror.steadfast.net/fedora/updates/24/x86_64/drpms/ncurses-libs-6.0-5.20160116.fc24_6.0-6.20160709.fc24.i686.drpm
(5/12): python3-pygpgme-0.3-15.fc24_0.3-18.fc24.x86_64.drpm                                                                                                    57 kB/s |  44 kB     00:00
(6/12): ncurses-libs-6.0-5.20160116.fc24_6.0-6.20160709.fc24.i686.drpm                                                                                         28 kB/s |  91 kB     00:03
(7/12): orca-3.20.2-1.fc24_3.20.3-1.fc24.noarch.drpm                                                                                                          114 kB/s | 261 kB     00:02
(8/12): python2-pygpgme-0.3-18.fc24.x86_64.rpm                                                                                                                 64 kB/s |  90 kB     00:01
(9/12): gpgme-1.6.0-3.fc24.x86_64.rpm                                                                                                                         207 kB/s | 171 kB     00:00
(10/12): ncurses-6.0-6.20160709.fc24.x86_64.rpm                                                                                                               340 kB/s | 341 kB     00:01
(11/12): ncurses-base-6.0-6.20160709.fc24.noarch.rpm                                                                                                          122 kB/s |  78 kB     00:00
(12/12): google-chrome-beta-53.0.2785.34-1.x86_64.rpm                                                                                                         1.1 MB/s |  50 MB     00:45
[DRPM] linkchecker-9.3-4.fc24_9.3-5.fc24.x86_64.drpm: done
[DRPM] java-1.8.0-openjdk-headless-1.8.0.92-5.b14.fc24_1.8.0.101-1.b14.fc24.x86_64.drpm: done
[DRPM] python3-pygpgme-0.3-15.fc24_0.3-18.fc24.x86_64.drpm: done
[DRPM] ncurses-libs-6.0-5.20160116.fc24_6.0-6.20160709.fc24.x86_64.drpm: done
[DRPM] ncurses-libs-6.0-5.20160116.fc24_6.0-6.20160709.fc24.i686.drpm: done
[DRPM] orca-3.20.2-1.fc24_3.20.3-1.fc24.noarch.drpm: done
---------------------------------------------------------------------------------------------
Total                                                                                                                                                         759 kB/s |  53 MB     01:11
Delta RPMs reduced 86.1 MB of updates to 52.8 MB (38.1% saved)
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Upgrading   : ncurses-base-6.0-6.20160709.fc24.noarch                     1/24
  Upgrading   : gpgme-1.6.0-3.fc24.x86_64                                   2/24
  Upgrading   : ncurses-libs-6.0-6.20160709.fc24.x86_64                     3/24
  Upgrading   : linkchecker-9.3-5.fc24.x86_64                               4/24
  Upgrading   : linkchecker-gui-9.3-5.fc24.x86_64                           5/24
  Upgrading   : ncurses-6.0-6.20160709.fc24.x86_64                          6/24
  Installing  : python2-pygpgme-0.3-18.fc24.x86_64                          7/24
  Upgrading   : python3-pygpgme-0.3-18.fc24.x86_64                          8/24
  Upgrading   : orca-3.20.3-1.fc24.noarch                                   9/24
  Upgrading   : java-1.8.0-openjdk-headless-1:1.8.0.101-1.b14.fc24.x86_64  10/24
  Upgrading   : google-chrome-beta-53.0.2785.34-1.x86_64                   11/24
Redirecting to /bin/systemctl start  atd.service
  Upgrading   : ncurses-libs-6.0-6.20160709.fc24.i686                      12/24
  Cleanup     : python3-pygpgme-0.3-15.fc24.x86_64                         13/24
  Cleanup     : ncurses-libs-6.0-5.20160116.fc24.x86_64                    14/24
  Cleanup     : linkchecker-gui-9.3-4.fc24.x86_64                          15/24
  Obsoleting  : pygpgme-0.3-15.fc24.x86_64                                 16/24
  Cleanup     : orca-3.20.2-1.fc24.noarch                                  17/24
  Cleanup     : google-chrome-beta-52.0.2743.82-1.x86_64                   18/24
  Cleanup     : ncurses-6.0-5.20160116.fc24.x86_64                         19/24
  Cleanup     : ncurses-libs-6.0-5.20160116.fc24.x86_64                    20/24
  Cleanup     : ncurses-base-6.0-5.20160116.fc24.noarch                    21/24
  Cleanup     : gpgme-1.4.3-7.fc24.x86_64                                  22/24
  Cleanup     : linkchecker-9.3-4.fc24.x86_64                              23/24
  Cleanup     : java-1.8.0-openjdk-headless-1:1.8.0.92-5.b14.fc24.x86_64   24/24
  Verifying   : python2-pygpgme-0.3-18.fc24.x86_64                          1/24
  Verifying   : google-chrome-beta-53.0.2785.34-1.x86_64                    2/24
  Verifying   : gpgme-1.6.0-3.fc24.x86_64                                   3/24
  Verifying   : java-1.8.0-openjdk-headless-1:1.8.0.101-1.b14.fc24.x86_64   4/24
  Verifying   : linkchecker-9.3-5.fc24.x86_64                               5/24
  Verifying   : linkchecker-gui-9.3-5.fc24.x86_64                           6/24
  Verifying   : ncurses-6.0-6.20160709.fc24.x86_64                          7/24
  Verifying   : ncurses-libs-6.0-6.20160709.fc24.x86_64                     8/24
  Verifying   : ncurses-base-6.0-6.20160709.fc24.noarch                     9/24
  Verifying   : ncurses-libs-6.0-6.20160709.fc24.i686                      10/24
  Verifying   : orca-3.20.3-1.fc24.noarch                                  11/24
  Verifying   : python3-pygpgme-0.3-18.fc24.x86_64                         12/24
  Verifying   : pygpgme-0.3-15.fc24.x86_64                                 13/24
  Verifying   : ncurses-libs-6.0-5.20160116.fc24.x86_64                    14/24
  Verifying   : ncurses-libs-6.0-5.20160116.fc24.i686                      15/24
  Verifying   : linkchecker-9.3-4.fc24.x86_64                              16/24
  Verifying   : linkchecker-gui-9.3-4.fc24.x86_64                          17/24
  Verifying   : python3-pygpgme-0.3-15.fc24.x86_64                         18/24
  Verifying   : google-chrome-beta-52.0.2743.82-1.x86_64                   19/24
  Verifying   : java-1.8.0-openjdk-headless-1:1.8.0.92-5.b14.fc24.x86_64   20/24
  Verifying   : gpgme-1.4.3-7.fc24.x86_64                                  21/24
  Verifying   : orca-3.20.2-1.fc24.noarch                                  22/24
  Verifying   : ncurses-6.0-5.20160116.fc24.x86_64                         23/24
  Verifying   : ncurses-base-6.0-5.20160116.fc24.noarch                    24/24

Installed:
  python2-pygpgme.x86_64 0.3-18.fc24

Upgraded:
  google-chrome-beta.x86_64 53.0.2785.34-1
  gpgme.x86_64 1.6.0-3.fc24
  java-1.8.0-openjdk-headless.x86_64 1:1.8.0.101-1.b14.fc24
  linkchecker.x86_64 9.3-5.fc24
  linkchecker-gui.x86_64 9.3-5.fc24
  ncurses.x86_64 6.0-6.20160709.fc24
  ncurses-base.noarch 6.0-6.20160709.fc24
  ncurses-libs.i686 6.0-6.20160709.fc24
  ncurses-libs.x86_64 6.0-6.20160709.fc24
  orca.noarch 3.20.3-1.fc24
  python3-pygpgme.x86_64 0.3-18.fc24

You should restart:
  * These applications manually:
      bash
      fish
      gnome-shell

For more information run:
    sudo tracer -iat 1469828812.9029746
Complete!
alflanagan commented 8 years ago

I've seen the same issue with python2-inotify and python2-jinja2. (Using version 4.3.2, installed from Fedora 24 repo). Here's the command-line install for python2-inotify:

 sudo dnf install python2-inotify
[sudo] password for aflanagan: 
Last metadata expiration check: 0:07:41 ago on Tue Oct 11 10:36:12 2016.
Dependencies resolved.
===============================================================================================================================================
 Package                                Arch                          Version                             Repository                      Size
===============================================================================================================================================
Installing:
 python2-inotify                        noarch                        0.9.6-6.fc24                        updates                         56 k
     replacing  python-inotify.noarch 0.9.6-4.fc24

Transaction Summary
===============================================================================================================================================
Install  1 Package

Total download size: 56 k
Installed size: 264 k
Is this ok [y/N]: y
Downloading Packages:
python2-inotify-0.9.6-6.fc24.noarch.rpm                                                                        126 kB/s |  56 kB     00:00    
-----------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                           56 kB/s |  56 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Installing  : python2-inotify-0.9.6-6.fc24.noarch                                                                                        1/2 
  Obsoleting  : python-inotify-0.9.6-4.fc24.noarch                                                                                         2/2 
  Verifying   : python2-inotify-0.9.6-6.fc24.noarch                                                                                        1/2 
  Verifying   : python-inotify-0.9.6-4.fc24.noarch                                                                                         2/2 

Installed:
  python2-inotify.noarch 0.9.6-6.fc24            

The obvious conclusion being that it's failing to handle obsoleted packages.

rluzynski commented 8 years ago

I confirm that this happens all the time when a new package is to be installed for whatever reason (a new dependency required by a package about to be updated, obsoleting). In this case python2-pygpgme had to be installed because of obsoleting pygpgme. I think that the root cause is that yumex-dnf incorrectly recognizes the packages to be installed as those to be upgraded. At the same time, the regular upgrade (of the packages which had been installed before) works correctly.

A workaround is to unselect the problematic packages from the upgrade. The next step, the dependency resolution, recognizes them as required correctly and adds them to the transaction (as to be installed rather than upgraded), and then finally the transaction runs successfully.

timlau commented 3 years ago

Think this is solved now, there was som problems in dnfdaemon, returning packages being pulled in by updates as updates, instead of packages being installed. this is solved in current dnfdaemon upstream