未加星标

Troubleshooting Around Installing AUR packages

字体大小 | |
[系统(linux) 所属分类 系统(linux) | 发布者 店小二04 | 时间 2018 | 作者 红领巾 ] 0人收藏点击收藏
Summary

"Trouble is my business."

When I tried to install a package via AUR , I was happy enough to meet 3 + 1 troubles to proceed.

I decided to record them because the knowledge about how to solve them seemed to be help for other troubles to come around installing AUR packages in the future.

Troubles

They happened when I tried to install a package named qperf to my Manjaro linux via AUR:

$ git clone https://aur.archlinux.org/qperf.git $ cd qperf $ makepkg -si

* Note: qperf is a tool to measure network bandwidth and latency between nodes.

* Caution: This post is NOT about how to use qperf. It is more than installing it.

# 1st Trouble: Lack Of Dependencies The Point Making sometimes fails due to the lack of dependencies of the package. Dependencies are not always resolved automatically.

makepkg -si resulted into failure with this error:

$ # qperf $ makepkg -si ==> Making package: qperf 0.4.11-3 ([datetime]) ==> Checking runtime dependencies... ==> Installing missing dependencies... error: target not found: rdma-core ==> ERROR: 'pacman' failed to install missing dependencies.

The last line of the log mentions "ERROR: 'pacman' failed to install missing dependencies."

This is because of the lack of "Dependencies":


Troubleshooting Around Installing AUR packages

In my case, the package named rdma-core wasn't installed and it wasn't resolved automatically.

Therefore, I had to installed rdma-core manually beforehand.

* Note: I had to use AUR because it hadn't been found in Manjaro Package Manager.

$ git clone https://aur.archlinux.org/rdma-core.git $ cd rdma-core # 2nd Trouble: GPG Signatures The Point

It is sometimes required to receive a new gpg key.

* Note: According to ArchWiki, GPG is GnuPG, "a complete and free implementation of the OpenPGP standard as defined by RFC4880 ", which "allows you to encrypt and sign your data and communication."

Installing rdma-core failed with this error:

$ makepkg -si ... ==> Retrieving sources... -> Cloning rdma-core git repo... ... ==> Validating source files with sha512sums... rdma-core ... Skipped ==> Verifying source file signatures with gpg... rdma-core git repo ... FAILED (unknown public key [gpg-key-id]) ==> ERROR: One or more PGP signatures could not be verified!

To solve it, I had to receive the key given in the above log as "unknown public key":

gpg --recv-keys [gpg-key-id]

* Note: gpg can be installed via Manjaro Package Manager.

And then making finished successfully:

$ # rdma-core $ makepkg -si ... ==> Starting package()... ... ==> Installing package rdma-core with pacman -U... [sudo] password for [user]: loading packages... resolving dependencies... looking for conflicting packages... Packages (1) rdma-core-20.1-2 Total Installed Size: 2.24 MiB :: Proceed with installation? [Y/n] y ... (1/3) Reloading system manager configuration... (2/3) Reloading device manager configuration... (3/3) Arming ConditionNeedsUpdate... # Ubiquitous Trouble: Torture Or Annoyance The Point When the goal seems so far away, just be patient, while taking a small rest as needed, and then try another way. Meeting another error is proceeding a little...

Dependencies issue was solved so I returned to making qperf.

And then a new (a next) error occurred:

$ # qperf $ makepkg -si ... ==> Starting build()... ... -- Build files have been written to: [build-path] [34/235] Creating man page umad_init.3 FAILED: libibumad/man/umad_init.3 ... /usr/bin/pandoc: error while loading shared libraries: libHSzip-archive-0.3.3-9ZXjqhjfOlnGJKb3W7x2JJ-ghc8.6.1.so: cannot open shared object file: No such file or directory [36/235] Building C object libibverbs/CMakeFiles/ibverbs.dir/cmd.c.o ninja: build stopped: subcommand failed. ==> ERROR: A failure occurred in build(). Aborting...

I have a habit to think at such a time that such a situation improves me giving a new sight and knowledge to me.

# 3rd Trouble: Old Libraries The Point Making process goes along with several libraries, and errors can occur for the reason they are not updated.

The reason of the above error was that some packages were left old version.

(In that case, it was "haskell-zip-archive" library.)


Troubleshooting Around Installing AUR packages

I updated all available packages following Manjaro Package Manager's guidance.

After All $ # qperf $ makepkg -si ... ==> Finished making: qperf 0.4.11-3 ([datetime]) ==> Installing package qperf with pacman -U... loading packages... resolving dependencies... looking for conflicting packages... Packages (1) qperf-0.4.11-3 Total Installed Size: 0.17 MiB ==> Finished making: qperf 0.4.11-3 ([datetime]) ==> Installing package qperf with pacman -U... loading packages... resolving dependencies... looking for conflicting packages... Packages (1) qperf-0.4.11-3 Total Installed Size: 0.17 MiB :: Proceed with installation? [Y/n] y ... :: Processing package changes... ... :: Running post-transaction hooks... ... :: Proceed with installation? [Y/n] y ... :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate...

Finished :laughing:

本文系统(linux)相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统

代码区博客精选文章
分页:12
转载请注明
本文标题:Troubleshooting Around Installing AUR packages
本站链接:https://www.codesec.net/view/611316.html


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(linux) | 评论(0) | 阅读(74)