Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUR update rights problem #865

Closed
Bundy01 opened this issue Jan 17, 2025 · 10 comments
Closed

AUR update rights problem #865

Bundy01 opened this issue Jan 17, 2025 · 10 comments

Comments

@Bundy01
Copy link
Contributor

Bundy01 commented Jan 17, 2025

Hi,

Since I deactivated DynamicUsers, I can no longer perform updates from the AUR.

I had set umask=077 in zshrc. I've restored the original permissions, but I'm getting an error message about the permissions of the .local/share/pikaur file. The GroupId and UserId are the same.

I had tried to add the UserId pikaur without creating the associated home, but I couldn't use it.

.local/share/pikaur:
total 12
drwxr-xr-x  3 ** ** 4096 31 déc.  05:20 .
drwxr-xr-x 31 ** ** 4096 17 janv. 15:44 ..
drwxr-xr-x  4 ** ** 4096 17 janv. 17:34 aur_repos

.local/share/pikaur/aur_repos:
total 16
drwxr-xr-x 4 ** ** 4096 17 janv. 17:34 .
drwxr-xr-x 3 ** ** 4096 31 déc.  05:20 ..
drwxr-xr-x 2 ** ** 4096  9 janv. 07:30 brave-bin
drwxr-xr-x 2 ** ** 4096 16 janv. 10:04 tuxedo-drivers-dkms

.local/share/pikaur/aur_repos/brave-bin:
total 8
drwxr-xr-x 2 ** ** 4096  9 janv. 07:30 .
drwxr-xr-x 4 ** ** 4096 17 janv. 17:34 ..

.local/share/pikaur/aur_repos/tuxedo-drivers-dkms:
total 8
drwxr-xr-x 2 ** ** 4096 16 janv. 10:04 .
drwxr-xr-x 4 ** ** 4096 17 janv. 17:34 ..

Version: pikaur 1.32

@actionless
Copy link
Owner

try with pikaur-git instead of pikaur, i was fixing there a similar issue couple of days ago: #863

@actionless
Copy link
Owner

but I'm getting an error message about the permissions of the .local/share/pikaur file

it would be better if you'll upload the full log as suggested in the issue template

@actionless
Copy link
Owner

hint, to generate log in english:

env LANGUAGE=en_US pikaur -S --pikaur-debug ....packages...

@Bundy01
Copy link
Contributor Author

Bundy01 commented Jan 18, 2025

🛴 debug: main_1000: Setting stdout to utf-8...
🛴 debug: main_1000: already set - nothing to do
🛴 debug: main_1000: Setting stderr to utf-8...
🛴 debug: main_1000: already set - nothing to do
🛴 debug: main_1000: Pikaur operation found for args ['/usr/bin/pikaur', '-S', '--pikaur-debug', 'pikaur-git']: cli_install_packages
=> sudo --preserve-env=VISUAL,EDITOR -- /usr/bin/pikaur -S --pikaur-debug pikaur-git --pikaur-config=/home/**/.config/pikaur.conf --user-id=1000 --home-dir=/home/** --xdg-cache-home=/home/**/.cache --xdg-data-home=/home/**/.local/share
[sudo] password for **: 
🛴 debug: main_0: Setting stdout to utf-8...
🛴 debug: main_0: already set - nothing to do
🛴 debug: main_0: Setting stderr to utf-8...
🛴 debug: main_0: already set - nothing to do
🛴 debug: main_0: Pikaur operation found for args ['/usr/bin/pikaur', '-S', '--pikaur-debug', 'pikaur-git', '--pikaur-config=/home/**/.config/pikaur.conf', '--user-id=1000', '--home-dir=/home/**', '--xdg-cache-home=/home/**/.cache', '--xdg-data-home=/home/**/.local/share']: cli_install_packages
🛴 debug: install_info_fetcher: 
Gonna fetch install info for:
    install_package_names=['pikaur-git']
    not_found_repo_pkgs_names=[]
    pkgbuilds_packagelists={}
    manually_excluded_packages_names=[]
    skip_checkdeps_for_pkgnames=[]

