My latest attempt to run ‘zypper dup’ results in many conflict resolution options.
Is there a way to run zypper dup with automatic conflict resolution (i.e. it will complete by itself)?
IMHO zypper does ask for human intervention because it does not “know” what to do. What then should the “automatics” you ask for do?
However, if you have read the man page, you have found the -n --non-interactive global otion. What the result will be when zypper has to answer a question about breaking your system yes, no, maybe, I don;t know.
I think a better question would be: “Why do I get so many conflicts”?
Thanks :-]
I assume your question requires more thought than this,
but I would have the automatic method upgrade anything it can
which will not result in conflict / breaking anything.
It is not just an upgrade (in zypper terms), but a distribution upgrade.
The first is done very regulary (some do it daily) by many users of the non-Tumbleweed versions of openSUSE without any problems. And thus often automaticaly.
You chose for Tumbleweed. And that requires a bit more knowledge about how to manage repos and what a distribution update might run into.
Again, I invite you to ask for help with your conflicts. E.g. by posting at least one or two of them, completing that with your repo list. Then people can start studying it. At the moment there is nothing.
Along with Henk’s advice, you should probably show us your configured repo list
zypper lr -d
Sorry Henk, missed this request. Yes, the OP needs to provide the relevant info in order to help progress this.
Assuming you use the Packman repo as well ( or any other than the tumbleweed repos ), use
zypper dup --no-allow-vendor-change
This advice was given on the factory ML.
As others have suggested, first check whether you have some strange repos.
If you only have standard repos, then:
Yast → Software Management.
Select the “Package Groups” view.
Click on “orphaned packages”. (Maybe also look at “unneeded packages”).
In my experience, conflicts often involve orphaned packages that probably should be removed. But you might also get conflicts when you try to remove orphaned packages. Some cleanup of old packages usually helps.
I should add that an “orphaned package” is a package that is not found in any enabled repo. There might be some of those that you still want. But some of them are just outdated packages that are no longer supported or needed.
Just curious.
I can not find this option in my 13.1 man zypper (but it may be in newer openSUSE versions), thus I am unable to read the exact details. But what is the difference between the above and a
zypper up
I always had the idea that the main difference between “up” and “dup” is the Vendor change. So what is the idea of having “dup” without Vendor change instead of “up”?
The main differences (other than vendor change) I know of:
- dup will also downgrade packages, it will always install the latest version available in the repo(s), even if it is a lower version
- it will remove packages dropped from the distribution automatically
- it tries harder to solve conflicts automatically I think
And yes, that --no-allow-vendor-change option has only been added a few months ago, it is probably not available in 13.1 (an update that contains it has been released for 13.2, but I don’t know about 13.1).
The man page just says this:
**--[no-]allow-vendor-change**
Whether to allow changing the vendor of installed resolvables
[yes]. Setting this to **no** might be useful if you do not want
packages from foreign repos being dup’ed to the distributions
version (or vice versa ).
Ah! Thanks for the info.
Thanks all!
zypper lr -d
# | Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI | Service
--+-------------------------------------+-----------------------------+---------+-----------+---------+----------+--------+-----------------------------------------------------------------------------------+--------
1 | download.opensuse.org-tumbleweed | Main Update Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/tumbleweed/ |
2 | http-download.opensuse.org-1892648a | windows:mingw:win32 | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Factory/ |
3 | http-download.opensuse.org-858ca87f | KDE:Qt5 | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_Factory/ |
4 | http-download.opensuse.org-8bfe5a57 | windows:mingw | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/windows:/mingw/openSUSE_Factory/ |
5 | http-download.opensuse.org-d632806d | windows:mingw:win64 | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Factory/ |
6 | http-ftp.uni-erlangen.de-480c6cd7 | Packman Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://ftp.uni-erlangen.de/pub/mirrors/packman/suse/openSUSE_Tumbleweed |
7 | repo-non-oss | openSUSE-Tumbleweed-Non-Oss | Yes | (r ) Yes | Yes | 99 | yast2 | http://download.opensuse.org/tumbleweed/repo/non-oss/ |
8 | repo-oss | openSUSE-Tumbleweed-Oss | Yes | (r ) Yes | Yes | 99 | yast2 | http://download.opensuse.org/tumbleweed/repo/oss/ |
9 | repo-update | openSUSE-Tumbleweed-Update | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/tumbleweed/
zypper dup --no-allow-vendor-change
8 Problems:
Problem: problem with installed package amarok-2.8.0-36.9.x86_64
Problem: problem with installed package libguess1-1.2-11.10.x86_64
Problem: problem with installed package libmediastreamer_base6-2.12.1-3.1.x86_64
Problem: problem with installed package libmediastreamer_voip6-2.12.1-3.1.x86_64
Problem: problem with installed package libnfs-1.10.0-1.7.x86_64
Problem: problem with installed package libsoxr0-0.1.2-12.7.x86_64
Problem: libKF5Declarative5-5.25.0-1.1.x86_64 requires libQt5Core.so.5(Qt_5.6.1_PRIVATE_API)(64bit), but this requirement cannot be provided
Problem: kwin5-5.7.4-1.1.x86_64 requires libQt5Core.so.5(Qt_5.6.1_PRIVATE_API)(64bit), but this requirement cannot be provided
Problem: problem with installed package amarok-2.8.0-36.9.x86_64
Solution 1: install amarok-2.8.0-23.4.x86_64 (with vendor change)
http://packman.links2linux.de --> openSUSE
Presenting a solution that’s not allowed seems strange… ;-]
Orphaned packages:
# Status Package | Summary | Installed (Available) | Size
[Keep] boost-devel | Development package for Boost C++ | 1.60.0-4.9 | 95.2 MiB
[Keep] boost-license1_60_0 | Boost License | 1.60.0-4.9 | 1.3 KiB
[Keep] libOpenCOLLADA0 | Collada 3D import and export libraries | 1_3335ac1-2.2 | 11.1 MiB
[Keep] libavcodec55 | Shared library: ffmpeg/avcodec | 2.3-1.16 | 9.4 MiB
[Keep] libavformat55 | Shared library: ffmpeg/avformat | 2.3-1.16 | 1.6 MiB
[Keep] libavutil52 | Shared library: ffmpeg/avutil | 2.3-1.16 | 287.0 KiB
[Keep] libboost_atomic1_60_0 | Run-Time component of boost atomic li... | 1.60.0-4.9 | 5.8 KiB
[Keep] libboost_chrono1_60_0 | The Boost::Chrono runtime library | 1.60.0-4.9 | 26.5 KiB
[Keep] libboost_container1_60_0 | Boost::Container Runtime libraries | 1.60.0-4.9 | 83.0 KiB
[Keep] libboost_context1_60_0 | Run-Time component of boost context s... | 1.60.0-4.9 | 54.8 KiB
[Keep] libboost_coroutine1_60_0 | Boost::Coroutine Runtime libraries | 1.60.0-4.9 | 54.7 KiB
[Keep] libboost_date_time1_60_0 | Boost::Date.Time Runtime libraries | 1.60.0-4.9 | 66.7 KiB
[Keep] libboost_filesystem1_60_0 | Boost::Filesystem Runtime Libraries | 1.60.0-4.9 | 87.3 KiB
[Keep] libboost_graph1_60_0 | Boost::Graph Runtime Libraries | 1.60.0-4.9 | 328.5 KiB
[Keep] libboost_graph_parallel1_60_0 | Boost graph::distributed runtime libr... | 1.60.0-4.9 | 240.7 KiB
[Keep] libboost_iostreams1_60_0 | Boost::IOStreams Runtime Libraries | 1.60.0-4.9 | 99.3 KiB
[Keep] libboost_locale1_60_0 | The Boost::Locale runtime library | 1.60.0-4.9 | 924.1 KiB
[Keep] libboost_log1_60_0 | Run-Time component of boost logging l... | 1.60.0-4.9 | 1.4 MiB
[Keep] libboost_math1_60_0 | Boost::Math Runtime Libraries | 1.60.0-4.9 | 919.8 KiB
[Keep] libboost_mpi1_60_0 | Boost::MPI Runtime libraries | 1.60.0-4.9 | 271.9 KiB
[Keep] libboost_program_options1_60_0 | Boost::ProgramOptions Runtime libraries | 1.60.0-4.9 | 476.6 KiB
[Keep] libboost_python1_60_0 | Boost::Python Runtime Libraries | 1.60.0-4.9 | 288.1 KiB
[Keep] libboost_python3-1_60_0 | Boost::Python Runtime Libraries | 1.60.0-4.9 | 280.1 KiB
[Keep] libboost_random1_60_0 | The Boost::Random runtime library | 1.60.0-4.9 | 22.5 KiB
[Keep] libboost_regex1_60_0 | The Boost::Regex runtime library | 1.60.0-4.9 | 1.0 MiB
[Keep] libboost_serialization1_60_0 | Boost::Serialization Runtime Libraries | 1.60.0-4.9 | 407.0 KiB
[Keep] libboost_signals1_60_0 | Boost::Signals Runtime Libraries | 1.60.0-4.9 | 94.9 KiB
[Keep] libboost_system1_60_0 | Boost::System Runtime Libraries | 1.60.0-4.9 | 14.3 KiB
[Keep] libboost_test1_60_0 | Boost::Test Runtime Libraries | 1.60.0-4.9 | 724.7 KiB
[Keep] libboost_thread1_60_0 | Boost::Thread Runtime Libraries | 1.60.0-4.9 | 167.5 KiB
[Keep] libboost_timer1_60_0 | The Boost::Timer runtime library | 1.60.0-4.9 | 18.4 KiB
[Keep] libboost_wave1_60_0 | Boost::Wave Runtime Libraries | 1.60.0-4.9 | 1.2 MiB
[Keep] libdvdcss2 | A library designed for accessing encr... | 1.4.0-1.4 | 172.3 KiB
[Keep] libhdf5-10 | Shared libraries for the HDF5 scienti... | 1.8.17-1.3 | 3.8 MiB
[Keep] libhdf5_hl10 | High-level shared libraries for the H... | 1.8.17-1.3 | 136.1 KiB
[Keep] libmarblewidget-qt5-24 | Generic map viewer: Shared Library | 16.04.3-1.1 | 9.5 MiB
[Keep] libpoppler61 | PDF Rendering Library | 0.44.0-1.1 | 4.5 MiB
[Keep] libpoppler62 | PDF Rendering Library | 0.45.0-1.1 | 4.5 MiB
[Keep] libpostproc52 | Shared library: ffmpeg/postproc | 2.3-1.16 | 102.2 KiB
[Keep] libprocps5 | The procps library | 3.3.11-4.2 | 71.0 KiB
[Keep] libswresample0 | Shared library: ffmpeg/swresample | 2.3-1.16 | 94.4 KiB
[Keep] libvpx2 | VP8 codec library | 1.4.0-5.6 | 2.2 MiB
[Keep] libvpx3 | VP8 codec library | 1.6.0~pre20160610-1.1 | 1.6 MiB
[Keep] libvpx3-32bit | VP8 codec library | 1.6.0~pre20160610-1.1 | 1.6 MiB
[Keep] libx264-144 | X264 Share library, Major Version $144 | 0.144-1.75 | 995.8 KiB
[Keep] libx265-79 | A free H265/HEVC encoder - encoder bi... | 1.9-1.8 | 4.4 MiB
[Keep] libxapian22 | Xapian search engine libraries | 1.2.23-1.3 | 2.0 MiB
[Keep] openSUSE-release-livecd-kde | openSUSE Tumbleweed | 20160416-1.1 | 73 B
[Keep] wine-staging | An MS Windows Emulator | 1.7.51-2.48 | 176.8 MiB
[Keep] wine-staging-32bit | An MS Windows Emulator | 1.7.51-2.48 | 158.8 MiB
At least some of your problems come from the KDE:Qt5 repo.
Remove it, it is incompatible with the KF5/Plasma5 packages included in Tumbleweed.
Presenting a solution that’s not allowed seems strange… ;-]
Why?
You told zypper dup to not switch vendor automatically, and it doesn’t.
But that apparently is one way to solve a conflict, so it is offered as option to you.
I understand now. Thank you.
I deleted the KDE:Qt5 repository
and zypper dup ran without stopping. :-]
It cleaned up the orphaned packages a bit:
[Keep] libavcodec55 | Shared library: ffmpeg/avcodec | 2.3-1.16 | 9.4 MiB
[Keep] libavformat55 | Shared library: ffmpeg/avformat | 2.3-1.16 | 1.6 MiB
[Keep] libavutil52 | Shared library: ffmpeg/avutil | 2.3-1.16 | 287.0 KiB
[Keep] libdvdcss2 | A library designed for accessing encr... | 1.4.0-1.4 | 172.3 KiB
[Keep] libmarblewidget-qt5-24 | Generic map viewer: Shared Library | 16.04.3-1.1 | 9.5 MiB
[Keep] libpoppler61 | PDF Rendering Library | 0.44.0-1.1 | 4.5 MiB
[Keep] libpoppler62 | PDF Rendering Library | 0.45.0-1.1 | 4.5 MiB
[Keep] libpostproc52 | Shared library: ffmpeg/postproc | 2.3-1.16 | 102.2 KiB
[Keep] libswresample0 | Shared library: ffmpeg/swresample | 2.3-1.16 | 94.4 KiB
[Keep] libvpx2 | VP8 codec library | 1.4.0-5.6 | 2.2 MiB
[Keep] libx264-144 | X264 Share library, Major Version $144 | 0.144-1.75 | 995.8 KiB
[Keep] libx265-79 | A free H265/HEVC encoder - encoder bi... | 1.9-1.8 | 4.4 MiB
[Keep] openSUSE-release-livecd-kde | openSUSE Tumbleweed | 20160416-1.1 | 73 B
[Keep] wine-staging | An MS Windows Emulator | 1.7.51-2.48 | 176.8 MiB
[Keep] wine-staging-32bit | An MS Windows Emulator | 1.7.51-2.48 | 158.8 MiB