** Description changed: - After installing the latest Python2.7 (2.7.18-13ubuntu1.3) there is a - problem installing packages with PIP. + After installing the latest Python2.7 (2.7.18-13ubuntu1.3) there is a problem installing packages with PIP. + The new release has changes "Remove backtracking when parsing tarfile headers "https://launchpad.net/ubuntu/+source/python2.7/2.7.18-13ubuntu1.3 ``` pip install cryptography DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Collecting cryptography - Using cached cryptography-3.3.2.tar.gz (539 kB) + Using cached cryptography-3.3.2.tar.gz (539 kB) ERROR: Exception: Traceback (most recent call last): - File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main - status = self.run(options, args) - File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cli/req_command.py", line 180, in wrapper - return func(self, options, args) - File "/usr/local/lib/python2.7/dist-packages/pip/_internal/commands/install.py", line 321, in run - reqs, check_supported_wheels=not options.target_dir - File "/usr/local/lib/python2.7/dist-packages/pip/_internal/resolution/legacy/resolver.py", line 180, in resolve - discovered_reqs.extend(self._resolve_one(requirement_set, req)) - File "/usr/local/lib/python2.7/dist-packages/pip/_internal/resolution/legacy/resolver.py", line 385, in _resolve_one - dist = self._get_dist_for(req_to_install) - File "/usr/local/lib/python2.7/dist-packages/pip/_internal/resolution/legacy/resolver.py", line 337, in _get_dist_for - dist = self.preparer.prepare_linked_requirement(req) - File "/usr/local/lib/python2.7/dist-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement - return self._prepare_linked_requirement(req, parallel_builds) - File "/usr/local/lib/python2.7/dist-packages/pip/_internal/operations/prepare.py", line 505, in _prepare_linked_requirement - self.download_dir, hashes, - File "/usr/local/lib/python2.7/dist-packages/pip/_internal/operations/prepare.py", line 263, in unpack_url - unpack_file(file.path, location, file.content_type) - File "/usr/local/lib/python2.7/dist-packages/pip/_internal/utils/unpacking.py", line 270, in unpack_file - untar_file(filename, location) - File "/usr/local/lib/python2.7/dist-packages/pip/_internal/utils/unpacking.py", line 187, in untar_file - tar = tarfile.open(filename, mode) - File "/usr/lib/python2.7/tarfile.py", line 1708, in open - return func(name, filemode, fileobj, **kwargs) - File "/usr/lib/python2.7/tarfile.py", line 1762, in gzopen - t = cls.taropen(name, mode, fileobj, **kwargs) - File "/usr/lib/python2.7/tarfile.py", line 1738, in taropen - return cls(name, mode, fileobj, **kwargs) - File "/usr/lib/python2.7/tarfile.py", line 1602, in __init__ - self.firstmember = self.next() - File "/usr/lib/python2.7/tarfile.py", line 2385, in next - raise ReadError(str(e)) + File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main + status = self.run(options, args) + File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cli/req_command.py", line 180, in wrapper + return func(self, options, args) + File "/usr/local/lib/python2.7/dist-packages/pip/_internal/commands/install.py", line 321, in run + reqs, check_supported_wheels=not options.target_dir + File "/usr/local/lib/python2.7/dist-packages/pip/_internal/resolution/legacy/resolver.py", line 180, in resolve + discovered_reqs.extend(self._resolve_one(requirement_set, req)) + File "/usr/local/lib/python2.7/dist-packages/pip/_internal/resolution/legacy/resolver.py", line 385, in _resolve_one + dist = self._get_dist_for(req_to_install) + File "/usr/local/lib/python2.7/dist-packages/pip/_internal/resolution/legacy/resolver.py", line 337, in _get_dist_for + dist = self.preparer.prepare_linked_requirement(req) + File "/usr/local/lib/python2.7/dist-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement + return self._prepare_linked_requirement(req, parallel_builds) + File "/usr/local/lib/python2.7/dist-packages/pip/_internal/operations/prepare.py", line 505, in _prepare_linked_requirement + self.download_dir, hashes, + File "/usr/local/lib/python2.7/dist-packages/pip/_internal/operations/prepare.py", line 263, in unpack_url + unpack_file(file.path, location, file.content_type) + File "/usr/local/lib/python2.7/dist-packages/pip/_internal/utils/unpacking.py", line 270, in unpack_file + untar_file(filename, location) + File "/usr/local/lib/python2.7/dist-packages/pip/_internal/utils/unpacking.py", line 187, in untar_file + tar = tarfile.open(filename, mode) + File "/usr/lib/python2.7/tarfile.py", line 1708, in open + return func(name, filemode, fileobj, **kwargs) + File "/usr/lib/python2.7/tarfile.py", line 1762, in gzopen + t = cls.taropen(name, mode, fileobj, **kwargs) + File "/usr/lib/python2.7/tarfile.py", line 1738, in taropen + return cls(name, mode, fileobj, **kwargs) + File "/usr/lib/python2.7/tarfile.py", line 1602, in __init__ + self.firstmember = self.next() + File "/usr/lib/python2.7/tarfile.py", line 2385, in next + raise ReadError(str(e)) ReadError: invalid header ``` The issue happens in Ubuntu 22.04 arm64 architecture. I believe the issue same as this bug report https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/2089071
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2089239 Title: tarfile.py regression: "ReadError: invalid header" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/2089239/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs