Bug 431466

Summary: update problems with libqt4
Product: [openSUSE] openSUSE 11.0 Reporter: Bernhard Koenig <b.a.koenig>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dmueller, doug, ma
Version: Final   
Target Milestone: ---   
Hardware: 64bit   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: solver-test.xml
the solver-testcase directory

Description Bernhard Koenig 2008-10-02 03:08:58 UTC
opensuseupdater suggested to update the package libqt4, but then I get


bkoenig@amilo:~> sudo zypper in libqt4                                        
Reading installed packages...                                                 

The following packages are going to be upgraded:
  libqt4-sql libqt4 libqt4-x11 libqt4-sql-mysql libqt4-qt3support 


The following packages are going to be downgraded:
  kdelibs4 kdeutils4 ruby-kde4 libsmoke2 kde4-superkaramba kdebase4 kde4-okular 
kde4-kwikdisk kde4-kruler kde4-kio_sysinfo kde4-konsole kde4-kmag kde4-kdepasswd 
kde4-kfind kde4-kate kde4-kfloppy kde4-dolphin kde4-kdialog kde4-kdf kde4-kdessh 
kdebase4-runtime libkde4 libkdepim4 kde4-kmail kdepim4 kde4-kaddressbook python-sip
python-qt4 python-kde4 libkdepimlibs4 libakonadi4 kdepimlibs4


The following packages are going to be REMOVED:
  libQtWebKit4 kdepim4-wizards kdenetwork4-filesharing kdebase4-workspace
kdebase4-session kdebase4-openSUSE kdebase4-nsplugin kde4-plasma-addons kde4-kwrite
kde4-kwin kde4-kwalletmanager kde4-ksudoku kde4-ksnapshot kde4-kscd kde4-krfb
kde4-kreversi kde4-krdc kde4-kpat kde4-korganizer kde4-kopete kde4-kontact
kde4-konqueror kde4-knotes kde4-knewsticker kde4-kmix kde4-kmines kde4-kmahjongg
kde4-kio_audiocd kde4-kgpg kde4-kget kde4-keditbookmarks kde4-kdm kde4-kcalc
kde4-gwenview kde4-ark kde4-akregator kde4-akonadi compiz-kde4


The following packages are going to change vendor:
  kdebase4-runtime libkde4 libkdepim4 kde4-kmail kdepim4 kde4-kaddressbook python-sip
python-qt4 python-kde4 libkdepimlibs4 libakonadi4 kdepimlibs4


Overall download size: 46.8 M. After the operation, 104.3 M will be freed.
Continue? [Y/n/p/?]:
Comment 1 Bernhard Koenig 2008-10-02 03:09:40 UTC
This looks weird to downgrade/remove the whole KDE desktop just because I want to update libqt4.
Comment 2 Michael Andres 2008-10-02 08:11:53 UTC
The result is based on the packages dependencies.

It looks like you are also using a non-SUSE(?) repository that also provides kdebase4 packages? The packages changing vendor indicate this. It's possible you can't mix those reopos, if they specify different dependencies when building their packages.

If you suspect an error in the resolver, please provide a solver testcase:

  sudo zypper in libqt4 --debug-solver

and provide the content of the created /var/log/zypper.solverTestCase* directory.
Comment 3 Michael Schröder 2008-10-02 10:02:48 UTC
Or try 'zypper in --no-force-resolution libqt4'.
Comment 4 Jan Kupec 2008-10-02 13:26:17 UTC
or just type 'p' in the Continue? prompt :O)
Comment 5 Bernhard Koenig 2008-10-02 17:36:52 UTC
First of all here are my repos, don't think there's any unnatural repo in there?

bkoenig@amilo:~> zypper lr -u
# | Alias                                                                                | Name                                         | Enabled | Refresh | URI                                                                                                                                              
--+--------------------------------------------------------------------------------------+----------------------------------------------+---------+---------+-------------------------------------------------------------------------------------                                                             
1 | KDE:Qt                                                                               | KDE:Qt                                       | Yes     | Yes     | http://download.opensuse.org/repositories/KDE:/Qt44/openSUSE_11.0/                                                                               
2 | openSUSE-11.0-Non-Oss                                                                | openSUSE-11.0-Non-Oss                        | Yes     | Yes     | http://download.opensuse.org/distribution/11.0/repo/non-oss/
3 | http://download.opensuse.org/distribution/11.0/repo/debug/                           | Main Repository (DEBUG)                      | Yes     | Yes     | http://download.opensuse.org/distribution/11.0/repo/debug/
4 | openSUSE-11.0-Oss                                                                    | openSUSE-11.0-Oss                            | Yes     | Yes     | http://download.opensuse.org/distribution/11.0/repo/oss/
5 | openSUSE-11.0-Updates                                                                | openSUSE-11.0-Updates                        | Yes     | Yes     | http://download.opensuse.org/update/11.0/
6 | http://download.opensuse.org/repositories/KDE:/KDE4:/Factory:/Desktop/openSUSE_11.0/ | openSUSE BuildService - KDE4:Factory:Desktop | Yes     | Yes     | http://download.opensuse.org/repositories/KDE:/KDE4:/Factory:/Desktop/openSUSE_11.0/
7 | http://ftp.skynet.be/pub/packman/suse/11.0/                                          | Packman Repository                           | Yes     | Yes     | http://ftp.skynet.be/pub/packman/suse/11.0/
8 | openSUSE_11.0                                                                        | openSUSE_11.0                                | Yes     | Yes     | http://download.opensuse.org/repositories/KDE:/KDE4:/STABLE:/Desktop/openSUSE_11.0/
Comment 6 Bernhard Koenig 2008-10-02 17:48:17 UTC
Here's the shell with the above commands:

