Desinstalar o Plex Media Server quebrado a partir de 15.04

0

Eu tentei instalar o Plex Media Server no Ubuntu 15.04, mas não funcionou por causa da migração para o systemd do Upstart. Infelizmente, parece que não consigo desinstalá-lo agora, já que os retornos de chamada erraram e impediram que o dpkg desinstalasse o pacote. Existe uma maneira de desinstalar forçadamente o pacote?

Veja o que acontece quando tento desinstalar:

leslie@ubuntu:~$ sudo dpkg --remove plexmediaserver
(Reading database ... 191366 files and directories currently installed.)
Removing plexmediaserver (0.9.12.0.1071-7b11cfc) ...
Synchronizing state for plexmediaserver.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d plexmediaserver defaults
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'plexmediaserver' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 'plexmediaserver'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script 'plexmediaserver'
Executing /usr/sbin/update-rc.d plexmediaserver disable
update-rc.d: error: plexmediaserver Default-Start contains no runlevels, aborting.
dpkg: error processing package plexmediaserver (--remove):
 subprocess installed pre-removal script returned error exit status 1
OK
Synchronizing state for plexmediaserver.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d plexmediaserver defaults
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'plexmediaserver' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 'plexmediaserver'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script 'plexmediaserver'
Executing /usr/sbin/update-rc.d plexmediaserver enable
update-rc.d: error: plexmediaserver Default-Start contains no runlevels, aborting.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 plexmediaserver

/var/lib/dpkg/info/plexmediaserver.prerm:

#!/bin/sh

set -e

if [ 'cat /etc/issue|cut -d"." -f1|sed 's/[^0-9]*//g'' -gt 14 ];
then
  systemctl stop plexmediaserver.service
  systemctl disable plexmediaserver.service
else
  if [ -e "/etc/init/plexmediaserver.conf" ]; then
  stop plexmediaserver || :
  fi
fi

/var/lib/dpkg/info/plexmediaserver.postrm:

#!/bin/sh
set -e
# Automatically added by dh_makeshlibs
if [ "$1" = "remove" ]; then
    ldconfig
fi
# End automatically added section
    
por Lesleh 04.05.2015 / 21:11

1 resposta

3

Esta linha na saída:

% bl0ck_qu0te%

sugere que systemctl esteja chamando update-rc.d e a única linha plausível que faz isso é:

% bl0ck_qu0te%

Comentando ou cancelando o erro, deve ser feito.

    
por muru 04.05.2015 / 21:34