insserv: O serviço localfs deve estar ativado para iniciar o serviço vmware-USBArbitrator

1

Eu instalei o VMWare Player no meu sistema Ubuntu 16.04, que funciona bem.

Ultimamente tenho investigado como posso reduzir o excesso de serviços em execução no meu sistema, e me deparei com vmware e vmware-USBArbitrator (ambos os quais uso com pouca frequência e podem ser acionados sob demanda) .

Quando tento sudo systemctl is-enabled vmware-USBArbitrator.service , vejo

vmware-USBArbitrator.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install is-enabled vmware-USBArbitrator
enabled

Quando tento desativar o mesmo, usando sudo systemctl disable vmware-USBArbitrator.service , obtenho

vmware-USBArbitrator.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install disable vmware-USBArbitrator
insserv: Service localfs has to be enabled to start service vmware-USBArbitrator
insserv: exiting now!
update-rc.d: error: insserv rejected the script header

/etc/init.d/vmware-USBArbitrator realmente menciona um localfs service:

#!/usr/bin/env bash
#
# Copyright 1998-2010 VMware, Inc.  All rights reserved.
#
# This script manages the VMware USB Arbitrator service
#

### BEGIN INIT INFO
# Provides: vmware-USBArbitrator
# Required-Start: localfs
# Required-Stop: localfs
# X-Start-Before: 
# X-Stop-After: 
# Default-Start: 2 3 4
# Default-Stop: 0 6
# Short-Description: This services starts and stops the USB Arbitrator.
### END INIT INFO

### ... the script continues ...

Eu procurei bastante por um serviço localfs , local-fs ou local_fs (meu diretório /etc/ , vários comandos de gerenciamento de serviço como status , systemctl e rcconf , bem como querido Google antigo), mas nada de útil surgiu (exceto para este bug do LaunchPad que menciona o erro exato, mas o erro em si está relacionado a systemd e nenhuma solução é dada para o problema da configuração vmware-USBArbitrator.service .

Alguma idéia de como resolver esse problema e desativar o vmware-USBArbitrator.service de iniciar automaticamente na inicialização?

    
por Janaka Bandara 16.07.2017 / 10:15

1 resposta

1

Substitua localfs por $local_fs como:

# Required-Start: $localfs
# Required-Stop: $localfs

ou touch um script de inicialização fictício chamado localfs para contornar isso

    
por Walter Bogart 11.08.2018 / 18:58