🛴 debug: install_info_fetcher: Gonna get repo pkgs install info...
Reading repository package databases...
Reading local package database...
🛴 debug: install_info_fetcher: Checking if '['pikaur-git']' is installable:
=> pacman --color=always --sync pikaur-git --print-format %r/%n
🛴 debug: install_info_fetcher: Check failed - gonna check it separately:
🛴 debug: install_info_fetcher: Checking if 'pikaur-git' exists in the repo:
=> pacman --color=always --sync pikaur-git --print-format %r/%n --nodeps --nodeps
🛴 debug: install_info_fetcher:   'pikaur-git' is NOT found in the repo.
🛴 debug: install_info_fetcher: Check partially passed - gonna get install infos:
🛴 debug: install_info_fetcher: gonna get AUR pkgs install info for:
    aur_packages_versionmatchers=['pikaur-git']
    self.aur_updates_install_info=[]
    aur_packages_names_to_versions={'pikaur-git': <VersionMatcher pikaur-git['cmp_default']None>}
🛴 debug: aur_module: find_aur_packages: pikaur-git uncached
=> GET https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=pikaur-git
🛴 debug: install_info_fetcher: found AUR pkgs:
    aur_pkg_list=[<AURPackageInfo "pikaur-git" 1.32.r3.g2ce728e5-2>]
not found AUR pkgs:
    not_found_aur_pkgs=[]
🛴 debug: install_info_fetcher: got AUR pkgs install info: [<AURInstallInfo "pikaur-git"   -> 1.32.r3.g2ce728e5-2>]
Resolving AUR dependencies...
🛴 debug: aur_deps: find_aur_deps: package_names=['pikaur-git']
=> pacman --color=always --deptest pyalpm git python-wheel python-hatchling python-build python-installer python-setuptools python-markdown-it-py
🛴 debug: pacman: get_not_found_repo_packages: pkg_names_to_check=['python-hatchling', 'python-wheel', 'python-installer', 'python-build', 'python-setuptools'] not_found_pkg_names=[]
=> pacman --color=always --sync python-hatchling python-wheel python-installer python-build python-setuptools --print-format %r/%n --nodeps
🛴 debug: aur_deps: find_missing_deps_for_aur_pkg: NOT not_found_repo_pkgs
🛴 debug: aur_deps: find_aur_deps: result_aur_deps={}
🛴 debug: install_info_fetcher: get_aur_deps_info: self.aur_deps_relations={}
🛴 debug: install_info_fetcher: get_aur_deps_info: aur_pkgs={}
🛴 debug: install_info_fetcher: get_aur_deps_info: [done]
=> pacman --color=always --sync python-wheel --print-format %r/%n --nodeps --nodeps
=> pacman --color=always --sync python-hatchling --print-format %r/%n --nodeps --nodeps
=> pacman --color=always --sync python-build --print-format %r/%n --nodeps --nodeps
=> pacman --color=always --sync python-installer --print-format %r/%n --nodeps --nodeps
=> pacman --color=always --sync python-setuptools --print-format %r/%n --nodeps --nodeps
🛴 debug: install_info_fetcher: Checking if '['python-wheel', 'python-setuptools', 'python-installer', 'python-build', 'python-hatchling']' is installable:
=> pacman --color=always --sync --needed python-wheel python-setuptools python-installer python-build python-hatchling --print-format %r/%n
🛴 debug: install_info_fetcher: Check passed - gonna get install infos:
🛴 debug: install_info_fetcher: get_repo_deps_info: [done]
🛴 debug: install_info_fetcher: :: marking dependant pkgs...
🛴 debug: install_info_fetcher:   :: mark_dependant :: get_repo_provided...
🛴 debug: install_info_fetcher:   :: mark_dependant :: get local pkgs...
🛴 debug: install_info_fetcher:   :: mark_dependant :: all_requested_pkg_names=['python', 'python-packaging', 'python', 'python', 'python-more-itertools', 'python', 'python', 'python', 'python-jaraco.functools', 'python-jaraco.context', 'python-autocommand', 'python-more-itertools', 'python', 'python-jaraco.text', 'python', 'python-jaraco.collections', 'python-jaraco.functools', 'python-jaraco.text', 'python-more-itertools', 'python-packaging', 'python-platformdirs', 'python-wheel', 'python', 'python', 'python', 'python-packaging', 'python-pyproject-hooks', 'python', 'python', 'python', 'python', 'python', 'python-editables', 'python-packaging', 'python-pathspec', 'python-pluggy', 'python-trove-classifiers', 'pyalpm', 'git', 'python-wheel', 'python-hatchling', 'python-build', 'python-installer', 'python-setuptools', 'python-markdown-it-py']
🛴 debug: install_info_fetcher:   :: mark_dependant :: explicit_aur_pkg_names=['pikaur-git']
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-wheel
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-more-itertools
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-jaraco.functools
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-jaraco.context
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-autocommand
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-jaraco.text
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-jaraco.collections
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-setuptools
🛴 debug: install_info_fetcher:       :: mark_dependant ::    provides=['python-distribute']
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-installer
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-pyproject-hooks
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-build
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-editables
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-pathspec
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-pluggy
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-trove-classifiers
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - python-hatchling
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher:   :: mark_dependant ::  - pikaur-git
🛴 debug: install_info_fetcher:       :: mark_dependant ::    providing_for=[]
🛴 debug: install_info_fetcher: == marked dependant pkgs.
🛴 debug: install_cli: self.install_info.all_install_info_containers=([], [<RepoInstallInfo "python-wheel"  -> 0.45.0-3>, <RepoInstallInfo "python-more-itertools"  -> 10.5.0-1>, <RepoInstallInfo "python-jaraco.functools"  -> 4.1.0-1>, <RepoInstallInfo "python-jaraco.context"  -> 6.0.1-1>, <RepoInstallInfo "python-autocommand"  -> 2.2.2-7>, <RepoInstallInfo "python-jaraco.text"  -> 4.0.0-2>, <RepoInstallInfo "python-jaraco.collections"  -> 5.1.0-1>, <RepoInstallInfo "python-setuptools"  -> 1:75.2.0-4>, <RepoInstallInfo "python-installer"  -> 0.7.0-10>, <RepoInstallInfo "python-pyproject-hooks"  -> 1.2.0-3>, <RepoInstallInfo "python-build"  -> 1.2.2-3>, <RepoInstallInfo "python-editables"  -> 0.5-5>, <RepoInstallInfo "python-pathspec"  -> 0.12.1-3>, <RepoInstallInfo "python-pluggy"  -> 1.5.0-3>, <RepoInstallInfo "python-trove-classifiers"  -> 2025.1.6.15-1>, <RepoInstallInfo "python-hatchling"  -> 1.27.0-1>], [], [], [], [], [<AURInstallInfo "pikaur-git"   -> 1.32.r3.g2ce728e5-2>], [])

