为什么当我尝试将包上传到 PPA 时会出现“此上传内容中有 .deb 文件,但提示它们不存在。”的错误信息?

为什么当我尝试将包上传到 PPA 时会出现“此上传内容中有 .deb 文件,但提示它们不存在。”的错误信息?

我正在尝试将我构建的一些包上传debuild到 PPA,但是失败并显示以下信息:

dput ppa:braiampe/ffc ffc_1.3.20140513-1_i386.changes 
Uploading ffc using ftp to ppa (host: ppa.launchpad.net; directory: ~braiampe/ffc/ubuntu)
running supported-distribution: check whether the target distribution is currently supported (using distro-info)
{u'known': [u'release', u'proposed', u'updates', u'backports', u'security'], u'allowed': [u'release']}
running checksum: verify checksums before uploading
running suite-mismatch: check the target distribution for common errors
running check-debs: makes sure the upload contains a binary package
There are .debs in this upload, and enforcing they don't exist.

我如何将源上传至 PPA?

答案1

问题在于您使用 debuild 来构建 Debian 二进制文件,而不是 Debian 源代码。您应该使用debuild -S。现在,dput-ng 错误消息太模糊了,但本质上是说有二进制 deb,而您没有强制上传它们。以下是该消息的来源

if not enforce_debs and has_debs:
    raise BinaryUploadError(
        "There are .debs in this upload, and enforcing they don't exist."
    )

相关内容