vagrant provision gives
==> default: Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install elasticsearch-oss' returned 100: Reading package lists... ==> default: Building dependency tree... ==> default: Reading state information... ==> default: elasticsearch-oss is already the newest version (6.5.4). ==> default: 0 upgraded, 0 newly installed, 0 to remove and 84 not upgraded. ==> default: 1 not fully installed or removed. ==> default: After this operation, 0 B of additional disk space will be used. ==> default: Setting up elasticsearch-oss (6.5.4) ... ==> default: ES_PATH_CONF must be set to the configuration path ==> default: dpkg: error processing package elasticsearch-oss (--configure): ==> default: subprocess installed post-installation script returned error exit status 1 ==> default: Errors were encountered while processing: ==> default: elasticsearch-oss ==> default: W: chown to _apt:root of directory /vagrant/cache/apt/partial failed - SetupAPTPartialDirectory (1: Operation not permitted) ==> default: W: Not using locking for nfs mounted lock file /vagrant/cache/apt/lock ==> default: E: Sub-process /usr/bin/dpkg returned an error code (1) ==> default: Error: /Stage[main]/Elasticsearch/Package[elasticsearch]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install elasticsearch-oss' returned 100: Reading package lists... ==> default: Building dependency tree... ==> default: Reading state information... ==> default: elasticsearch-oss is already the newest version (6.5.4). ==> default: 0 upgraded, 0 newly installed, 0 to remove and 84 not upgraded. ==> default: 1 not fully installed or removed. ==> default: After this operation, 0 B of additional disk space will be used. ==> default: Setting up elasticsearch-oss (6.5.4) ... ==> default: ES_PATH_CONF must be set to the configuration path ==> default: dpkg: error processing package elasticsearch-oss (--configure): ==> default: subprocess installed post-installation script returned error exit status 1 ==> default: Errors were encountered while processing: ==> default: elasticsearch-oss ==> default: W: chown to _apt:root of directory /vagrant/cache/apt/partial failed - SetupAPTPartialDirectory (1: Operation not permitted) ==> default: W: Not using locking for nfs mounted lock file /vagrant/cache/apt/lock ==> default: E: Sub-process /usr/bin/dpkg returned an error code (1)
The error is deterministic.