🛴 New dependencies will be installed from repository:
 extra/python-autocommand (for python-jaraco.text)    -> 2.2.2-7
 extra/python-build (for pikaur-git)    -> 1.2.2-3
 extra/python-editables (for python-hatchling)    -> 0.5-5
 extra/python-hatchling (for pikaur-git)    -> 1.27.0-1
 extra/python-installer (for pikaur-git)    -> 0.7.0-10
 extra/python-jaraco.collections (for python-setuptools)    -> 5.1.0-1
 extra/python-jaraco.context (for python-jaraco.text)    -> 6.0.1-1
 extra/python-jaraco.functools (for python-setuptools, python-jaraco.text)    -> 4.1.0-1
 extra/python-jaraco.text (for python-setuptools, python-jaraco.collections)    -> 4.0.0-2
 extra/python-more-itertools (for python-setuptools, python-jaraco.text, python-jaraco.functools)    -> 10.5.0-1
 extra/python-pathspec (for python-hatchling)    -> 0.12.1-3
 extra/python-pluggy (for python-hatchling)    -> 1.5.0-3
 extra/python-pyproject-hooks (for python-build)    -> 1.2.0-3
 extra/python-setuptools (for pikaur-git)    -> 1:75.2.0-4
 extra/python-trove-classifiers (for python-hatchling)    -> 2025.1.6.15-1
 extra/python-wheel (for python-setuptools, pikaur-git)    -> 0.45.0-3

🛴 AUR package will be installed:
 pikaur-git                             -> 1.32.r3.g2ce728e5-2

