BlackArch / blackarch-installer

The official BlackArch Linux installer
https://www.blackarch.org/
106 stars 51 forks source link

/tmp/$PKGBUILD: permission denied #42

Closed maxlandon closed 5 years ago

maxlandon commented 5 years ago

Hello,

I tried to install a blackarch tool (bluescan) for the first time with blackman, and it gives me the following errors:

--==[ blackman - BlackArch ]==-- [+] Package bluescan already installed cp: cannot create regular file '/tmp/bluescan/PKGBUILD': Permission denied ==> ERROR: You do not have write permission for the directory $BUILDDIR (/tmp/bluescan). Aborting... [!] WARNING: Something wrong with makepkg: bluescan [sudo] password for para: loading packages... error: '*.xz': could not find or read package rm: cannot remove '/tmp/bluescan/PKGBUILD': Permission denied

To be noted: I ran the install twice (with the same failures), so that may explain the "Package already installed". I tried to look in the blackarch scripts but couldn't find the origin of the issue.

Might be related: My blackarch dir is not IN the haxx directory, but in the same directory than haxx (.blackman/blackarch & .blackman/haxx). This is because I initialized blackarch before blackman I guess, or I did it when being in the wrong directory... Thanks for your help !

maxlandon commented 5 years ago

Sorry I lost my mind just had to run once the script for creating the /tmp/$PKGDIR directory and then change the permissions for user. Posting this in case code can/has/must be changed.

Edu4rdSHL commented 5 years ago

Don't use blackman to install packages, it need to be rewrited.