bkoenig@amilo:~> sudo zypper in libqt4 --debug-solver
Reading installed packages...
No valid arguments specified.
bkoenig@amilo:~> sudo zypper in --no-force-resolution libqt4
Reading installed packages...

The following packages are going to be upgraded:
  libqt4-qt3support libqt4 libqt4-sql-mysql libqt4-sql libqt4-x11 libQtWebKit4


Overall download size: 12.5 M. After the operation, additional 2.1 M will be used.
Continue? [YES/no]: no
Comment 7 Jan Kupec 2008-10-02 18:19:08 UTC
(In reply to comment #6 from Bernhard Koenig)
> bkoenig@amilo:~> sudo zypper in libqt4 --debug-solver

This must be 'zypper in --debug-solver libqt4', zypper does not expect options after arguments.
Comment 8 Bernhard Koenig 2008-10-02 18:31:29 UTC
Aha, OK. So the directory /var/log/zypper.solverTestCase> looks like

bkoenig@amilo:/var/log/zypper.solverTestCase> ll
total 11604
-rw-r--r-- 1 root root   63102 2008-10-02 14:30 7514352-package.xml.gz
-rw-r--r-- 1 root root   76964 2008-10-02 14:30 8121760-package.xml.gz
-rw-r--r-- 1 root root    6046 2008-10-02 14:30 8165888-package.xml.gz
-rw-r--r-- 1 root root 1553932 2008-10-02 14:30 8166544-package.xml.gz
-rw-r--r-- 1 root root   13562 2008-10-02 14:30 8171728-package.xml.gz
-rw-r--r-- 1 root root  275221 2008-10-02 14:30 8172368-package.xml.gz
-rw-r--r-- 1 root root  296051 2008-10-02 14:30 8173376-package.xml.gz
-rw-r--r-- 1 root root  746446 2008-10-02 14:30 8175552-package.xml.gz
-rw-r--r-- 1 root root  171281 2008-10-02 14:30 solver-system.xml.gz
-rw-r--r-- 1 root root  123019 2008-10-02 14:30 solver-test.xml
-rw-r----- 1 root root 8482680 2008-10-02 14:30 y2log

Do you want me to attach any of the files?
Comment 9 Bernhard Koenig 2008-10-02 18:35:15 UTC
Created attachment 243189 [details]
solver-test.xml
Comment 10 Jan Kupec 2008-10-02 18:39:36 UTC
all of them :O) do
$ tar czf solver-testcase.tgz /var/log/zypper.solverTestCase

and attach the resulting solver-testcase.tgz file. Thanx!
Comment 11 Bernhard Koenig 2008-10-02 18:57:45 UTC
Created attachment 243194 [details]
the solver-testcase directory
Comment 12 Bernhard Koenig 2008-10-04 19:08:40 UTC
Another problem (which seems to be related to the original one) is that the current libqt4 version is 4.4.2 (at least in my repos) but when I ...

bkoenig@amilo:~> sudo zypper dup                                                                     
Reading installed packages...                                                                        
61 Problems:                                                                                         
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.x86_64           
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdelibs4-4.1.2-44.2.x86_64                   
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdelibs4-4.1.2-44.2.i586                     
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586             
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586
Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.i586

Problem: nothing provides libqt4-x11 >= 4.4.3 needed by kdebase4-runtime-4.1.2-44.2.x86_64
 Solution 1: do not install kdebase4-runtime-4.1.2-44.2.x86_64

Choose the above solution using '1' or skip, retry or cancel [1/s/r/C]:
Comment 13 Bernhard Koenig 2008-10-04 19:17:42 UTC
How do I update to libqt4 version 4.4.3?
Comment 14 Stephan Binner 2008-10-04 22:01:23 UTC
Use the KDE:Qt - not the KDE:Qt44 repository (version 4.4.3 v 4.4.2+day).
Comment 15 Bernhard Koenig 2008-10-05 04:35:33 UTC
Thanks, switched to KDE:Qt. Works much better now. The only funny thing now is that "sudo zypper dup" wanted to downgrade python-qt4 and python-sip.

bkoenig@amilo:~> sudo zypper dup                                                      
Reading installed packages...                                                         

The following packages are going to be upgraded:
  wxWidgets gstreamer-0_10 libx264-64 python-gstreamer-0_10 libgstinterfaces-0_10-0 
