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

obsolete packages forcing yumex-dnf to close! #75

Closed fduraibi closed 9 years ago

fduraibi commented 9 years ago

Two ownCloud packages always show up in the main list with the updates, their color is blue which is for obsolete packages, however, they are not, see picture.

yumex-dnf

I tried to clear the cache, refresh, reinstall, but I couldn't get rid of them.

They have been showing their for a very long time, even when I get updates for owncloud client.

Here is what happens when I try to "update" them (it happens every time):

yumex-dnf1

After this failure if I go back to the "Packages" page I get this error message and the application will close: yumex-dnf2

Here is the debug output:

$ yumex-dnf -d
10:50:37: cmdline : Namespace(debug=True, exit=False, icononly=False, install=None, minimized=False, remove=None, updateall=False, yes=False) 
10:50:37: dk.yumex.StatusIcon daemon loaded - version :  412
10:50:37: do_activate

(yumex-dnf:10415): Gtk-CRITICAL **: gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed
10:50:38: looking for /home/fad/.themes/oxygen-gtk/apps/yumex.css
10:50:38: looking for /usr/share/themes/oxygen-gtk/apps/yumex.css
10:50:38: Lock the DNF root daemon
10:50:38: get_packages took 0.11 sec
10:50:38: get_packages took 0.01 sec
10:50:38: populate took 0.00 sec
10:50:46: adding: obsolete owncloud-client,0,2.0.2,5.2,i686,isv_ownCloud_desktop
10:50:46: result: False: ['package owncloud-client-2.0.2-5.2.i686 requires owncloud-client-l10n, but none of the providers can be installed']
10:51:00: Unlock the DNF root daemon
10:51:05: EXCEPTION : g-io-error-quark: GDBus.Error:org.baseurl.DnfSystem.LockedError: dnf is locked by another application (36) 
10:51:05: err:  [LockedError] - msg: dnf is locked by another application (36)

(yumex-dnf:10415): Gtk-CRITICAL **: gtk_main_quit: assertion 'main_loops != NULL' failed

yumex-dnf3

yumex-dnf4

$ yumex-dnf -d
10:53:11: cmdline : Namespace(debug=True, exit=False, icononly=False, install=None, minimized=False, remove=None, updateall=False, yes=False) 
10:53:11: dk.yumex.StatusIcon daemon loaded - version :  412
10:53:11: do_activate

(yumex-dnf:10477): Gtk-CRITICAL **: gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed
10:53:11: looking for /home/fad/.themes/oxygen-gtk/apps/yumex.css
10:53:11: looking for /usr/share/themes/oxygen-gtk/apps/yumex.css
10:53:11: Lock the DNF root daemon
10:53:11: get_packages took 0.10 sec
10:53:11: get_packages took 0.00 sec
10:53:11: populate took 0.01 sec
10:53:13: adding: obsolete owncloud-client,0,2.0.2,5.2,x86_64,@System
10:53:14: result: False: []
10:53:45: Unlock the DNF root daemon
10:53:48: EXCEPTION : g-io-error-quark: GDBus.Error:org.baseurl.DnfSystem.LockedError: dnf is locked by another application (36) 
10:53:48: err:  [LockedError] - msg: dnf is locked by another application (36)

(yumex-dnf:10477): Gtk-CRITICAL **: gtk_main_quit: assertion 'main_loops != NULL' failed

OS: Fedora 22 64bit with KDE Plasma 5 ownCloud repo source: http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Fedora_22/

timlau commented 9 years ago

These packages are broken

look like the spec contains obsoletes: owncloud-client

This mean that the package obsoletes itself

obsoletes without version and args is a very bad thing.

This is how it should be done. https://fedoraproject.org/wiki/Packaging:Guidelines#Renaming.2FReplacing_Existing_Packages

$ sudo dnf list obsoletes Last metadata expiration check performed 0:11:05 ago on Fri Nov 27 15:34:46 2015. Obsoleting Packages owncloud-client.i686 2.0.2-9.2 isv_ownCloud_desktop owncloud-client.x86_64 2.0.2-9.2 @@commandline
owncloud-client.x86_64 2.0.2-9.2 @@commandline
owncloud-client.x86_64 2.0.2-9.2 @@commandline
owncloud-client.x86_64 2.0.2-9.2 isv_ownCloud_desktop owncloud-client.x86_64 2.0.2-9.2 @@commandline
$ rpm -q owncloud-client.x86_64 --obsoletes

libocsync-devel libocsync-devel-doc libocsync-doc libocsync-plugin-owncloud libocsync0 libowncloudqt5sync-devel libowncloudqt5sync0 owncloud-client owncloud-client-qt5 owncloud-client-qt5-doc owncloud-client-qt5-l10n

timlau commented 9 years ago

There is not much i can do in yumex to handle packages there is broken in this way

timlau commented 9 years ago

You should properly use Fedora's own packages https://fedoraproject.org/wiki/OwnCloud

They even warns against the packages from Open Build Services