尝试使用 Yaourt 在我的 Arch 上安装 Atom 文本编辑器

尝试使用 Yaourt 在我的 Arch 上安装 Atom 文本编辑器

我目前正在尝试安装原子文本编辑器原子编辑器亚乌尔特)。但是我收到以下错误:

==> Downloading atom-editor-arch PKGBUILD from AUR...
x .SRCINFO
x .gitignore
x PKGBUILD
x README.md
x about-arch.patch
x atom
x atom-arch.install
x atom.desktop
x theme.patch
atom-editor-arch 1.8.0.arch0.2.1-2  (2016-06-07 15:07)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> atom-editor-arch dependencies:
 - alsa-lib (already installed)
 - desktop-file-utils (already installed)
 - gconf (already installed)
 - gtk2 (already installed)
 - libgnome-keyring (already installed)
 - libnotify (already installed)
 - libxtst (already installed)
 - nodejs (already installed)
 - nss (already installed)
 - python2 (already installed)
 - git (already installed) [makedepend]
 - npm (already installed) [makedepend]
 - namcap (package found)
 - pkgbuild-introspection (package found)


==> Edit atom-arch.install ? [Y/n] ("A" to abort)
==> ---------------------------------------------
==> n

==> Continue building atom-editor-arch ? [Y/n]
==> ------------------------------------------
==> y

==> Building and installing package
==> Install or build missing dependencies for atom-editor-arch:
[sudo] password for shazam: 
resolving dependencies...
looking for conflicting packages...

Packages (4) pyalpm-0.8-1  python-pyelftools-0.23-3  namcap-3.2.7-1  pkgbuild-introspection-8-1

Total Download Size:   0.28 MiB
Total Installed Size:  1.70 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 pyalpm-0.8-1-x86_64                                                                  42.4 KiB   109K/s 00:00 [##################################################################] 100%
 python-pyelftools-0.23-3-any                                                        155.1 KiB   391K/s 00:00 [##################################################################] 100%
 namcap-3.2.7-1-any                                                                   84.1 KiB  0.00B/s 00:00 [##################################################################] 100%
 pkgbuild-introspection-8-1-any                                                        4.4 KiB  0.00B/s 00:00 [##################################################################] 100%
(4/4) checking keys in keyring                                                                                [##################################################################] 100%
(4/4) checking package integrity                                                                              [##################################################################] 100%
(4/4) loading package files                                                                                   [##################################################################] 100%
(4/4) checking for file conflicts                                                                             [##################################################################] 100%
(4/4) checking available disk space                                                                           [##################################################################] 100%
:: Processing package changes...
(1/4) installing pyalpm                                                                                       [##################################################################] 100%
(2/4) installing python-pyelftools                                                                            [##################################################################] 100%
(3/4) installing namcap                                                                                       [##################################################################] 100%
(4/4) installing pkgbuild-introspection                                                                       [##################################################################] 100%
:: Running post-transaction hooks...
(1/1) Updating manpage index...
==> Making package: atom-editor-arch 1.8.0.arch0.2.1-2 (Wed Jun  8 20:16:49 IST 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading atom-1.8.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   117    0   117    0     0     87      0 --:--:--  0:00:01 --:--:--    87
100  9.8M  100  9.8M    0     0  1236k      0  0:00:08  0:00:08 --:--:-- 2309k
  -> Downloading about-arch-1.5.18.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   124    0   124    0     0     99      0 --:--:--  0:00:01 --:--:--    99
100 30559    0 30559    0     0  10790      0 --:--:--  0:00:02 --:--:-- 23911
  -> Found atom
  -> Found atom.desktop
  -> Found theme.patch
  -> Found about-arch.patch
==> Validating source files with md5sums...
    atom-1.8.0.tar.gz ... Passed
    about-arch-1.5.18.tar.gz ... FAILED
    atom ... Passed
    atom.desktop ... Passed
    theme.patch ... Passed
    about-arch.patch ... Passed
==> ERROR: One or more files did not pass the validity check!
==> ERROR: Makepkg was unable to build atom-editor-arch.
==> Restart building atom-editor-arch ? [y/N]
==> -----------------------------------------
==> N

这里究竟出了什么问题?为什么我的补丁没有通过 md5sums 检查?跟我的代理有关系吗?我已经设置了我的所有_代理环境变量作为我的公司代理。有什么方法可以使用 .deb 或 .rpm 文件将此程序安装到我的计算机上吗?

答案1

如果你去包 AUR 页面查看变更,你可以看到最近的提交其中一个版本号增加了,但该文件对应的 md5sum 没有改变。

 # Module Versions
 _about_arch_url="fusion809/about"
-_about_arch_ver=1.5.17
+_about_arch_ver=1.5.18
 _dark_bint_syntax_ver=0.8.6
 _fusion_ui_ver=0.10.5
 _language_archlinux_ver=0.2.1

这就是 md5sum 不再匹配的原因。

如果您有时间,为了您和其他人解决问题,负责任的做法是将问题报告给 AUR 包维护者。从 https://aur.archlinux.org/:

要报告打包错误,请联系包维护者或在相应的包页面上留下评论。

为了使其构建,最快的修复方法是选择“编辑 PKGBUILD ? [Y/n]”选项,然后执行以下任一操作(但只有一个)

  • _about_arch_ver1.5.17

  • 更新相关(在本例中为第二行)md5sums=(
    下载新版本,确认(通过任何适合您的安全策略的方式)您信任它,运行md5sum它以查看新的校验和

相关内容