Not sure if this is the correct place to post this but unusually I have had an error when running a Tumbleweed update. I have :-
(141/223) Installing: python2-pytz-2019.2-2.1.noarch .........................................................[error]
Installation of python2-pytz-2019.2-2.1.noarch failed:
Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/pytz/zoneinfo: cpio: File from package already exists as a directory in system
error: python2-pytz-2019.2-2.1.noarch: install failed
Abort, retry, ignore? [a/r/i] (a): r
Not sure what I should do about this and would appreciate advice please.
Many thanks for the reply. I understand the advice concerning EOL for the earlier python version. My problem is knowing how and why it is there and should I start trying to remove it?
You seem to be trying to install a newer version of python2-pytz-2019.2-2.1.noarch over the top of one from an earlier distribution-snapshot with the same version number, but a different file archive.
The contents and layout of /usr/lib/python2.7/site-packages/ has changed.
This wa propably caused by trying to “update” using PackageKit or somesuch instead of upgrading with:
# zypper dup
Please show what upgrade/update command/procedure you used and your output of:
sysman@iMac-testing:~> cat /etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20191028"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20191028"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20191028"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
LOGO="distributor-logo"
sysman@iMac-testing:~>
sysman@iMac-testing:~> zypper lr -Eu
Repository priorities are without effect. All enabled repositories share the same priority.
# | Alias | Name | Enabled | GPG Check | Refresh | URI
--+--------------------------------------+-----------------------------+---------+-----------+---------+-----------------------------------------------------
1 | download.opensuse.org-oss | Main Repository (OSS) | Yes | (r ) Yes | Yes | http://dwnload.opensuse.org/tumbleweed/repo/oss/
2 | packman.inode.at-openSUSE_Tumbleweed | Packman Repository | Yes | (r ) Yes | Yes | http://pckman.inode.at/suse/openSUSE_Tumbleweed/
sysman@iMac-testing:~>
Many thanks for your reply. My normal update procedure is to use zypper dup as the package kit stopped working from when I changed to Tumbleweed.
There may have been occasions when I installed an odd package but I cannot remember any python work but only Perl modules.
Here are my findings from your instructions:-
But there will be if one has mutliple python2 packages installed. These packages can no longer be uninstalled properly, since rpm / zypper will detect missing folders and files.
sysman@iMac-testing:~> sudo rm -r /usr/lib/python2.7/site-packages/pytz*
sysman@iMac-testing:~> sudo zypper rm python2-pytz
Loading repository data...
Warning: No repositories defined. Operating only with the installed resolvables. Nothing can be installed.
Reading installed packages...
Resolving package dependencies...
The following package is going to be REMOVED:
python2-pytz
1 package to remove.
After the operation, 220.2 KiB will be freed.
Continue? [y/n/v/...? shows all options] (y):
(1/1) Removing python2-pytz-2019.2-2.1.noarch .............................................................[done]
Additional rpm output:
warning: file /usr/lib/python2.7/site-packages/pytz/zoneinfo: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/tzinfo.pyo: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/tzinfo.pyc: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/tzinfo.py: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/tzfile.pyo: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/tzfile.pyc: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/tzfile.py: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/reference.pyo: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/reference.pyc: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/reference.py: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/lazy.pyo: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/lazy.pyc: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/lazy.py: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/exceptions.pyo: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/exceptions.pyc: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/exceptions.py: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/__init__.pyo: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/__init__.pyc: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz/__init__.py: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz-2019.2-py2.7.egg-info/zip-safe: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz-2019.2-py2.7.egg-info/top_level.txt: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz-2019.2-py2.7.egg-info/dependency_links.txt: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz-2019.2-py2.7.egg-info/SOURCES.txt: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz-2019.2-py2.7.egg-info/PKG-INFO: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz-2019.2-py2.7.egg-info: remove failed: No such file or directory
warning: file /usr/lib/python2.7/site-packages/pytz: remove failed: No such file or directory
There are running programs which still use files and libraries deleted or updated by recent upgrades. They should be restarted to benefit from the latest updates. Run 'zypper ps -s' to list these programs.
sysman@iMac-testing:~>
YaST Software Manager shows that the python2-pytz has been removed (and provides a simple means to reinstall it). When I previously used
zypper in -f python2-pytz
without uninstalling the package it provided the contents of the directories /usr/lib/python2.7/site-packages/pytz
and ***/usr/lib/python2.7/site-packages/pytz-2019.2-py2.7.egg-info
*** BTW Budgie2, If you have completed a “zypper dup” I would just remove the pytz and pytz-2019.2-py2.7.egg-info directories rather than all the/usr/lib/python2.7 files to avoid having to repeat the whole upgrade.
You suggested to move the entire python2.7 folder to python2.7.old. Apparently YaST and zypp can deal with this today ( wasn’t like that before, one had do use --force ). But what happens to apps that have dependencies in this folder. Honestly, you’re breaking the system that way. In Budgie2’s case, it would mean that a package depending on python2-zoneinfo would install ( python2-zoneinfo is installed ) but would not work ( files belonging to the package are no longer there ). This is also the danger of using ‘pip’ as root. The rpmdb has know info about the files/modules/packages installed by pip.