代码之家  ›  专栏  ›  技术社区  ›  xpt

Bintray Debian存储库创建和使用API上载文件

  •  1
  • xpt  · 技术社区  · 7 年前

    Debian repository on Bintray multiple errors and unexpected behavior

    但是,我的Bintray Debian文件上载尝试仍然失败,原因是:

    {"message":"Unable to upload files: Debian distribution, component and architecture were not found on repo and were not specified"}
    

    这是我的curl命令:

    curl -T libterm-screencolor-perl_1.09-1_all.deb -umyid:mybintraykey https://api.bintray.com/content/myid/myrepo/libterm-screencolor-perl/1.09-1/pool/main/l/libterm-screencolor-perl_1.09-1_all.deb;deb_distribution=all;deb_component=main;deb_architecture=i386,amd64;override=1
    

    基本上,我得到的错误与 出于完全相同的原因。

    via API
    这是我的代码:

    curl -umyid:mybintraykey https://api.bintray.com/repos/myid/deb -d '{"name":"deb","type":"debian","default_debian_architecture":"amd64","default_debian_distribution":"all","default_debian_component":"main","private":false,"desc":"This repo...","business_unit":"businessUnit1","labels":["label1","label2"],"gpg_sign_metadata":false,"gpg_sign_files":false,"gpg_use_owner_key":false}'
    

    "version_update_max_days" : 60 对于JSON也没有帮助。

    1 回复  |  直到 7 年前
        1
  •  5
  •   Royg    7 年前

    上载文件:
    你的 curl answer

    创建存储库:
    你的 卷曲 -H "Content-Type: application/json" 。跑步总是好的 卷曲 详细模式下的命令 -v

    卷曲

    curl -umyid:mybintraykey https://api.bintray.com/repos/myid/deb -H "Content-Type: application/json" -d '{"name":"deb","type":"debian","default_debian_architecture":"amd64","default_debian_distribution":"all","default_debian_component":"main","private":false,"desc":"This repo...","business_unit":"businessUnit1","labels":["label1","label2"],"gpg_sign_metadata":false,"gpg_sign_files":false,"gpg_use_owner_key":false}' -v