problem installing from source on Ubuntu ARM

Need help with MPD?
Post Reply
dsb
Posts: 7
Joined: January 27th, 2014, 5:29 pm

problem installing from source on Ubuntu ARM

Post by dsb » February 28th, 2019, 5:44 am

I am trying to install mpd-0.21.5 from source on a Cubox ARM running Ubuntu. The Cubox runs as a headless server. I connect by ssh. This is the first time I try to install using meson.

Compilation completes successfully but installation fails with the output below. I am authenticating using my sudo password.

Code: Select all

dsb@mpd:~/mpd-0.21.5$ ninja -C output/release
ninja: Entering directory `output/release'
[1/3] Generating GitVersion.cxx with a custom command.
dsb@mpd:~/mpd-0.21.5$
dsb@mpd:~/mpd-0.21.5$ ninja -C output/release install
ninja: Entering directory `output/release'
[1/2] Installing files.
Installation failed due to insufficient permissions.
Attempting to use polkit to gain elevated privileges...
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/usr/bin/python3' as the super user
Authenticating as: XXXXXXXXX,,, (XXXX)
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized

This incident has been reported.
FAILED: meson-install
/home/dsb/.local/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.

A web search suggests that the problem may be related to running the authentication command through ssh.

Any suggestions to solve this problem?

Kernel version:
$ uname --kernel-name --kernel-release --machine
Linux 4.19.20-cubox armv7l

Meson version:
meson-0.49.2

$ ninja --version
1.7.2

max
Forum team
Posts: 922
Joined: January 15th, 2013, 3:43 pm

Re: problem installing from source on Ubuntu ARM

Post by max » February 28th, 2019, 7:04 am

This is a PolicyKit problem, which has nothing to do with MPD. But you can try to run "ninja install" as root, so privilege elevation through PolicyKit is not necessary.

dsb
Posts: 7
Joined: January 27th, 2014, 5:29 pm

Re: problem installing from source on Ubuntu ARM

Post by dsb » March 1st, 2019, 5:27 am

Running "ninja install" as root succeeds. Thank you for the suggestion.

Post Reply