gstreamer-0_10-plugins-base-lang gstreamer-0_10-plugins-base libx264-60 libcaca0    
libgstreamer-0_10-0 gstreamer-0_10-lang libstrigi0 libphonon4 libkdecore4-32bit     
libkde4-32bit libakonadiprotocolinternals1 libakonadi4 phonon-backend-xine          
libsoprano4-32bit libsmoke2 libphonon4-32bit libkdepimlibs4 libkdecore4             
phonon-backend-gstreamer-0_10 libstrigi0-32bit libsoprano4 libplasma1 libkdegames4  
ruby-kde4 kdelibs4-core python-kde4 kdepimlibs4 libkde4 kdelibs4 libkonq5           
libkcompactdisc4 libkcddb4 kdeutils4 kdepim4-wizards kdenetwork4-filesharing        
kdebase4-workspace-ksysguardd kdebase4-workspace-branding-upstream                  
kdebase4-workspace kdebase4-nsplugin kdebase4-libkonq strigi                        
soprano-backend-redland soprano libkipi5 libkdepim4 kdebase4-session                
kdebase4-runtime kdebase4-openSUSE kde4-plasma-addons kde4-kwrite kde4-kwin         
kde4-yakuake kde4-kwikdisk kde4-kwalletmanager kde4-kscd kde4-okular                
kde4-superkaramba kdebase4 kde4-ksudoku kde4-ksnapshot kde4-krfb kde4-krdc          
kde4-kreversi kde4-korganizer kde4-kmix kde4-kpat kde4-kopete kde4-kfloppy kde4-kfind 
kde4-kgpg kde4-knewsticker kde4-kruler kde4-kmines kde4-kontact kde4-kmahjongg        
kde4-knotes kde4-konsole kde4-konqueror kde4-kmail                                    
kde4-kio_sysinfo-branding-openSUSE kde4-kio_sysinfo kde4-kmag kde4-kio_audiocd        
kde4-keditbookmarks kde4-kget kde4-kdessh kde4-kdm-branding-openSUSE kde4-kdm         
kdepim4 kde4-kdf kde4-kaddressbook kde4-dolphin kde4-kdepasswd kde4-kate kde4-ark     
kde4-akregator kde4-akonadi kde4-filesystem kde4-gwenview kde4-kcalc kde4-kdialog     
kdegames4-carddecks-default kde4-l10n-de kde4-kio_sysinfo-branding-upstream           
libqt4-sql-32bit libqt4-qt3support-32bit libqt4-32bit libqt4-x11-32bit                


The following packages are going to be downgraded:
  python-qt4 python-sip                           


The following package is going to change architecture:
  phonon-backend-gstreamer-0_10                       
Comment 16 Bernhard Koenig 2008-10-06 02:47:14 UTC
As of today, I have a new dependency problem:

bkoenig@amilo:~> sudo zypper dup
root's password:
Reading installed packages...

Problem: liboil-0_3-0-0.3.15-0.pm.2.x86_64 obsoletes liboil <= 0.3.14 provided by liboil-0.3.14-18.1.x86_64
 Solution 1: replacement of liboil-0.3.14-18.1.x86_64 with liboil-0_3-0-0.3.15-0.pm.2.x86_64
 Solution 2: do not install liboil-0_3-0-0.3.15-0.pm.2.x86_64

Choose from above solutions by number or cancel [1/2/C]:
Comment 17 Michael Andres 2008-10-06 15:03:36 UTC
You can hardly prevent such kind of conflicts, if you include other repositories like packman. packman uses a different name for the package: liboil-0_3-0 (-0_3-0 is part of the package name, it's not the package version). 

packman wants to introduce a this new package and wan't it to remove any existing liboil package.

For the solver this is not an update of some package, he has to remove one vendors package (liboil) and install another package (liboil-0_3-0) from a different vendor. This is something _YOU_ have to decide and confirm. 

This is not a bug.

---
Maybe you want to try 'zypper up -t package'. This might produce less surprising results. It does not do all the tricks a distribution upadte does, but you usually don't need them in your daily tasks. 
Comment 18 Bernhard Koenig 2008-10-07 03:30:26 UTC
OK, thanks for the suggestions. I would usually use opensuseupdater but that one will not be completely fixed until the release of kupdateapplet, so I switched to command-line updates. Here "sudo zypper dup" is much easier to memorize but I guess "sudo zypper up -t package" is more like the GUI updater.
Comment 19 Jan Kupec 2008-10-07 08:10:41 UTC
JFYI: -t package is now default, so 'zypper up' is enough
Comment 20 Michael Andres 2008-10-07 11:45:27 UTC
@Jano: Bernhard is using 11.0(!) Did you backport the '-t package' default? Otherwise it's still needed.
Comment 21 Jan Kupec 2008-10-07 12:04:08 UTC
oops! sorry, you're right.
Comment 22 Bernhard Koenig 2008-10-07 16:45:24 UTC
Yeah, "sudo zypper up" and "sudo zypper up -t package" are currently not the same for me. I wouldn't mind if "-t package" would become default. And my suggestion would be to recommend people to use "sudo zypper up" and try to avoid using "sudo zypper dup". Maybe by adding a note in "zypper --help".
Comment 23 Rémy Marquis 2008-10-11 13:22:48 UTC
*** Bug 434556 has been marked as a duplicate of this bug. ***