Skip to content

Instantly share code, notes, and snippets.

@anddam
Created May 27, 2021 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anddam/7247dc5dfb75877f16bba16b691ad12d to your computer and use it in GitHub Desktop.
Save anddam/7247dc5dfb75877f16bba16b691ad12d to your computer and use it in GitHub Desktop.
xbps in user home issue
openat(AT_FDCWD, "/home/ada/.local/var/db/xbps/pkgdb-0.38.plist", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=190, ...}) = 0
mmap(NULL, 4096, PROT_READ, MAP_SHARED, 3, 0) = 0x7ff95eb7e000
close(3) = 0
madvise(0x7ff95eb7e000, 4096, MADV_SEQUENTIAL) = 0
munmap(0x7ff95eb7e000, 4096) = 0
openat(AT_FDCWD, "/home/ada/.local/var/db/xbps/pkgdb-0.38.plist", O_RDWR|O_CREAT|O_CLOEXEC, 0664) = 3
fcntl(3, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_CUR, l_start=0, l_len=0}) = 0
access("/", W_OK) = -1 EACCES (Permission denied)
umask(022) = 022
write(2, "Failed to lock the pkgdb: Permis"..., 44Failed to lock the pkgdb: Permission denied
) = 44
exit_group(13) = ?
+++ exited with 13 +++
[ada@fse ~]$ ls .local/var/db/xbps/ -l
total 12
drwxr-xr-x 2 ada ada 4096 May 27 19:51 https___a-hel-fi_m_voidlinux_org_current
drwxr-xr-x 2 ada ada 4096 May 27 19:44 keys
-rw-r--r-- 1 ada ada 190 May 27 19:51 pkgdb-0.38.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment