naturalselection.py command not found

In this troubleshooting guide we learn how to fix naturalselection.py command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

naturalselection.py: command not found

or when using sudo you get the following error message

sudo: naturalselection.py: command not found

Solutions to naturalselection.py: command not found

How To Fix naturalselection.py: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu naturalselection.py is provided by php-sabre-dav package.

php-sabre-dav is:

SabreDAV is meant to cover the entire standard, and attempts to allow integration using an easy to understand API.

Feature list:

  • Fully WebDAV compliant
  • Supports Windows XP, Windows Vista, Mac OS/X, DavFSv2, Cadaver, Netdrive, Open Office, and probably more.
  • Passing all Litmus tests.
  • Supporting class 1, 2 and 3 Webdav servers.
  • Locking support.
  • Custom property support.
  • CalDAV (tested with Evolution, iCal, iPhone and Lightning).
  • CardDAV (tested with OS/X addressbook, the iOS addressbook and Evolution).
  • Over 97% unittest code coverage.

Supported RFC’s:

  • RFC2617: Basic/Digest auth.
  • RFC2518: First WebDAV spec.
  • RFC3744: ACL (some features missing).
  • RFC4709: DavMount.
  • RFC4791: CalDAV.
  • RFC4918: WebDAV revision.
  • RFC5397: current-user-principal.
  • RFC5689: Extended MKCOL.
  • RFC6352: CardDAV
  • draft-daboo-carddav-directory-gateway: CardDAV directory gateway
  • CalDAV ctag, CalDAV-proxy.

To fix this problem, we can install more using the command below.

sudo apt-get -y install php-sabre-dav

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install php-sabre-dav.

sudo apt -y install php-sabre-dav

Or if you have aptitude installed you can use the following command.

sudo aptitude install php-sabre-dav

Summary

In this tutorial we learn how to fix naturalselection.py command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.