安装 GitKraken.deb 时如何解决 Lintian 错误?

安装 GitKraken.deb 时如何解决 Lintian 错误?

尝试安装GitKraken .deb在 Ubuntu16.04 上我收到以下消息:Unleash your repo 在此处输入图片描述

在 GDebi 包安装程序上我收到以下错误:

Litian Output
E: gitkraken: malformed-override Override of arch-dependent-file-in-usr-share for package type atom (expecting binary) at line 1
E: gitkraken: malformed-override Override of changelog-file-missing-in-native-package for package type atom (expecting binary) at line 2
E: gitkraken: malformed-override Override of copyright-file-contains-full-apache-2-license for package type atom (expecting binary) at line 3
E: gitkraken: malformed-override Override of copyright-should-refer-to-common-license-file-for-apache-2 for package type atom (expecting binary) at line 4
E: gitkraken: malformed-override Override of embedded-library for package type atom (expecting binary) at line 5
E: gitkraken: malformed-override Override of package-installs-python-bytecode for package type atom (expecting binary) at line 6
E: gitkraken: malformed-override Override of unstripped-binary-or-object for package type atom (expecting binary) at line 7
E: gitkraken: arch-dependent-file-in-usr-share usr/share/gitkraken/gitkraken
E: gitkraken: embedded-library usr/share/gitkraken/gitkraken: srtp
E: gitkraken: embedded-library usr/share/gitkraken/gitkraken: libpng
E: gitkraken: embedded-library usr/share/gitkraken/gitkraken: sqlite
E: gitkraken: embedded-library usr/share/gitkraken/gitkraken: libxml2
E: gitkraken: embedded-library usr/share/gitkraken/gitkraken: lcms2
E: gitkraken: embedded-library usr/share/gitkraken/gitkraken: libjpeg
E: gitkraken: arch-dependent-file-in-usr-share usr/share/gitkraken/libffmpeg.so
E: gitkraken: embedded-library usr/share/gitkraken/libffmpeg.so: libavutil
E: gitkraken: arch-dependent-file-in-usr-share usr/share/gitkraken/libnode.so
E: gitkraken: embedded-library usr/share/gitkraken/libnode.so: zlib
E: gitkraken: embedded-library usr/share/gitkraken/libnode.so: openssl
E: gitkraken: arch-dependent-file-in-usr-share usr/share/gitkraken/resources/app.asar.unpacked/node_modules/@paulcbetts/system-idle-time/build/Release/system_idle_time.node
E: gitkraken: unstripped-binary-or-object usr/share/gitkraken/resources/app.asar.unpacked/node_modules/@paulcbetts/system-idle-time/build/Release/system_idle_time.node
E: gitkraken: arch-dependent-file-in-usr-share usr/share/gitkraken/resources/app.asar.unpacked/node_modules/find-git-repositories/build/Release/findGitRepos.node
E: gitkraken: unstripped-binary-or-object usr/share/gitkraken/resources/app.asar.unpacked/node_modules/find-git-repositories/build/Release/findGitRepos.node
E: gitkraken: arch-dependent-file-in-usr-share usr/share/gitkraken/resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node
E: gitkraken: unstripped-binary-or-object usr/share/gitkraken/resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node
E: gitkraken: arch-dependent-file-in-usr-share usr/share/gitkraken/resources/app.asar.unpacked/node_modules/keytar/build/Release/keytar.node
E: gitkraken: unstripped-binary-or-object usr/share/gitkraken/resources/app.asar.unpacked/node_modules/keytar/build/Release/keytar.node
E: gitkraken: arch-dependent-file-in-usr-share usr/share/gitkraken/resources/app.asar.unpacked/node_modules/node-pty/build/Release/pty.node
E: gitkraken: unstripped-binary-or-object usr/share/gitkraken/resources/app.asar.unpacked/node_modules/node-pty/build/Release/pty.node
E: gitkraken: arch-dependent-file-in-usr-share usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nodegit/build/Release/nodegit.node
E: gitkraken: unstripped-binary-or-object usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nodegit/build/Release/nodegit.node
E: gitkraken: embedded-library usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nodegit/build/Release/nodegit.node: zlib
E: gitkraken: embedded-library usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nodegit/build/Release/nodegit.node: openssl
E: gitkraken: embedded-library usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nodegit/build/Release/nodegit.node: libssh2
E: gitkraken: arch-dependent-file-in-usr-share usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nsfw/build/Release/nsfw.node
E: gitkraken: unstripped-binary-or-object usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nsfw/build/Release/nsfw.node
E: gitkraken: arch-dependent-file-in-usr-share usr/share/gitkraken/resources/app.asar.unpacked/node_modules/pathwatcher/build/Release/pathwatcher.node
E: gitkraken: unstripped-binary-or-object usr/share/gitkraken/resources/app.asar.unpacked/node_modules/pathwatcher/build/Release/pathwatcher.node
E: gitkraken: arch-dependent-file-in-usr-share usr/share/gitkraken/resources/app.asar.unpacked/node_modules/runas/build/Release/runas.node
E: gitkraken: unstripped-binary-or-object usr/share/gitkraken/resources/app.asar.unpacked/node_modules/runas/build/Release/runas.node
E: gitkraken: arch-dependent-file-in-usr-share usr/share/gitkraken/resources/app.asar.unpacked/node_modules/segfault-handler/build/Release/segfault-handler.node
E: gitkraken: unstripped-binary-or-object usr/share/gitkraken/resources/app.asar.unpacked/node_modules/segfault-handler/build/Release/segfault-handler.node
E: gitkraken: missing-dependency-on-libc needed by usr/share/gitkraken/gitkraken and 12 others
E: gitkraken: changelog-file-missing-in-native-package
E: gitkraken: extended-description-is-empty
W: gitkraken: non-standard-dir-perm usr/bin/ 0775 != 0755
W: gitkraken: symlink-should-be-relative usr/bin/gitkraken /usr/share/gitkraken/gitkraken
W: gitkraken: non-standard-dir-perm usr/share/ 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/applications/gitkraken.desktop 0664 != 0644
W: gitkraken: non-standard-dir-perm usr/share/doc/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/ 0775 != 0755
W: gitkraken: extra-license-file usr/share/gitkraken/LICENSE
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/locales/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/ 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar 0664 != 0644
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/7zip/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/7zip/7zip-lite/ 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/7zip/7zip-lite/7-zip.dll 0664 != 0644
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/7zip/7zip-lite/7-zip32.dll 0664 != 0644
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/7zip/7zip-lite/7z.dll 0664 != 0644
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/7zip/7zip-lite/7z.exe 0664 != 0644
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/@paulcbetts/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/@paulcbetts/system-idle-time/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/@paulcbetts/system-idle-time/build/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/@paulcbetts/system-idle-time/build/Release/ 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/@paulcbetts/system-idle-time/build/Release/system_idle_time.node 0664 != 0644
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/find-git-repositories/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/find-git-repositories/build/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/find-git-repositories/build/Release/ 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/find-git-repositories/build/Release/findGitRepos.node 0664 != 0644
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/keyboard-layout/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/keyboard-layout/build/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release/ 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node 0664 != 0644
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/keytar/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/keytar/build/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/keytar/build/Release/ 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/keytar/build/Release/keytar.node 0664 != 0644
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/node-pty/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/node-pty/build/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/node-pty/build/Release/ 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/node-pty/build/Release/pty.node 0664 != 0644
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nodegit/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nodegit/build/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nodegit/build/Release/ 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nodegit/build/Release/nodegit.node 0664 != 0644
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nsfw/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nsfw/build/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nsfw/build/Release/ 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nsfw/build/Release/nsfw.node 0664 != 0644
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/pathwatcher/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/pathwatcher/build/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/pathwatcher/build/Release/ 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/pathwatcher/build/Release/pathwatcher.node 0664 != 0644
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/runas/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/runas/build/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/runas/build/Release/ 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/runas/build/Release/runas.node 0664 != 0644
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/segfault-handler/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/segfault-handler/build/ 0775 != 0755
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/segfault-handler/build/Release/ 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/node_modules/segfault-handler/build/Release/segfault-handler.node 0664 != 0644
W: gitkraken: non-standard-dir-perm usr/share/gitkraken/resources/app.asar.unpacked/src/ 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/gitkraken/resources/app.asar.unpacked/src/THIRD-PARTY-LICENSES.txt 0664 != 0644
W: gitkraken: non-standard-dir-perm usr/share/lintian/ 0775 != 0755
W: gitkraken: non-standard-executable-perm usr/share/lintian/overrides/gitkraken 0775 != 0755
W: gitkraken: non-standard-file-perm usr/share/pixmaps/app.png 0664 != 0644
W: gitkraken: binary-without-manpage usr/bin/gitkraken
W: gitkraken: executable-not-elf-or-script usr/share/lintian/overrides/gitkraken
E: gitkraken: shlib-with-executable-bit usr/share/gitkraken/libnode.so 0755
W: gitkraken: shlib-with-bad-permissions usr/share/gitkraken/resources/app.asar.unpacked/node_modules/@paulcbetts/system-idle-time/build/Release/system_idle_time.node 0664
W: gitkraken: shlib-with-bad-permissions usr/share/gitkraken/resources/app.asar.unpacked/node_modules/find-git-repositories/build/Release/findGitRepos.node 0664
W: gitkraken: shlib-with-bad-permissions usr/share/gitkraken/resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node 0664
W: gitkraken: shlib-with-bad-permissions usr/share/gitkraken/resources/app.asar.unpacked/node_modules/keytar/build/Release/keytar.node 0664
W: gitkraken: shlib-with-bad-permissions usr/share/gitkraken/resources/app.asar.unpacked/node_modules/node-pty/build/Release/pty.node 0664
W: gitkraken: shlib-with-bad-permissions usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nodegit/build/Release/nodegit.node 0664
W: gitkraken: shlib-with-executable-stack usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nodegit/build/Release/nodegit.node
W: gitkraken: shlib-with-bad-permissions usr/share/gitkraken/resources/app.asar.unpacked/node_modules/nsfw/build/Release/nsfw.node 0664
W: gitkraken: shlib-with-bad-permissions usr/share/gitkraken/resources/app.asar.unpacked/node_modules/pathwatcher/build/Release/pathwatcher.node 0664
W: gitkraken: shlib-with-bad-permissions usr/share/gitkraken/resources/app.asar.unpacked/node_modules/runas/build/Release/runas.node 0664
W: gitkraken: shlib-with-bad-permissions usr/share/gitkraken/resources/app.asar.unpacked/node_modules/segfault-handler/build/Release/segfault-handler.node 0664