🛴 debug: prompt: Gonna get input from user...
🛴 debug: FileLock: Acquiring /tmp/pikaur_prompt_782920.lock...
🛴 debug: FileLock: Acquired /tmp/pikaur_prompt_782920.lock
🛴 debug: prompt_nolock: Restoring TTY...
🛴 debug: prompt_nolock: Using standard input reader...
🛴 Proceed with installation? [Y/n] 
🛴 [v]iew package details   [m]anually select packages
🛴 [r] show if packages are required by already installed packages
>> 
🛴 debug: FileLock: Releasing /tmp/pikaur_prompt_782920.lock
🛴 debug: FileLock: Released /tmp/pikaur_prompt_782920.lock
🛴 debug: prompt: No answer provided - using "Y".
🛴 debug: install_cli: << GET_PACKAGE_BUILD
🛴 debug: install_cli: self.pkgbuilds_packagelists={}
🛴 debug: aur_module: find_aur_packages: pikaur-git cached
🛴 debug: aur_module: find_aur_packages: pikaur-git cached
🛴 debug: build: Build dir: /home/**/.cache/pikaur/build/pikaur-git
=> sudo --user=#1000 --preserve-env=VISUAL,EDITOR -- mkdir -p /home/**/.local/share/pikaur/aur_repos/pikaur-git
=> sudo --user=#1000 --preserve-env=VISUAL,EDITOR -- git clone https://aur.archlinux.org/pikaur-git.git /home/**/.local/share/pikaur/aur_repos/pikaur-git
Can't clone 'pikaur-git' in '/home/**/.local/share/pikaur/aur_repos/pikaur-git' from AUR:

fatal: could not create leading directories of '/home/**/.local/share/pikaur/aur_repos/pikaur-git': Permission denied

🛴 debug: prompt: Gonna get input from user...
🛴 debug: FileLock: Acquiring /tmp/pikaur_prompt_944080.lock...
🛴 debug: FileLock: Acquired /tmp/pikaur_prompt_944080.lock
🛴 debug: prompt_nolock: Restoring TTY...
🛴 debug: prompt_nolock: Using standard input reader...
🛴 Try recovering?
[T] try again
[d] git diff
[c] git checkout -- '*'
[r] remove dir and clone again
[p] git stash && ... && git stash pop
[s] skip this package
[a] abort
> a
🛴 debug: FileLock: Releasing /tmp/pikaur_prompt_944080.lock
🛴 debug: FileLock: Released /tmp/pikaur_prompt_944080.lock
🛴 debug: prompt: Got answer: 'a'
🛴 debug: main_0: Restoring stdout...
🛴 debug: main_0: nothing to do
🛴 debug: main_0: Restoring stderr...
🛴 debug: main_0: nothing to do
🛴 debug: main_1000: Restoring stdout...
🛴 debug: main_1000: nothing to do
🛴 debug: main_1000: Restoring stderr...
🛴 debug: main_1000: nothing to do

Installing pikaur-git didn't solve the problem, I'm thinking more of a local configuration error but I don't know where it's coming from.

@actionless
Copy link
Owner

actionless commented Jan 18, 2025

=> sudo --user=#1000 --preserve-env=VISUAL,EDITOR -- mkdir -p /home/**/.local/share/pikaur/aur_repos/pikaur-git
=> sudo --user=#1000 --preserve-env=VISUAL,EDITOR -- git clone https://aur.archlinux.org/pikaur-git.git /home/**/.local/share/pikaur/aur_repos/pikaur-git

and what happens when you run those commands manually?

@Bundy01
Copy link
Contributor Author

Bundy01 commented Jan 18, 2025

sudo --user=#1000 --preserve-env=VISUAL,EDITOR...

zsh: no matches found: --user=#1000

sudo --user=1000 --preserve-env=VISUAL,EDITOR...
sudo: unknown user 1000
sudo: error initializing audit plugin sudoers_audit
id
uid=1000(**) gid=1000(**) groupes=1000(**),998(wheel)

@actionless
Copy link
Owner

try quoting the # then 😸

@Bundy01
Copy link
Contributor Author

Bundy01 commented Jan 18, 2025

The first command was executed successfully.

sudo --user="#1000" --preserve-env=VISUAL,EDITOR -- git clone https://aur.archlinux.org/pikaur-git.git...
fatal: unable to create top-level directories in '/home/**/.local/share/pikaur/aur_repos/pikaur-git': Permission not granted

@actionless
Copy link
Owner

actionless commented Jan 18, 2025

so, if you having the same problem without pikaur - that's good news (for me 😺)

and what happens when you run:

git clone https://aur.archlinux.org/pikaur-git.git /home/**/.local/share/pikaur/aur_repos/pikaur-git

(ie all the same arguments, but without sudo in the beginning)

@Bundy01
Copy link
Contributor Author

Bundy01 commented Jan 18, 2025

Ok, thanks to your command I was able to find the error.
It was the fact that I was isolating git with Firejail.

Thanks, I'm closed.

@Bundy01 Bundy01 closed this as completed Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants