When installing this week’s update, the error below occurred. Trying “Install unconditionally” did not make a difference.
I am not clear why a “devel” package is being installed. An error?
Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/share/sip/PyQt5: cpio: File from package already exists as a directory in system
error: python3-qt5-devel-5.15.1-2.1.x86_64: install failed
error: python-qt5-common-devel-5.15.1-1.1.noarch: erase skipped
“File from package already exists as a directory” does indeed exist.
I am not sure if this problem is solved with deleting python-qt5-common-devel. I followed the instructions and deleted the package and on today’s zypper dup I had again this error message that installing of package python3-qt5-devel-5.15.1-2.1.x86_64 failed. I selected ignore and the install proceeded without problems. But why is this coming up again? Will it come upt again next time when I do a zypper dup?
It is not required by anything according to Yast - nevertheless it appeared when I used zypper dup this morning. Of course I can lock it but I just keep an eye out if it comes in again with the next zypper dup. Just now it wasn’t listed when I tried.
I would expect that package would be used for code development.
Do you have any Developer IDE’s installed?
Have you used any tools that help you code Python?
No - I am not an IT person (even though I manage our little 6 computer network (5 openSUSE Leap 15.2 and 1 TUmbleweed) for our little business and private use) and I don’t understand much of programming. But amonng the many python packages I found 2 other devel packages: python-sip-devel and python38-devel. No Idea what they are for though.
The packages with “devel” appended to the main package name are for situations where something wants a modified version instead of the standard package. A program would then perform some sort of “build” to create the new, custom version.
I guess in theory another package or an app might want your devel packages but if I were to guess, it’s just an oversight by a developer forgetting to exclude these files when their finished work is contributed to the distribution repository.
I have 2 machines, both upgraded to 20201119. ‘erlangen’ has package python3-qt5-devel-5.15.1-2.1.x86_64 installed, while ‘3400G’ doesn’t have it. Find out who is requiring it by running:
Short answer: One of the packages listed for removal requires it. When ‘zypper dist-upgrade’ paused with the above error I aborted. Then I ran ‘rm -r /usr/share/sip/PyQt5’ and again ‘zypper dist-upgrade’, which now succeeded.
Ah. I was unclear.
The solution was to remove the PyQt5 directory; it is apparently a leftover from a previous re-structuring. Then install python3-qt5-devel.