smart not resolving correctly

Bug #246129 reported by Jonathan R
2
Affects Status Importance Assigned to Milestone
Smart Package Manager
Won't Fix
Undecided
netmask

Bug Description

When doing an upgrade, smart will not delete certain packages in order to complete the upgrade. Instead smart just "bombs" out, leaving a long list of unresolved dependencies. I have been seeing this error since openSUSE 10.3 with smart-0.52. This doesn't just occur with upgrades, it also occurs when I go to install packages.

Here is a list of what I mean.

file /usr/lib/gstreamer-0.10/libgstflump3dec.so from install of gstreamer-0_10-fluendo-mp3-0.10.7-42.pm.1 conflicts with file from package gst-fluendo-mp3-2-72.1
file /usr/lib/libmp4v2.so.0.0.0 from install of libmp4v2-1.5.0.1-10.pm.0 conflicts with file from package libmp4v2-0-1.5.0-10.1
file /usr/bin/ktorrent from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/bin/ktupnptest from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/lib/kde4/ktbwschedulerplugin.so from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/lib/kde4/ktinfowidgetplugin.so from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/lib/kde4/ktipfilterplugin.so from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/lib/kde4/ktlogviewerplugin.so from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/lib/kde4/ktscanfolderplugin.so from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/lib/kde4/ktsearchplugin.so from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/lib/kde4/ktstatsplugin.so from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/lib/kde4/ktupnpplugin.so from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/lib/kde4/ktwebinterfaceplugin.so from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/applications/kde4/ktorrent.desktop from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/icons/hicolor/128x128/apps/ktorrent.png from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/ktorrentui.rc from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/coldmilk/favicon.ico from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/coldmilk/high_priority.png from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/coldmilk/icon.png from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/coldmilk/low_priority.png from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/coldmilk/normal_priority.png from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/coldmilk/only_seed.png from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/default/favicon.ico from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/default/high_priority.png from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/default/icon.png from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/default/ktorrentwebinterfacelogo.png from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/default/low_priority.png from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/default/normal_priority.png from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/default/only_seed.png from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/mobile/favicon.ico from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/apps/ktorrent/www/mobile/ktorrentwebinterfacelogo.png from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/services/ktbwschedulerplugin.desktop from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/services/ktinfowidgetplugin.desktop from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/services/ktipfilterplugin.desktop from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/services/ktlogviewerplugin.desktop from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/services/ktscanfolderplugin.desktop from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/services/ktsearchplugin.desktop from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/services/ktstatsplugin.desktop from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/services/ktupnpplugin.desktop from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/services/ktwebinterfaceplugin.desktop from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/share/kde4/servicetypes/ktorrentplugin.desktop from install of ktorrent-3.1-5.3 conflicts with file from package ktorrent3-3.0.2-0.pm.5
file /usr/bin/faad from install of faad2-drm-2.5-0.pm.7 conflicts with file from package faad2-2.6.1-1.1
file /usr/lib/libfaad.so.0.0.0 from install of faad2-drm-2.5-0.pm.7 conflicts with file from package faad2-2.6.1-1.1

Smart should do this on its own.

Revision history for this message
netmask (netmask) wrote :

Looks like this is a classic situation of mixing two 3rd party repositories with the official repos from the distro vendor. What seems to be happening here is that two packages provide the same file, but the packages have different names (thus no visible upgrade relation between them).

Considering they're packages from different repositories, it's quite possible that they do not know the other exist. Being that the case, there should be needed the Conflicts and Provides tags in the headers. If the tags are not there, Smart cannot know if one package is supposed to be installed or not. So then, the package gets downloaded and the RPM lib itself complains that there are file conflicts.

This is not a Smart bug, it's a packaging problem, mixed with excessive 3rd party repos in the same system.

In order to really consider this as a bug, or a need for improvement, there would be needed more information.

- Send the list of channels.
- Send two of the mentioned packages, like gstreamer-0_10-fluendo-mp3-0.10.7-42.pm.1 and gst-fluendo-mp3-2-72.1
- Tell what was the command that triggered the error.

Changed in smart:
status: New → Incomplete
Revision history for this message
Jonathan R (linux-learner) wrote : Re: [Bug 246129] Re: smart not resolving correctly
Download full text (11.9 KiB)

smart channel --show
[OpenOffice.org]
type = rpm-md
name = Latest stable OpenOffice.org packages (OpenOffice.org:STABLE)
baseurl =
http://download.opensuse.org/repositories/OpenOffice.org:/STABLE/openSUSE_11.0/

[GNOME:UNSTABLE]
type = rpm-md
name = Latest EXPERIMENTAL GNOME packages (GNOME:UNSTABLE)
baseurl =
http://download.opensuse.org/repositories/GNOME:/UNSTABLE/openSUSE_11.0/

