Dependency Problem when installing from AUR

I cloned the nginx-rtmp package from AUR. Build works fine, but in the last step, when installing, I get this:

==> Installing nginx-rtmp package group with pacman -U…
[sudo] password for hp:
loading packages…
resolving dependencies…
looking for conflicting packages…
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: nginx-rtmp and nginx-rtmp-src are in conflict
==> WARNING: Failed to install built package(s).

nginx-rtmp-src is not installed. In the build directory , there is a subdirectory ‘pkg’, which has two subdirectories ‘nginx-rtmp’ and ‘nginx-rtmp-src’.
What can I do now to get nginx-rtmp installed?

Thanks in advance - Hans-Peter

The package should have been transferred to your package cache, so check in /var/cache/pacman/pkg/nginx-rtmp*.

No, it is not there

$ ls -l /var/cache/pacman/pkg/nginx
ls: cannot access ‘/var/cache/pacman/pkg/nginx’: No such file or directory

This one is troublesome though. Maybe try uninstalling nginx-rtmp-src and then try building the package again.

I can’t deinstall, because it is not installed.

[hp@pbp nginx-rtmp]$ sudo pamac remove nginx-rtmp-src
Error: target not found: nginx-rtmp-src

both nginx-rtmp and nginx-rtmp-src are mentioned in the PKGBUILD

pkgname=(nginx-rtmp nginx-rtmp-src)

and both are getting built>

==> Tidying install…
-> Removing libtool files…
-> Purging unwanted files…
-> Removing static library files…
-> Stripping unneeded symbols from binaries and libraries…
-> Compressing man and info pages…
==> Checking for packaging issues…
==> WARNING: Package contains reference to $srcdir
usr/bin/nginx
==> Creating package “nginx-rtmp”…
-> Generating .PKGINFO file…
-> Generating .BUILDINFO file…
-> Adding install file…
-> Generating .MTREE file…
-> Compressing package…
==> Starting package_nginx-rtmp-src()…
==> Tidying install…
-> Removing libtool files…
-> Purging unwanted files…
-> Removing static library files…
-> Stripping unneeded symbols from binaries and libraries…
-> Compressing man and info pages…
==> Checking for packaging issues…
==> WARNING: backup entry file not in package : etc/nginx/fastcgi.conf
==> WARNING: backup entry file not in package : etc/nginx/fastcgi_params
==> WARNING: backup entry file not in package : etc/nginx/koi-win
==> WARNING: backup entry file not in package : etc/nginx/koi-utf
==> WARNING: backup entry file not in package : etc/nginx/nginx.conf
==> WARNING: backup entry file not in package : etc/nginx/scgi_params
==> WARNING: backup entry file not in package : etc/nginx/uwsgi_params
==> WARNING: backup entry file not in package : etc/nginx/win-utf
==> WARNING: backup entry file not in package : etc/logrotate.d/nginx
==> Creating package “nginx-rtmp-src”…
-> Generating .PKGINFO file…
-> Generating .BUILDINFO file…
-> Adding install file…
-> Generating .MTREE file…
-> Compressing package…
==> Leaving fakeroot environment.
==> Finished making: nginx-rtmp 1.18.0-3 (Tue Oct 27 17:33:40 2020)

What if I remove all occurrences of nginx-rtmp-src from the PKGBUILD?

What tool are you using to build the package?
Pamac, Yay or makepkg?

makepkg -si --skippgpcheck

Can’t use pamac or yay. Both complain about nonexistent keys or failing import of keys.

Okay.

Then the package(s) should be in the same folder where you ran the makepkg command.
So you should be able to install it with sudo pacman -U nginx-rtmp-1.18*.

makepkg -si will try to install all the resulting packages, but those in the PKGBUILD conflict with eachother.

@Strit That’s it. nginx-rtmp finally installed. Many thanks for your help!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.