6

我正在尝试使用dput. 正如launchpad.net帮助中提到的,我只需要使用以下命令:

dput ppa:my-lp-id/ppa <source.changes>

我的 PPA 称为main. 我使用以下命令构建包debuild -S并尝试上传生成的文件:foo_0.1.2_source.changes

dput ppa:myid/main foo_0.1.2_source.changes

但这导致

No host ppa:myid/main found in config

在我的dput.cf我有以下内容:

[ppa]
fqdn                    = ppa.launchpad.net
method                  = ftp
# replace <launchpad-id> with your Launchpad ID
#incoming               = ~<launchpad-id>/ubuntu
incoming                = ~myid/ubuntu
login                   = anonymous

所以,宿主肯定在那里,但这里有什么问题呢?

编辑: ArchLinux 上的 dput 似乎有问题。Ubuntu 上的相同命令就像一个魅力。

4

1 回答 1

5

I just figured this out for myself. I am on a Debian system and this is what worked for me:

The dput command uses the section header name from dput.cf as input. So, in the case you described above you would want to use the command:

dput ppa foo_0.1.2_source.changes

Here is what my dput.cf config looks like:

[stendhal-webstart]
fqdn = ppa.launchpad.net
method = ftp
incoming = ~username/stendhal-webstart/ubuntu/
login = anonymous
allow_unsigned_uploads = 0

So the command dput stendhal-webstart stendhal-webstart_1.0_source.changes worked for me. Hope this helps.

It seems that dput settings are a bit different on Ubuntu systems than others'.

于 2015-04-13T11:14:40.207 回答