bintray:无法上传文件:无法提取工件的元数据(来自 .deb)

bintray: Unable to upload files: Could not extract metadata for artifact (from .deb)

我使用 Bintray 作为 APT debian 存储库,它以前运行良好。 但是我现在在上传 debian 软件包(.deb 文件)时遇到问题

Push to https://api.bintray.com/content/amurzeau/streamlink-debian/streamlink/0.9.0-59-g9435397+dfsg-1/pool/main/s/streamlink/livestreamer_1.12.2+streamlink+0.9.0-59-g9435397+dfsg-1_all.deb;deb_distribution=experimental;deb_component=main;deb_architecture=amd64,i386;publish=0;override=1
Response: {"message":"Unable to upload files: Could not extract metadata for artifact 'pool/main/s/streamlink/livestreamer_1.12.2+streamlink+0.9.0-59-g9435397+dfsg-1_all.deb', content might be malformed."}

我发现问题与 .deb 文件的内容有关:

所以问题:

注意:要将 debian 软件包从 .changes 文件推送到 bintray,我使用此脚本 https://github.com/amurzeau/debian-travis/blob/c1aa5e895dc78ad44b8ae76a89871af3b93a6e23/travis-build/bintray_upload_changes.py

区别indeed与.deb的内容有关,压缩方式要准确。

截至今天,Bintray 仍然不支持在 Ubuntu 18.04 上创建的包。

在debian/rules文件中是possible to workaround this issue by specifying options to dh_builddeb

override_dh_builddeb:
        dh_builddeb -- --no-uniform-compression