Leaprun executable cannot be found. Cannot use privleap

Hallo Whonix community,

My tor browser wont start.
When I did systemcheck I first go the following error: /usr/libexec/helper-scripts/pkg_manager_running_check: line 7: /usr/libexec/helper-scripts/use_leaprun.sh: Permission denied

I updated permissions on /usr/libexec/helper-scripts/use_leaprun.sh to have execute rights and now I am getting the following error when I run systemcheck:

/usr/libexec/systemcheck/systemcheck: WARNING: leaprun executable cannot be found. Cannot use privleap.
[ERROR] [systemcheck] Tor Connection Result:
 ERROR:
tor_circuit_established_check_exit_code: 127
(tor_bootstrap_status: )
(check_socks_port_open_test: 22)
(Tor Circuit: not established)
Please report this Whonix usability bug! (Not a security bug.)
zsh: exit 1     systemcheck

I do have internet as UWT_DEV_PASSTHROUGH=1 curl --tlsv1.3 --proto =https https://check.torproject.org/api/ip returns {"IsTor":true,"IP":"<Tor exit relay IP>"}

How can I troubleshoot this?

This might be linked to the previous issue I had https://forums.whonix.org/t/var-lib-dpkg-info-dist-base-files-postinst-line-9-usr-libexec-helper-scripts-user-create-bsh-no-such-file-or-directory/21855

1 Like

Is privleap installed? Does sudo apt install privleap do anything? Also, it’s very weird that use_leaprun.sh ended up not being marked as executable. It might be worthwhile to recreate your Whonix virtual machines, since you may have done something that damaged the OS in the past (maybe a chmod -R that went wrong?).

1 Like

I get the following error for apt install:

Package privleap is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'privleap' has no installation candidate

I don’t think I did anything to my Whonix vm prior to getting these errors. It is a very old install though that I updated from whonix 16.
But ye I think I’ll have to reinstall my vms as it does look like something is very wrong with it

1 Like

Yeah, that sounds very weird. privleap is in Kicksecure’s Bookworm repository (which should be enabled by default in Whonix), so if it’s not available, it sounds like your package manager config is broken in some ways also.

2 Likes

Try re-installing helper-scripts.
(Re-Install Package)

sudo apt install --reinstall --no-install-recommends helper-scripts

This will restore permissions. Manual installation is discouraged unless you mastered Linux file permissions.



Related development discussion:

1 Like

Thanks everyone for their replies and helping me troubleshoot this.

A little bit embarrassing to admit but it looks like I somehow overwrote my /etc/apt/sources.list.d/derivative.list even though I don’t remember touching it since upgrading to whonix 17.
I copied file contents from my gateway (it was untouched in the gateway) to the workstation. The sign key was already on the workstation so I didn’t have to copy that.
I did sudo apt-get update, sudo apt-get upgrade and upgrade-nonroot after which my systemcheck had no more errors.

I still had to reinstall tor browser as it was throwing an error. But everything seems to be working now.