Lintian finished with exit status 1

您对如何解决这个问题有什么想法吗?

答案1

如您所见,gdebi 调用 lintian 检查您正在安装的 .deb 是否存在“错误”或 debian(打包)政策违规。

这个答案可以分为两部分;

首先,gdebi 应该安装了 gitkraken 包(.deb)及其依赖项。

因此,请尝试 gitkraken,看看它是否有效(并更新您的问题)。


本回答的第二部分是关于 lintian 的一些一般信息

一般来说,在理想情况下,软件包维护者会通过运行 lintian 并修复它引发的任何警告/错误来检查他们的工作。

有关详细信息,请参阅http://packaging.ubuntu.com/html/packaging-new-software.html#next-steps详情请见:

即使它构建了 .deb 二进制包,您的打包过程也可能存在错误。我们的工具 lintian 可以自动检测到许多错误,该工具可以在源 .dsc 元数据文件、.deb 二进制包或 .changes 文件上运行:

也可以看看https://www.debian.org/doc/manuals/maint-guide/checkit.en.html#lintians

在您的 .changes 文件上运行 lintian(1)。lintian 命令会运行许多测试脚本来检查许多常见的打包错误。E:表示错误;肯定违反政策或打包错误。

W:表示警告;可能违反政策或包装错误。

