j4-dmenu-desktop icon indicating copy to clipboard operation
j4-dmenu-desktop copied to clipboard

Error when building makepkg -si:

Open boban-dj opened this issue 3 years ago • 0 comments

Anybody an idea why the package wants to add key to root/.ssh/known_hosts? I have the github RSA key in my $USER/.ssh/known_hosts When I remove the user know_hosts file it adds the key fine, but then it asks for adding to root. Ofcourse it cannot add and makepkg cannot run as root.

    [ 25%] Performing update step for 'catch'
hostkeys_find_by_key_hostfile: hostkeys_foreach failed for /root/.ssh/known_hosts: Permission denied
The authenticity of host 'github.com (140.82.121.4)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Could not stat /root/.ssh: Permission denied
Failed to add the host to the list of known hosts (/root/.ssh/known_hosts).
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
make[2]: *** [CMakeFiles/catch.dir/build.make:124: catch/src/catch-stamp/catch-update] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: CMakeFiles/catch.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in package().
    Aborting...

boban-dj avatar May 21 '21 06:05 boban-dj