最近一次 TW 的 dup 报如下错误。
# sudo zypper dup
The following NEW package is going to be installed:
python3-qt5-devel
The following package is going to be REMOVED:
python-qt5-common-devel
1 new package to install, 1 to remove.
Overall download size: 617.7 KiB. Already cached: 0 B. After the operation, additional 1.6 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package python3-qt5-devel-5.15.1-2.1.x86_64 (1/1), 617.7 KiB ( 4.5 MiB unpacked)
Retrieving: python3-qt5-devel-5.15.1-2.1.x86_64.rpm ....................................................................................................[done]
Checking for file conflicts: ...........................................................................................................................[done]
(1/1) Installing: python3-qt5-devel-5.15.1-2.1.x86_64 .................................................................................................[error]
Installation of python3-qt5-devel-5.15.1-2.1.x86_64 failed:
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
Abort, retry, ignore? [a/r/i] (a):
解决方案:
sudo zypper rm python-qt5-common-devel