如何添加/创建<source.changes>文件?


13

我已经使用Quickly创建了一个程序包,并且已经将其上传到启动板上的分支,但是如何为该程序创建PPA并上传到该程序?我对这些东西真的很陌生,我刚刚学会了如何使用义卖市场。

如何添加/创建<source.changes>文件?

jeggy@jeggy-XPS:~/Skriviborð/jebster$ dput ppa:jeggy/jebrowser
Not a .changes file.
Please select a .changes file to upload.
Tried to upload: ppa:jeggy/jebrowser

如果有帮助,我已经添加了OpenPGP密钥。

回应安德鲁斯:

jeggy@jeggy-XPS:~/Skriviborð/jebster$ quickly share --ppa ppa:jeggy/jebrowser
Get Launchpad Settings
Launchpad connection is ok
gpg: WARNING: unsafe permissions on configuration file `/home/jeggy/.gnupg/gpg.conf'
gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/jeggy/.gnupg/gpg.conf'
gpg: WARNING: unsafe permissions on configuration file `/home/jeggy/.gnupg/gpg.conf'
gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/jeggy/.gnupg/gpg.conf'
User or Team ppa:jeggy not found on Launchpad
ERROR: share command failed
Aborting

当我跑步时debuild -S -sa,我明白了

jeggy@jeggy-XPS:~/Skriviborð/jebster$ debuild -S -sa
 dpkg-buildpackage -rfakeroot -d -us -uc -S -sa
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro
dpkg-buildpackage: source package jebster
dpkg-buildpackage: source version 0.1
dpkg-buildpackage: source changed by root <root@jeggy-XPS>
 dpkg-source --before-build jebster
 fakeroot debian/rules clean
dh clean --with python2,translations
   dh_testdir
   dh_auto_clean