I:用于信息;有关包装某些方面的信息。

N:表示注释;一条详细信息以帮助您的调试。

O:表示被覆盖;该消息被 lintian-overrides 文件覆盖,但可以通过 --show-overrides 选项显示。

因此,理想情况下,软件包维护人员会运行 lintian 并“修复”任何错误。

实际上,包并不像我们希望的那样“干净”,或者在你的 gitkraken 包中存在很多警告。

如果你需要更多信息,可以谷歌搜索“lintian non-standard-dir-perm”,然后找到此页面

https://lintian.debian.org/tags/non-standard-dir-perm.html

该目录的模式与 0755 不同,并且它不是已知异常之一。

有关详细信息,请参阅 Debian 政策手册第 10.9 节(权限和所有者)。

严重程度:正常,确定性:可能

检查:文件,类型:二进制,udeb

至少,这是我个人查找 lintian 消息的方式,您可以使用命令行选项,但我发现带有 Debian(打包)政策链接的网页更具信息量。

作为最终用户,您有 3 个选择:

  • 如果软件包安装成功并能正常工作,你可以大概忽略这些消息,大多数用户都会这样做。

  • 您可以阅读所有这些违反政策的行为,并在安装后自行(手动)修复它们(如果可能)(非常麻烦,很少有人这样做)。

  • 提交错误报告并要求制作软件包的人检查他们的工作。他们可能会也可能不会这样做。

  • 如果软件包无法安装,你无论如何都必须提交错误报告,并包括来自 lintian 的错误可能帮助(没见过,但可能会发生)。

因此,总而言之,如果软件包有效,您几乎肯定可以忽略 lintian 输出(大多数人都是这样做的)。

相关内容