Arch-Linux

嘗試使用 Yaourt 在我的 Arch 上安裝 Atom 文本編輯器

  • June 10, 2016

我目前正在嘗試安裝Atom 文本編輯器Yaourt的 atom-editor)。但是我收到以下錯誤:

==> 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 檢查?跟我的代理有關係嗎?我已將我的all_proxy環境變數設置為我的公司代理。有什麼方法可以使用 .deb 或 .rpm 文件將此程序安裝到我的電腦上?

如果您轉到包 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它以查看新的校驗和

引用自:https://unix.stackexchange.com/questions/288453