Trouble installing nginx-rtmp from the AUR

hi! I'm attempting to install nginx-rtmp server (for purpose of live streaming to multiple sites) and am getting the following error about a pgp signature


╭─cc@cc in repo: nginx-rtmp on  master [!?] took 71ms
╰─λ makepkg --key B0F4253373F8F6F510D42178520A9993A1C052F8
==> Making package: nginx-rtmp 1.18.0-3 (Wed 01 Dec 2021 10:04:25 AM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found nginx-1.18.0.tar.gz
-> Found nginx-1.18.0.tar.gz.asc
-> Updating nginx-tests hg repo...
pulling from http://hg.nginx.org/nginx-tests
searching for changes
no changes found
-> Found v1.2.1.tar.gz
-> Found service
-> Found logrotate
==> Validating source files with sha256sums...
nginx-1.18.0.tar.gz ... Passed
nginx-1.18.0.tar.gz.asc ... Skipped
nginx-tests ... Skipped
v1.2.1.tar.gz ... Passed
service ... Passed
logrotate ... Passed
==> Verifying source file signatures with gpg...
nginx-1.18.0.tar.gz ... FAILED (unknown public key 520A9993A1C052F8)
==> ERROR: One or more PGP signatures could not be verified!

╭─cc@cc in repo: nginx-rtmp on  master [!?] took 7s
[🔴] × makepkg --key 520A9993A1C052F8
==> Making package: nginx-rtmp 1.18.0-3 (Wed 01 Dec 2021 10:04:51 AM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found nginx-1.18.0.tar.gz
-> Found nginx-1.18.0.tar.gz.asc
-> Updating nginx-tests hg repo...
pulling from http://hg.nginx.org/nginx-tests
searching for changes
no changes found
-> Found v1.2.1.tar.gz
-> Found service
-> Found logrotate
==> Validating source files with sha256sums...
nginx-1.18.0.tar.gz ... Passed
nginx-1.18.0.tar.gz.asc ... Skipped
nginx-tests ... Skipped
v1.2.1.tar.gz ... Passed
service ... Passed
logrotate ... Passed
==> Verifying source file signatures with gpg...
nginx-1.18.0.tar.gz ... FAILED (unknown public key 520A9993A1C052F8)
==> ERROR: One or more PGP signatures could not be verified!```

Hello.
###  Post your terminal/konsole  in- and output as text (***no*** ***pictures***) from:
~~~
inxi -Faz
~~~
# Without it, you will not receive any help from the Garuda team or your topic is likely to be closed without notice.

Before you open a new help request, read relevant sections of the Arch and Garuda wiki. 
Thoroughly search your issue and any error messages in the forum and on the web.

***Report everything you have already attempted to solve your problem.***

If you’re installing an AUR package a PGP key can be used to verify the source files. You will need to import this into your personal keyring before it can be verified. If you don’t you’ll get an error similar to:

[...]
llvm-5.0.0.src.tar.xz ... FAILED (unknown public key 0FC3042E345AD05D)
libcxx-5.0.0.src.tar.xz ... FAILED (unknown public key 0FC3042E345AD05D)
libcxxabi-5.0.0.src.tar.xz ... FAILED (unknown public key 0FC3042E345AD05D)
[...]

To “fix” this, simply import the key:

gpg --recv-key 0FC3042E345AD05D
1 Like

took the measures mentioned above and updated my keys via sudo and gpg import but now I get this error about failing to create a symbolic link?

╭─cc@cc in repo: nginx-rtmp on  master [!?] took 7s
[🔴] × makepkg --install
==> Making package: nginx-rtmp 1.18.0-3 (Wed 01 Dec 2021 10:35:49 AM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found nginx-1.18.0.tar.gz
-> Found nginx-1.18.0.tar.gz.asc
-> Updating nginx-tests hg repo...
pulling from http://hg.nginx.org/nginx-tests
searching for changes
no changes found
-> Found v1.2.1.tar.gz
-> Found service
-> Found logrotate
==> Validating source files with sha256sums...
nginx-1.18.0.tar.gz ... Passed
nginx-1.18.0.tar.gz.asc ... Skipped
nginx-tests ... Skipped
v1.2.1.tar.gz ... Passed
service ... Passed
logrotate ... Passed
==> Verifying source file signatures with gpg...
nginx-1.18.0.tar.gz ... Passed
==> Extracting sources...
ln: failed to create symbolic link '/run/media/cc/75AE-F31D/nginx-rtmp/src/nginx-1.18.0.tar.gz': Operation not permitted
ln: failed to create symbolic link '/run/media/cc/75AE-F31D/nginx-rtmp/src/nginx-1.18.0.tar.gz.asc': Operation not permitted
-> Creating working copy of nginx-tests hg repo...
pulling from /run/media/cc/75AE-F31D/nginx-rtmp/nginx-tests
searching for changes
no changes found
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
ln: failed to create symbolic link '/run/media/cc/75AE-F31D/nginx-rtmp/src/v1.2.1.tar.gz': Operation not permitted
ln: failed to create symbolic link '/run/media/cc/75AE-F31D/nginx-rtmp/src/service': Operation not permitted
ln: failed to create symbolic link '/run/media/cc/75AE-F31D/nginx-rtmp/src/logrotate': Operation not permitted
==> Starting prepare()...
cp: cannot stat 'nginx-1.18.0': No such file or directory
==> ERROR: A failure occurred in prepare().
Aborting...

I'm not that skilled technically, but it seems to me a permission issue on that src folder, which seems to be on an external drive.
Do you have write permissions there?
Furthermore for example the NTFS does support symlinks.
Why don't you just install it from AUR using a AUR helper like

paru nginx-rtmp

?

1 Like

did not know about paru! thank you.

The package has been built but install fails bc package dependencies conflicting w nginx-rtmp and nginx-rtmp-src. I attempted to sudo pacman -Rns nginx-rtmp-src and get target not found error. is there a simple way to remove the conflicting dependencies?

==> Installing nginx-rtmp package group with pacman -U...
[sudo] password for cc:          
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).
==> Cleaning up...

╭─cc@cc in repo: nginx-rtmp on  master [?] took 19ms
[🔴] × sudo pacman -Rns nginx-rtmp-src
error: target not found: nginx-rtmp-src

Also this nginx-rtmp-src is from AUR I think.
Try

paru -R nginx-rtmp-src

If not working, this is probably only the source code of the package you tried before.
Maybe you can simply remove that folder

1 Like

-R didn't work unfortunately

do you know what the default directory of that folder would be? I tried to manually delete anything that had nginx-rtmp-src on it but it's still not working

==> 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: Package contains reference to $srcdir
usr/src/nginx/nginx-1.18.0/objs/ngx_auto_config.h
usr/src/nginx/nginx-1.18.0/objs/src/core/nginx.o
usr/src/nginx/nginx-1.18.0/objs/Makefile
usr/src/nginx/nginx-1.18.0/objs/nginx
==> 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 (Wed 01 Dec 2021 03:05:01 PM EST)
==> Installing nginx-rtmp package group with pacman -U...
[sudo] password for cc:
loading packages...
warning: nginx-rtmp-1.18.0-3 is up to date -- reinstalling
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).

╭─cc@cc in repo: nginx-rtmp on  master [?] took 6m29s
[🔴] ×

I don't know, this is out of my reach...
You could try to delete all the nginx folders, maybe give a look also at the PKGBUILD:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=nginx-rtmp
But maybe the easiest thing could be to restore the latest snapshot before you started this compilations and installations.
Then you could reinstall the AUR package.

found a much more direct solution to my problem using paru.

thought this might be helpful to anyone looking to multistream to multiple platforms using OBS. use the following command to install the multistream plugin

paru -i obs-multi-rtmp

open the obs-multi-rtmp directory in terminal and run the following

makepkg -i

then open or restart OBS and there should be a panel that says "multiple output" that allows you to add multiple rtmp sources/sites to multistream to.

1 Like

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