[KDE:KDE4:STABLE:Community]
type = rpm-md
name = The community additions to the (stable) KDE 4 desktop
baseurl =
http://download.opensuse.org/repositories/KDE:/KDE4:/STABLE:/Community/openSUSE_11.0/

[GNOME:Community]
type = rpm-md
name = Latest GNOME packages contributed by the Community (GNOME:Community)
baseurl =
http://download.opensuse.org/repositories/GNOME:/Community/openSUSE_11.0/

[KDE:KDE3]
type = rpm-md
name = Latest KDE3 packages (KDE:KDE3)
baseurl = http://download.opensuse.org/repositories/KDE:/KDE3/openSUSE_11.0/

[Emulators:Wine]
type = rpm-md
name = Latest wine packages
baseurl =
http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_11.0/

[opensuse-updates]
type = rpm-md
name = openSUSE-11.0 Updates
baseurl = http://download.opensuse.org/update/11.0/

[KDE:KDE4:STABLE:Extra-Apps]
type = rpm-md
name = The (default) stable KDE 4 desktop with extra apps
baseurl =
http://download.opensuse.org/repositories/KDE:/KDE4:/STABLE:/Extra-Apps/openSUSE_11.0/

[X11:XGL]
type = rpm-md
name = Repository for Xgl and related packages that give your Desktop some
bling (X11:XGL)
baseurl = http://download.opensuse.org/repositories/X11:/XGL/openSUSE_11.0/

[GNOME:STABLE]
type = rpm-md
name = Latest stable GNOME packages (GNOME:STABLE)
baseurl =
http://download.opensuse.org/repositories/GNOME:/STABLE/openSUSE_11.0/

[OpenOffice.org:extras]
type = rpm-md
name = Latest stable add-ons for OpenOffice.org (OpenOffice.org:EXTRAS)
baseurl =
http://download.opensuse.org/repositories/OpenOffice.org:/EXTRAS/openSUSE_11.0/

[smart]
type = rpm-md
name = Latest smart packages for openSUSE
priority = 10
baseurl = http://download.opensuse.org/repositories/smart/openSUSE_11.0/

[rpm-sys]
type = rpm-sys
name = RPM System

[mozilla]
type = rpm-md
name = Latest packages for Mozilla projects
baseurl = http://download.opensuse.org/repositories/mozilla/openSUSE_11.0/

[openSUSE:Tools]
type = rpm-md
name = openSUSE Tools Repository
baseurl =
http://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_11.0/

[opensuse]
type = yast2
name = openSUSE-11.0-FTP
baseurl = http://download.opensuse.org/distribution/11.0/repo/oss/

[OpenOffice.org:unstable]
type = rpm-md
name = Latest EXPERIMENTAL OpenOffice.org packages (OpenOffice.org:UNSTABLE)
baseurl =
http://download.opensuse.org/repositories/OpenOffice.org:/UNSTABLE/openSUSE_11.0/

[packages]
type = rpm-dir
name = packages
path = /var/lib/smart/packages

[KDE:Qt]
type = rpm-md
name = Latest Qt4 packages (KDE:Qt)
baseurl = http://download.opensuse.org/repositories/KDE:/Qt/openSUSE_11.0/

[opensuse-nonoss]
type = yast2
name = openSUSE-11.0-FTP-NonOSS
baseurl = http://download.opensuse.org/distribution/11.0/repo/non-oss/

[KDE:Backports]
type = rpm-md
name = Backports of KDE packages from Factory (KDE:Backports)
baseurl =
http:/...

Revision history for this message
netmask (netmask) wrote :

Definitely there is a conflict here. As I said, it's a packaging problem.

$ rpm -ivh --test gstreamer-0_10-fluendo-mp3-0.10.7-42.pm.2.i586.rpm gst-fluendo-mp3-2-72.1.i586.rpm --nodeps
warning: gstreamer-0_10-fluendo-mp3-0.10.7-42.pm.2.i586.rpm: Header V3 DSA signature: NOKEY, key ID 9a795806
warning: gst-fluendo-mp3-2-72.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 9c800aca
Preparing... ########################################### [100%]
 file /usr/lib/gstreamer-0.10/libgstflump3dec.so conflicts between attempted installs of gstreamer-0_10-fluendo-mp3-0.10.7-42.pm.2.i586 and gst-fluendo-mp3-2-72.1.i586

Disable packman repo and see what happens.

Smart can't fix it because none of the packages use provides by file, so Smart can't resolve the conflict solely based on what they say on the headers.

Changed in smart:
assignee: nobody → netmask
status: Incomplete → Won't Fix
Revision history for this message
Rehan Khan (rasker) wrote :

agreed, This is a usage/repository issue. Users should be advised to use repositories which are designed to be compatible with thier base distro repositories to avoid conflicts like this. Indeed users should be advised to contact the third party repository and request this. For example for this particular case the third party repository should obsolete the base repositories package for this feature.

I'll add this to the user documentation

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.