Currently, using Python 3.8 or newer when deploying APT packages might result in a package that's not installable.
Environment
OS (where TypeDB server runs): Ubuntu 21.04 (or any other APT-based distribution)
TypeDB version (and platform): 2.3.0
TypeDB client: -
Other environment details: -
Reproducible Steps
sudo apt install typedb-all
Expected Output
Package installed
Actual Output
An error thrown:
Unpacking typedb-console (2.3.0) ...
dpkg: error processing archive /var/cache/apt/archives/typedb-console_2.3.0_all.deb (--unpack):
corrupted filesystem tarfile in package archive: unsupported PAX tar header type 'x'
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/typedb-console_2.3.0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Additional information
This is happening because of bazelbuild/rules_pkg#397
To solve this, we currently explicitly set Python 3.7.9 in apt deployments. However, it may also be solved by upgrading rules_pkg to at least version 0.7.1 (fixed in https://github.com/bazelbuild/rules_pkg/pull/601)
Description
Currently, using Python 3.8 or newer when deploying APT packages might result in a package that's not installable.
Environment
Reproducible Steps
sudo apt install typedb-all
Expected Output
Package installed
Actual Output
An error thrown:
Additional information
This is happening because of bazelbuild/rules_pkg#397