LS 4.1.2 - Unable to install on OSX El Capitan

General discussions about Little Snitch
dade80vr
Posts: 7
Joined: Thu Jul 12, 2018 11:53 am

LS 4.1.2 - Unable to install on OSX El Capitan

Postby dade80vr » Thu Jul 12, 2018 12:00 pm

Hi guys,
got some installation errors from LS update 4.1.0.
Deleted app and preferences and done a fresh install of 4.1.2 but got same errors:

Code: Select all

INFO: Ignoring path for bundle at.obdev.LittleSnitchConfiguration: /Volumes/Little Snitch 4.1.2/Little Snitch Installer.app/Contents/Resources/Little Snitch Configuration.app
INFO: Installation mode: Fresh Install
INFO: *** Stopping Services
INFO: *** Removing Components
INFO: *** Stopping Services
INFO: *** Removing Components
INFO: *** Copying Components
INFO: Checking directory exists: /Library/Little Snitch
INFO: Creating directory /Library/Little Snitch
ERROR: Error creating directory /Library/Little Snitch:
INFO: Checking directory exists: /Library/LaunchDaemons
INFO: Fixing permissions for directory /Library/LaunchDaemons
ERROR: Warning: fixing permissions for /Library/LaunchDaemons failed:
INFO: Checking directory exists: /Library/LaunchAgents
INFO: Fixing permissions for directory /Library/LaunchAgents
ERROR: Warning: fixing permissions for /Library/LaunchAgents failed:
INFO: Checking directory exists: /Library/Application Support
INFO: Fixing permissions for directory /Library/Application Support
ERROR: Warning: fixing permissions for /Library/Application Support failed:
INFO: Checking directory exists: /Applications
INFO: Directory has SF_NOUNLINK flag set, leaving alone: /Applications
INFO: Checking directory exists: /Library/Application Support/Objective Development
INFO: Creating directory /Library/Application Support/Objective Development
ERROR: Error creating directory /Library/Application Support/Objective Development:
INFO: Checking directory exists: /Library/Application Support/Objective Development/Little Snitch
INFO: Creating directory /Library/Application Support/Objective Development/Little Snitch
ERROR: Error creating directory /Library/Application Support/Objective Development/Little Snitch:
INFO: Installing LittleSnitch.kext (5175) in /Library/Extensions/
ERROR: Error installing LittleSnitch.kext:
INFO: Installing Little Snitch Daemon.bundle (5175) in /Library/Little Snitch/
ERROR: Error installing Little Snitch Daemon.bundle:
INFO: Installing Little Snitch Software Update.app (5175) in /Library/Little Snitch/
ERROR: Error installing Little Snitch Software Update.app:
INFO: Installing Little Snitch Helper.app (5175) in /Library/Little Snitch/
ERROR: Error installing Little Snitch Helper.app:
INFO: Installing Little Snitch Agent.app (5175) in /Library/Little Snitch/
ERROR: Error installing Little Snitch Agent.app:
INFO: Installing Little Snitch Uninstaller.app (5175) in /Library/Little Snitch/
ERROR: Error installing Little Snitch Uninstaller.app:
INFO: Installing Little Snitch Network Monitor.app (5175) in /Library/Little Snitch/
ERROR: Error installing Little Snitch Network Monitor.app:
INFO: Installing launchd configuration /Library/LaunchDaemons/at.obdev.littlesnitchd.plist
ERROR: Executable for bundle /Library/Little Snitch/Little Snitch Daemon.bundle not found
INFO: Installing launchd configuration /Library/LaunchAgents/at.obdev.LittleSnitchUIAgent.plist
ERROR: Executable for bundle /Library/Little Snitch/Little Snitch Agent.app not found
INFO: Installing launchd configuration /Library/LaunchAgents/at.obdev.LittleSnitchHelper.plist
ERROR: Executable for bundle /Library/Little Snitch/Little Snitch Helper.app not found
INFO: Installing Little Snitch Configuration.app (5175) in /Applications/
ERROR: Error installing Little Snitch Configuration.app:
ERROR: Error writing plist:
INFO: This is a major new install. Configuring appropriately.
ERROR: Error setting new install mode:
INFO: This is a fresh install. Configuring appropriately.
ERROR: Error setting new install mode:
ERROR: Error writing plist:
INFO: Authorization granted.
INFO: Updating boot caches...
ERROR: Pre-linking the kernel failed!
ERROR: kextcache returned status -1. Output:
================================================================================

================================================================================


"/Library" folder is accesible for my user and has got these permissions: drwxr-xr-x+ 68 root wheel
What could i do?
I'm still in contact with ObDev support mail but waiting for a reply for weeks..

Thank you, bye.

christian
Objective Development
Objective Development
Posts: 1437
Joined: Thu Nov 09, 2006 11:46 am

Re: LS 4.1.2 - Unable to install on OSX El Capitan

Postby christian » Tue Jul 17, 2018 11:10 am

If you have not received a reply for weeks, your request must have been dropped in our system somehow...
Please send another e-mail to the same ticket, that should bring it up again.

Regarding the issue: I can think of two possible causes for this: (1) The installer has a dependency on Python. If you have replaced your system's Python interpreter with an incompatible version, it may fail. Or (2) you might have a security software installed which prevents file system access to locations such as /Library/LaunchDaemons or /Library/LaunchAgents. If you have such a software, you must allow Little Snitch Installer to write to all locations.

dade80vr
Posts: 7
Joined: Thu Jul 12, 2018 11:53 am

Re: LS 4.1.2 - Unable to install on OSX El Capitan

