You are not logged in.

#1 2022-02-09 09:28:01

oinkl
Member
Registered: 2010-01-13
Posts: 47

`permission denied` when installing packages over gvfs

Is it possible to install packages over gvfs? If I copy to my machine I can install fine

$ pwd
/run/user/1000/gvfs/sftp:host=192.168.0.98,user=user/home/user/aur

$ sudo pacman -U somepackage-x86_64.pkg.tar.zst
loading packages...
error: 'somepackage-x86_64.pkg.tar.zst': permission denied

$ cp somepackage-x86_64.pkg.tar.zst ~

$ sudo pacman -U ~/somepackage-x86_64.pkg.tar.zst
loading packages...
resolving dependencies...
looking for conflicting packages...

Package (1)   Old Version              New Version             Net Change

Offline

#2 2022-02-09 10:00:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,100

Re: `permission denied` when installing packages over gvfs

You need access to your user's DBUS session and potentially read access problems for the root user as supposed to the one you are actually on the gvfs mount for.

What might minimally work is a

sudo -E pacman 

invocation to retain the environment and potential allowing reusing the existing dbus session.

Alternatively use an actual "system-level" mount like sshfs: https://wiki.archlinux.org/title/SSHFS

Or of course just pass the actual ftp url to the -U command

Last edited by V1del (2022-02-09 10:01:38)

Online

#3 2022-02-09 10:15:15

oinkl
Member
Registered: 2010-01-13
Posts: 47

Re: `permission denied` when installing packages over gvfs

I wasn't able to get `sudo -E pacman` to work.

I'm aware of sshfs and passing the actual ftp, it's just more annoying to setup; it's easier to open a terminal from my file manager. Regardless, thanks for the tip and letting me know why it wasn't working!

Offline

Board footer

Powered by FluxBB