Description of problem: Packages fail to install and run the user-specified command. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Open terminal/terminator 2. Run $pwgen -s 4 zsh: pwgen: command not found... Install package 'pwgen' to provide command 'pwgen'? [N/y] y * Waiting in queue... The following packages have to be installed: pwgen-2.08-7.fc35.x86_64 Automatic password generation Proceed with changes? [N/y] y * Waiting in queue... * Waiting for authentication... * Waiting in queue... * Waiting in queue... * Waiting for authentication... Failed to install packages: Failed to obtain authentication. Actual results: It doesn't ask me for password. Expected results: It should ask for password, install and run the program Additional info: I am running zsh with OHMYZSH. This feature would work perfectly fine before but seems to be broken now
Bash [sumantrom@localhost ~]$ uname -a Linux localhost.localdomain 5.14.6-300.fc35.x86_64 #1 SMP Sat Sep 18 18:45:54 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux [sumantrom@localhost ~]$ rpm -q dnf dnf-4.8.0-2.fc35.noarch [sumantrom@localhost ~]$ pwgen -s 4 bash: pwgen: command not found... Install package 'pwgen' to provide command 'pwgen'? [N/y] y * Waiting in queue... The following packages have to be installed: pwgen-2.08-7.fc35.x86_64 Automatic password generation Proceed with changes? [N/y] y * Waiting in queue... * Waiting for authentication... * Waiting in queue... * Waiting in queue... * Waiting for authentication... Failed to install packages: Failed to obtain authentication. Another example [sumantrom@localhost ~]$ nginx bash: nginx: command not found... Install package 'nginx' to provide command 'nginx'? [N/y] y * Waiting in queue... The following packages have to be installed: nginx-1:1.20.1-6.fc35.x86_64 A high performance web server and reverse proxy server nginx-filesystem-1:1.20.1-6.fc35.noarch The basic directory layout for the Nginx server nginx-mimetypes-2.1.53-2.fc35.noarch MIME type mappings for nginx Proceed with changes? [N/y] y * Waiting in queue... * Waiting for authentication... * Waiting in queue... * Downloading packages... * Waiting in queue... * Waiting for authentication... Failed to install packages: Failed to obtain authentication.
Proposed as a Blocker for 35-beta by Fedora user sumantrom using the blocker tracking app because: https://fedoraproject.org/wiki/Fedora_35_Beta_Release_Criteria#Unattended_installation
On a cleanly installed latest F35 VM, it works fine for an admin user: [kparal@fedora ~]$ cowsay works for an admin user bash: cowsay: command not found... Install package 'cowsay' to provide command 'cowsay'? [N/y] y * Waiting in queue... The following packages have to be installed: cowsay-3.04-17.fc35.noarch Configurable speaking/thinking cow Proceed with changes? [N/y] y * Waiting in queue... * Waiting for authentication... * Waiting in queue... * Downloading packages... * Requesting data... * Testing changes... * Installing packages... _________________________ < works for an admin user > ------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || It doesn't work for a regular non-admin user: [user1@fedora ~]$ cowsay out of luck bash: cowsay: command not found... Install package 'cowsay' to provide command 'cowsay'? [N/y] y * Waiting in queue... * Loading list of packages.... The following packages have to be installed: cowsay-3.04-17.fc35.noarch Configurable speaking/thinking cow Proceed with changes? [N/y] y * Waiting in queue... * Waiting for authentication... Failed to install packages: Failed to obtain authentication. If I want the same non-admin user to install some app in gnome-software, gnome-software pops up an authentication dialog asking for **admin** password (so e.g. kparal's password, in this particular example). I tested F34 and it behaves the same. Sumantro, are you sure packagekit used to ask for auth in terminal?
> Sumantro, are you sure packagekit used to ask for auth in terminal? ❯ uname -a 2% ─╯ Linux localhost-localdomain 5.13.16-200.fc34.x86_64 #1 SMP Mon Sep 13 12:39:36 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux ╱ ~ ············· 1.25 ╱ 100% ╱ 16.36G ╱ 0B ╱ at 15:38:05 ─╮ ❯ rpm -q pwgen 2% ─╯ package pwgen is not installed ╱ ~ ············· 1.21 ╱ 100% ╱ 16.39G ╱ 0B ╱ at 15:38:20 ─╮ ❯ pwgen -s 4 2% ─╯ zsh: pwgen: command not found... Install package 'pwgen' to provide command 'pwgen'? [N/y] y * Waiting in queue... * Loading list of packages.... The following packages have to be installed: pwgen-2.08-6.fc34.x86_64 Automatic password generation Proceed with changes? [N/y] y * Waiting in queue... * Waiting for authentication... * Waiting in queue... * Downloading packages... * Requesting data... * Testing changes... * Installing packages... sU5g 3oY5 oWf3 uW5q v8B9 WPo2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3PFh 0Pim 7VRS JS6R MS3v 2XPE U5Z4 j3vC ZqY7 8iSq pYe8 Z2eJ TM06 zp0D i0jB 7pDc 0XJ1 WWx9 m3Rv 4vRD v2Gl pGx4 uVW9 J12y OBq2 Q0zb woT4 RL7h Y4Xq EjH2 9DxC 5H8L 45dG cZ5Z I23P EF6u EzT8 9Im2 jWW0 Q1rj Hpu2 7mYq 4uhS 9ZuR 2Cg3 sTT3 7IET k80Z sD3Z Lr5Q H1Lk Sa6S FL47 ZJp4 t4tY OC05 Hy7P bt9E 6EcX q0Ys Y1e6 9FJR 6adG 4TPf u9IL Th6Q 8RWi iNK1 9XDA ZVQ4 2TVy 4OiB D4rO 3KPd 5MQp I9Hi M3t1 oP08 j3FJ wRV9 SKn5 8BPK 4rQq 7qV7 uI9P CPV4 52fU 35I8 Vx6M uR9C gZ8k FJ77 83HQ This is a baremetal F34 where it worked perfectly fine with admin account
I can see this working on F35 VM perfectly fine, but this doesn't work on my F35 bare metal machine. I am trying to create an bootable USB with 1.2 Beta live image to see if I can reproduce this.
The point is, it doesn't need a password if you have an admin account (i.e. you're in the wheel group). And for non-admin accounts, it simply fails. But in comment 0, you say: "It should ask for password, install and run the program". So do you actually remember being asked for your password? Was it just a terminal-based prompt, or a graphical one? I didn't find any environment where I'd be asked for a password, it either worked right away or failed. And a second question, is your user from comment 0 in the wheel group?
(In reply to Kamil Páral from comment #6) > The point is, it doesn't need a password if you have an admin account (i.e. > you're in the wheel group). And for non-admin accounts, it simply fails. But > in comment 0, you say: "It should ask for password, install and run the > program". So do you actually remember being asked for your password? Was it > just a terminal-based prompt, or a graphical one? I didn't find any > environment where I'd be asked for a password, it either worked right away > or failed. > > And a second question, is your user from comment 0 in the wheel group? No, my bad. It didn't ask for any password, just terminal based prompts.
Sumantro has some problem with PackageKit (`pkcon install` doesn't work), and everything else comes from this. I'm trying to help him debug it. This is probably a specific issue and not a generic one.
Closing, Sumantro will file a new bug about the root cause (pkcon install failing).
just for the blocker process record, 'unattended installation' isn't about this - it's about kickstart-driven system deployment. This convenience feature (it's called PackageKit-command-not-found or something) is not covered by any blocker criteria, and I don't think even 'pkcon install' failing would qualify as it's not the 'standard' package management tool for any environment. Software in GNOME or KDE's package management tools not being able to install packages would qualify, though.
@kparal stumbled upon this ticket through google - I see the same on a fresh fc36 install (vm): [claviola@fedora octocatalog-diff]$ id claviola uid=1000(claviola) gid=1000(claviola) groups=1000(claviola),10(wheel) [claviola@fedora octocatalog-diff]$ cowsay hello bash: cowsay: command not found... Install package 'cowsay' to provide command 'cowsay'? [N/y] y * Waiting in queue... The following packages have to be installed: cowsay-3.7.0-2.fc36.noarch Configurable speaking/thinking cow Proceed with changes? [N/y] y * Waiting in queue... * Waiting for authentication... Failed to install packages: Failed to obtain authentication. Running `pkcon install` by hand does work: [claviola@fedora octocatalog-diff]$ pkcon install cowsay Resolving [=========================] Finished [=========================] Testing changes [ ] (0%) The following packages have to be installed: cowsay-3.7.0-2.fc36.noarch Configurable speaking/thinking cow Proceed with changes? [N/y] y [=========================] Installing [=========================] Waiting for authentication [ == ] ==== AUTHENTICATING FOR org.freedesktop.packagekit.package-install ==== Authentication is required to install software Authenticating as: Carlos Laviola (claviola) Password: [ == ] [ == ] ==== AUTHENTICATION COMPLETE ==== [=========================] Querying [=========================] Downloading packages [=========================] Testing changes [=========================] Installing packages [=========================] Finished [=========================] Note that with on a subsequent run it actually works properly: [claviola@fedora octocatalog-diff]$ figlet hey bash: figlet: command not found... Install package 'figlet' to provide command 'figlet'? [N/y] y * Waiting in queue... The following packages have to be installed: figlet-2.2.5-23.20151018gita565ae1.fc36.aarch64 A program for making large letters out of ordinary text Proceed with changes? [N/y] The transaction did not proceed. Failed to install packages: user declined simulation And the authentication seems to persist across reboots - so it does seem to be something that happens only once, but I wouldn't have known this would fix it if it weren't for the comments in this ticket.