PPA 软件包更新在导入时抛出“无效 SHA”

PPA 软件包更新在导入时抛出“无效 SHA”

我正在尝试更新 PPA 上的包,但导入失败并出现以下错误:

2019-06-26 05:33:26 INFO    Starting job.
2019-06-26 05:33:26 INFO    Getting exising bzr branch from central store.
2019-06-26 05:33:26 INFO    [chan bzr SocketAsChannelAdapter] Opened sftp connection (server version 3)
2019-06-26 05:33:26 INFO    35 bytes transferred
2019-06-26 05:33:29 INFO    [chan bzr SocketAsChannelAdapter] Opened sftp connection (server version 3)
2019-06-26 05:33:30 INFO    Importing branch.
2019-06-26 05:33:31 INFO    
Traceback (most recent call last):
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/scripts/code-import-worker.py", line 106, in <module>
    sys.exit(script.main())
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/scripts/code-import-worker.py", line 101, in main
    return import_worker.run()
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/lib/lp/codehosting/codeimport/worker.py", line 554, in run
    return self._doImport()
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/lib/lp/codehosting/codeimport/worker.py", line 757, in _doImport
    inter_branch.fetch(limit=revision_limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/bzrplugins/git/branch.py", line 722, in fetch
    self.fetch_objects(stop_revision, fetch_tags=fetch_tags, limit=limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/bzrplugins/git/branch.py", line 745, in fetch_objects
    determine_wants, self.source.mapping, limit=limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/bzrplugins/git/fetch.py", line 715, in fetch_objects
    progress=lambda text: report_git_progress(pb, text))
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/bzrplugins/git/remote.py", line 461, in fetch_objects
    lambda x: os.write(fd, x), progress)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/bzrplugins/git/remote.py", line 451, in fetch_pack
    pack_data, progress)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/bzrplugins/git/remote.py", line 270, in fetch_pack
    graph_walker, pack_data, progress)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/env/local/lib/python2.7/site-packages/dulwich/client.py", line 1413, in fetch_pack
    lambda: False)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/env/local/lib/python2.7/site-packages/dulwich/client.py", line 574, in _handle_upload_pack_head
    have = next(graph_walker)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/env/local/lib/python2.7/site-packages/dulwich/object_store.py", line 1173, in next
    ps = self.get_parents(ret)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/bzrplugins/git/fetch.py", line 708, in <lambda>
    lambda sha: store[sha].parents)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/bzrplugins/git/object_store.py", line 674, in __getitem__
    _check_expected_sha(sha, commit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18991/bzrplugins/git/object_store.py", line 155, in _check_expected_sha
    expected_sha))
AssertionError: Invalid sha for <Commit f896f482b8dffbfb95809764b42ffa73e0cc008e>: 606c547e4e523ce6ec67f1f5142532b0975b319a
Import failed:
Traceback (most recent call last):
Failure: twisted.internet.error.ProcessTerminated: A process has ended with a probable error condition: process ended with exit code 1.

我不太清楚该如何修复这个问题,而且我似乎找不到有关错误消息的任何相关信息。任何提示或帮助都将不胜感激。

答案1

问题在于 bzr 和 git 之间的交叉同步问题。就我而言,我的主要来源是 git 存储库,而我不需要 bzr 存储库,因此我将启动板上的同步目标更改为 git,并将构建配方更改为 git 构建器,一切正常。

相关内容