我该如何修复“bzr:错误:无法确定您的姓名。”?

我该如何修复“bzr:错误:无法确定您的姓名。”?

我正在尝试运行quickly create我的第一个应用程序,但当我尝试运行或创建应用程序时出现 gtk 错误。

以下是我执行的操作和得到的结果的副本:

daniel@laptop:~/PyDevelopment$ quickly create ubuntu-application app001
Creating project directory app001
Creating bzr repository and committing
Launching your newly created project!
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `App001Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
Congrats, your new project is setup! cd /home/daniel/PyDevelopment/app001/ to start hacking.
daniel@laptop:~/PyDevelopment$ cd app001
daniel@laptop:~/PyDevelopment/app001$ quickly design
daniel@laptop:~/PyDevelopment/app001$ quickly rub
ERROR: No rub command found in template ubuntu-application.
Candidate commands are: add, commands, configure, create, debug, design, edit, getstarted, help, license, package, quickly, release, run, save, share, submitubuntu, test, tutorial, upgrade
daniel@laptop:~/PyDevelopment/app001$ quickly run
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `App001Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
daniel@laptop:~/PyDevelopment/app001$ quickly package
.......Ubuntu packaging created in debian/
.......
----------------------------------
Command returned some ERRORS:
----------------------------------
bzr: ERROR: Unable to determine your name.
----------------------------------
ERROR: can't create or update ubuntu package
ERROR: package command failed
Aborting

答案1

你需要使用命令告诉 bzr 你的名字bzr whoami,如下所示:

bzr whoami "Jorge Castro <[email protected]>"

当然,替换您的姓名和地址。您可以通过查看查看所有 whoami 选项bzr help whoami

设置完名称后,重新运行快速打包命令。

GTK 的“错误”是警告,根本不是错误。许多应用程序会因为各种原因抛出这些错误,但它们不应被解释为发生了严重错误。

相关内容