running clean
'build/lib.linux-x86_64-2.7' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
WARNING: the following files are not recognized by DistUtilsExtra.auto:
  bin/jebsterc
  help/C/figures/icon.png
  help/C/index.page
  help/C/preferences.page
  help/C/topic1.page
  jebster.desktop.in
  po/jebster.pot
   dh_clean
 dpkg-source -b jebster
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: warning: source directory 'jebster' is not <sourcepackage>-<upstreamversion> 'jebster-0.1'
dpkg-source: info: using source format `1.0'
dpkg-source: info: building jebster in jebster_0.1.tar.gz
dpkg-source: info: building jebster in jebster_0.1.dsc
 dpkg-genchanges -S -sa >../jebster_0.1_source.changes
dpkg-genchanges: including full source code in upload
 dpkg-source --after-build jebster
dpkg-buildpackage: source only upload: Debian-native package
Now running lintian...
E: jebster changes: changed-by-address-malformed root <root@jeggy-XPS>
W: jebster source: diff-contains-bzr-control-dir .bzr
W: jebster source: unused-build-dependency-on-cdbs
W: jebster source: package-needs-versioned-debhelper-build-depends 8
W: jebster source: ancient-standards-version 3.8.3 (current is 3.9.3)
Finished running lintian.
Now signing changes and any dsc files...
 signfile jebster_0.1.dsc root <root@jeggy-XPS>
gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/jeggy/.gnupg/gpg.conf'
gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/jeggy/.gnupg/gpg.conf'
gpg: skipped "root <root@jeggy-XPS>": secret key not available
gpg: /tmp/debsign.BdtFRCql/jebster_0.1.dsc: clearsign failed: secret key not available
debsign: gpg error occurred!  Aborting....
debuild: fatal error at line 1271:
running debsign failed

jeggy@jeggy-XPS:~/Skriviborð/jebster/debian$ cat changelog
jebster (0.1) precise; urgency=low

  [ Jógvan Olsen ]
  * Initial release.

  [ root ]

 -- root <root@jeggy-XPS>  Mon, 25 Jun 2012 14:53:00 +0100


jeggy@jeggy-XPS:~/Skriviborð/jebster/debian$ gpg --list-keys
gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/jeggy/.gnupg/gpg.conf'
/home/jeggy/.gnupg/pubring.gpg
------------------------------
pub   2048R/1C17B342 2012-03-10
uid                  Ubuntu Accomplishments <jono@ubuntu.com>
sub   2048R/6305AA1F 2012-03-10
sub   2048D/05164E07 2012-03-10

pub   1024R/2868F9C3 2012-06-23
uid                  Jógvan Olsen <jeggy@jebster.net>

pub   2048R/5C24B331 2012-06-24
uid                  Jógvan Olsen <jeggy@jebster.net>
sub   2048R/162F6987 2012-06-24

pub   2048R/2B4F8FE7 2012-06-26
uid                  Jogvan Olsen <jeggy@jebster.net>
sub   2048R/9CF57E08 2012-06-26

您可以cd进入源目录debuild -S -sa并运行,并将输出包括在您的问题中吗?
ish 2012年

谢谢!请将该debian/changelog文件的内容发布到jebster目录中;以及gpg --list-keys
ish

Answers:


9

好的,我们需要使用通常的PPA流程使您做好准备(忘记此快速业务,它似乎进展缓慢;)

原谅我使用您的全名jeggy,但这是在您的Launchpad帐户中,因此并不完全是秘密:

  1. 签署行为准则

  2. 正确设置您的名称并修改变更日志:

    • E: jebster changes: changed-by-address-malformed root <root@jeggy-XPS>
    • 这是一个问题,因为您的(a)格式错误,并且(b)与您的GPG密钥无关。
    • 在终端中,设置以下变量:
      export DEBFULLNAME =“JógvanOlsen”
      导出DEBEMAIL =“ jeggy@jebster.net”
      
    • 现在debian/changeloggedit中打开changelog(); 请仔细选择结尾处的该签名:
      root <root@jeggy-XPS>并将其更改为
      Jógvan Olsen <jeggy@jebster.net>确保之前/之后的空格不受影响。
    • 最终的变更日志应类似于:
      jebster(0.1)精确;urgency = low 
      \ *初始版本。
      -JógvanOlsen Tue,2012年7月3日04:29:33 -0700
  3. 最后,debuild正确签收source.changes包裹

    • 运行debuild -S -sa,这一次应要求您使用GPG密钥签名,5C24B331

    • cd .., 接着 dput ppa:jeggy/jebster xxxxxxx_source.changes


当尝试注册行为准则khp.randompoop.net/uploads/…
Jeggy 2012年

好的,那是一个混乱的钥匙圈:p。我不在电脑前,但是如果您不使用1024键,是否可以使用删除它gpg --delete-secret-key 2868F9C3,然后再次尝试使用CoC -这次,如有必要,使用gPg的附加选项-u“JógvanOlsen” ?
ish 2012年

@Jeggy,该错误肯定是由于GPG默认为第一个键1024 / 2868F9C3而引起的,并且没有与之相关的发布键。按照上
一条

好极了!恭喜@Jeggy,我期待尝试jebrowser:)不要忘记接受/赞扬/赏金:D
ish

1
@Jeggy:很抱歉,这是因为我在变更-1日志中以1.0.0-1为例。-N表示Debian修订版,因此它将寻找原始的源软件包。请查看编辑后的答案,第一行/版本应为jebster (0.1) precise; urgency=low
ish 2012年

1

.changes文件是PGP签名的文件,描述了Debian源代码包的内容,包括不同文件的Sha256校验和以及changelog条目。它是在构建源程序包时生成的,通常是通过运行debuild -S

但是您不必为此担心!快速为您处理所有这一切。赶紧跑quickly share --ppa ppa:jeggy/jebrowser


谢谢,但是没有用:(我将输出添加到问题中
Jeggy

0

我认为这是启动板设置的问题。

我在启动板上看到了您的个人资料页面。

https://launchpad.net/~吉吉

如果您已签署Ubuntu行为准则,则只能激活PPA。
您是否激活了“ Signed Ubuntu行为准则:是”?

如何激活CoC在这里:

如何签署《 Ubuntu行为准则》?

如果您已经看到了错误的文本并且无法发布新文本,请单击“ 停用”按钮。请从头开始再试一次。

然后,您可以在启动板的个人资料页面上看到“ 签名的Ubuntu行为准则:是 ”,然后重试命令:

quickly share --ppa jeggy/jebrowser

我改写了答案,以解决问题。


哇..我以为我已经做到了....但是这就是我在尝试时得到的。There is 1 error. (7, 9, u'No public key')
Jeggy 2012年

上载CoC时,您是否使用SSH密钥?您必须使用OpenPGP密钥,而不是SSH密钥。
vine_user 2012年

我该如何选择?我在启动板上同时拥有SSH和PGP密钥。我只是按照指示进行
。–

对于仅上传的文件,我误认为了这一点。在这种情况下,SSH不相关。请复制并粘贴GPG密钥加密的文本。
vine_user 2012年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.