Troubleshooting Around Installing AUR packages
Tags: archlinux, manjarolinux, aur, linux
Published: 2018-11-08 03:27:17

---
title: Troubleshooting Around Installing AUR packages
published: true
description: When I tried to install an AUR package, I was lucky 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.
tags: archlinux, manjaro linux, aur, linux 
cover_image: https://thepracticaldev.s3.amazonaws.com/i/1arsfhvltthxw7iqeit0.jpg
---

# Summary

"Trouble is my business."
When I tried to install a package via [AUR](http://aur.archlinux.org), I was lucky 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](https://manjaro.org/) via AUR:

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

*\* Note: [qperf](https://wiki.archlinux.org/index.php/InfiniBand#qperf_-_Measure_performance_over_RDMA_or_TCP.2FIP) 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.*

<center>✿✿✿</center>

### # 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:

```shell-session
$ # 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":

![](https://thepracticaldev.s3.amazonaws.com/i/b32w5ottqrmoofmhy2r9.png)

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.*

```shell-session
$ git clone https://aur.archlinux.org/rdma-core.git
$ cd rdma-core
```

<center>✿✿✿</center>

### # 2nd Trouble: GPG Signatures

#### The Point

- It is sometimes required to receive a new gpg key.

*\* Note: According to ArchWiki, [GPG](https://wiki.archlinux.org/index.php/GnuPG) is GnuPG, "a complete and free implementation of the [OpenPGP](http://openpgp.org/about/) standard as defined by [RFC4880](https://tools.ietf.org/html/rfc4880)", which "allows you to encrypt and sign your data and communication."*

Installing rdma-core failed with this error:

```shell-session
$ 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":

```shell-session
gpg --recv-keys [gpg-key-id]
```

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

And then making finished successfully:

```shell-session
$ # 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...
```

<center>✿✿✿</center>

### # *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:

```shell-session
$ # 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 make it a habit to think at such a time that such a situation improves me giving new knowledge and sight to me.

<center>✿✿✿</center>

### # 3rd Trouble: Old Libraries

#### The Point

- Making process goes with several libraries, and errors can occur for the reason they are not updated.

The reason of the above error was that the versions of some packages were left old.
(In that case, it was "haskell-zip-archive" library as the log mentioned "libHSzip-archive- ... .so: ... : No such file or directory.")

![](https://thepracticaldev.s3.amazonaws.com/i/azlk8kirdrzsgompe1ms.jpg)

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

<center>✿✿✿</center>

### After All

```shell-session
$ # 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 😆