Curl Bintray Debian存储库创建和使用API上载文件
我正在遵循中的步骤和答案 但是,我的Bintray Debian文件上载尝试仍然失败,原因是:Curl Bintray Debian存储库创建和使用API上载文件,curl,debian,bintray,Curl,Debian,Bintray,我正在遵循中的步骤和答案 但是,我的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:m
{"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
基本上,我得到的错误与
出于完全相同的原因
所以我决定从头开始,首先创建Bintray Debian存储库。
这是我的密码:
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}'
我没有出错,但也没有回应。当我从Bintray web UI检查时,存储库没有创建。试图将version\u update\u max\u days:60添加到JSON也没有帮助
怎么了?上传文件:
curl命令需要引号,请参见
创建存储库:
curl命令缺少媒体类型,在本例中应为-H Content-type:application/json。在详细模式-v下运行curl命令总是很好的
下面是curl命令的外观:
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
上载文件:
curl命令需要引号,请参见
创建存储库:
curl命令缺少媒体类型,在本例中应为-H Content-type:application/json。在详细模式-v下运行curl命令总是很好的
下面是curl命令的外观:
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