pkexec error when trying to remove ASP through persistence-setup
In Tails 3.11 when some packages are installed using the additional software persistent feature, we get the following error when trying to remove any of them by going to the persistent configuration assistant, then to the setting button of the additional software feature, then trying to delete a package:
remove','mumble']' returned non-zero exit status 127
#5 Updated by alant about 1 month ago
- Assignee changed from alant to mercedes508
Setting or not an admin password doesn't change anything, we're not asked for it anyway.
pkexec exit status 127 means authentication failure : "Upon successful completion, the return value is the return value of PROGRAM. If the calling process is not authorized or an authorization could not be obtained through authentication or an error occured, pkexec exits with a return value of 127." This is why I guessed that failing to set an admin password in the greeter could lead to this error.
Could you please be more precise about syslog? How to get these?
Either the output of
sudo journalctl -t tails-additional-software or execute
#7 Updated by alant about 1 month ago
- Subject changed from Error when trying to remove packages from additional software feature to pkexec error when trying to remove ASP through persistence-setup
I attached the output of journalctl -t tails-additional-software,
I don't see any issues there.
and when executing DEBUG=1 tails-additional-software-config, it worked just fine.
I didn't find anything in the logs, but reproduced the issue:
pkexec: tails-persistence-setup: The value for the SHELL variable was not found the /etc/shells file [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/local/sbin/tails-additional-software-remove vim]
So when launched through
tails-persistence-setup, the environnment of
tails-additional-software-remove seems not to be good. It should be notes that in this case,
tails-additional-software-remove is run as
A similar bug happens when trying to remove an ASP from the configuration window opened through the "Configure" button of the install failure notification. It seems that
pkexec can't find an authentication agent. In the latter case it may be useful to start
tails-additional-software-config the way we start the documentation (straight from the notification helper).