Postby dade80vr » Tue Jul 17, 2018 1:43 pm

christian wrote:If you have not received a reply for weeks, your request must have been dropped in our system somehow...
Please send another e-mail to the same ticket, that should bring it up again.

Regarding the issue: I can think of two possible causes for this: (1) The installer has a dependency on Python. If you have replaced your system's Python interpreter with an incompatible version, it may fail. Or (2) you might have a security software installed which prevents file system access to locations such as /Library/LaunchDaemons or /Library/LaunchAgents. If you have such a software, you must allow Little Snitch Installer to write to all locations.


Thanks Christian,
what is the needed Python version? 2 or 3?
I done some works on Python libraries..

I not have got orhers software which blocks access to these folders.

Many thanks for reply.

christian
Objective Development
Objective Development
Posts: 1437
Joined: Thu Nov 09, 2006 11:46 am

Re: LS 4.1.2 - Unable to install on OSX El Capitan

Postby christian » Tue Jul 17, 2018 4:12 pm

As far as I know, it's not the version but rather a compile time option which causes the problem. Users who have replaced python in /usr/bin/ (instead of installing a second python binary e.g. in /usr/local/bin) often experience problems with our installer.

dade80vr
Posts: 7
Joined: Thu Jul 12, 2018 11:53 am

Re: LS 4.1.2 - Unable to install on OSX El Capitan

Postby dade80vr » Thu Jul 19, 2018 6:53 pm

I've installed Python2 and Python3 via HomeBrew.
These are python links in my /usr/local/bin:

Code: Select all

python -> ../Cellar/python@2/2.7.15_1/bin/python
python2 -> ../Cellar/python@2/2.7.15_1/bin/python2
python3 -> ../Cellar/python/3.7.0/bin/python3

Is it right or not?
Additionally, if i "which" pythons it shows:

Code: Select all

which python
/usr/local/bin/python

which python2
/usr/local/bin/python2

which python3
/usr/local/bin/python3

Thanks.
Last edited by dade80vr on Thu Jul 19, 2018 7:03 pm, edited 1 time in total.

dade80vr
Posts: 7
Joined: Thu Jul 12, 2018 11:53 am

Re: LS 4.1.2 - Unable to install on OSX El Capitan

Postby dade80vr » Thu Jul 19, 2018 7:00 pm

Also done a python relink via brew link
https://stackoverflow.com/a/14645426/4467372

christian
Objective Development
Objective Development
Posts: 1437
Joined: Thu Nov 09, 2006 11:46 am

Re: LS 4.1.2 - Unable to install on OSX El Capitan

Postby christian » Thu Jul 19, 2018 7:31 pm

That should install an additional python, not replace the one from the system. On 10.13.6 I get the following checksum:

$ shasum /usr/bin/python
07565e53061f5a9588ab362dc987e5d56b8b8127 /usr/bin/python

Another possibility is that Apple's original python loads a library from homebrew's python. Don't know how to verify this, though. We import os and sys in our tiny python script.

Please try the following:
(1) As far as I know, Homebrew installs EVERYTHING in /usr/local/Cellar/. If you rename this directory, Python should not find any libraries linked to that place.
(2) Run "xattr -l ." to verify that the system's xattr command works. Most broken python installations also break this.
(3) Try to install Little Snitch.
(4) Rename /usr/local/Cellar/ back to the original name.

dade80vr
Posts: 7
Joined: Thu Jul 12, 2018 11:53 am

Re: LS 4.1.2 - Unable to install on OSX El Capitan

Postby dade80vr » Thu Jul 19, 2018 7:48 pm

Ok, let me show you:

0) "default" Python is not present on my OSX 10.11.6 in /usr/bin/python (i probably deleted it by mistake)
1) /usr/local/Cellar is present and inside there are python 2 and 3
2) xattr -l doesn't work, because python is missing:

Code: Select all

Failed to execute process '/usr/bin/xattr'. Reason:
The file '/usr/bin/xattr' specified the interpreter '/usr/bin/python', which is not an executable command.

So the problem seems to be due to default python missing.
I need to reinstall (or relink) it .. !?

dade80vr
Posts: 7
Joined: Thu Jul 12, 2018 11:53 am

Re: LS 4.1.2 - Unable to install on OSX El Capitan

Postby dade80vr » Thu Jul 19, 2018 7:57 pm

Could i link HomeBrew Python instead of reinstall another interpreter from https://www.python.org/downloads/mac-osx/ into /usr/bin ?

dade80vr
Posts: 7
Joined: Thu Jul 12, 2018 11:53 am

Re: LS 4.1.2 - Unable to install on OSX El Capitan

Postby dade80vr » Thu Jul 19, 2018 8:10 pm

Hey Christian,
solved simply by install xattr in current HomeBrew cellar:

Code: Select all

brew install xattr


Well done, thanks for the help.
Last edited by dade80vr on Tue Jul 24, 2018 1:56 pm, edited 1 time in total.

christian
Objective Development
Objective Development
Posts: 1437
Joined: Thu Nov 09, 2006 11:46 am

Re: LS 4.1.2 - Unable to install on OSX El Capitan

Postby christian » Thu Jul 19, 2018 8:34 pm

Little Snitch installer references /usr/bin/python by absolute path. If you deleted it, you'll run into troubles. It might work if you link the homebrew python there, but I'd rather recommend to restore Apple's original. There might be another copy on the recovery partition, you can get one from a friend or by installing macOS over your existing installation (after making a backup, of course). As far as I remember, re-installing does not delete your data, but I may be wrong.


Return to “Little Snitch General”

Who is online

Users browsing this forum: No registered users and 2 guests