Rabbitmq Cannot be removed in ubuntu 14.04 -


i have rabbitmq server in ubuntu virtual machine. cannot start rabbitmq-server neither installing or uninstalling it. error appears :

      /etc/init.d/rabbitmq-server: 1: [: missing ] 

this example :

        reading package lists... donereading package lists... done         building dependency tree                reading state information... done         following packages upgraded:           rabbitmq-server         1 upgraded, 0 newly installed, 0 remove , 17 not upgraded.         189 not installed or removed.         need 0 b/4,885 kb of archives.         after operation, 6,144 b of additional disk space used.         selecting unselected package rabbitmq-server.         (reading database ... 243142 files , directories installed.)         preparing unpack .../rabbitmq-server_3.6.10-1_all.deb ...         /etc/init.d/rabbitmq-server: 1: [: missing ]         invoke-rc.d: initscript rabbitmq-server, action "stop" failed.         dpkg: warning: subprocess old pre-removal script returned error exit status 2         dpkg: trying script new package instead ...         /etc/init.d/rabbitmq-server: 1: [: missing ]         invoke-rc.d: initscript rabbitmq-server, action "stop" failed.         dpkg: error processing archive /var/cache/apt/archives/rabbitmq-server_3.6.10-1_all.deb (--unpack):          subprocess new pre-removal script returned error exit status 2         /etc/init.d/rabbitmq-server: 1: [: missing ]         invoke-rc.d: initscript rabbitmq-server, action "start" failed.         dpkg: error while cleaning up:          subprocess installed post-installation script returned error exit status 2         errors encountered while processing:          /var/cache/apt/archives/rabbitmq-server_3.6.10-1_all.deb         e: sub-process /usr/bin/dpkg returned error code (1) 

even more when trying install package :

        user@ubuntu:~$ sudo apt-get install php7.0         reading package lists... done         building dependency tree                reading state information... done         php7.0 newest version.         following packages upgraded:           rabbitmq-server         1 upgraded, 0 newly installed, 0 remove , 17 not upgraded.         189 not installed or removed.         need 0 b/4,885 kb of archives.         after operation, 6,144 b of additional disk space used.         (reading database ... 243142 files , directories installed.)         preparing unpack .../rabbitmq-server_3.6.10-1_all.deb ...         /etc/init.d/rabbitmq-server: 1: [: missing ]         invoke-rc.d: initscript rabbitmq-server, action "stop" failed.         dpkg: warning: subprocess old pre-removal script returned error exit status 2         dpkg: trying script new package instead ...         /etc/init.d/rabbitmq-server: 1: [: missing ]         invoke-rc.d: initscript rabbitmq-server, action "stop" failed.         dpkg: error processing archive /var/cache/apt/archives/rabbitmq-server_3.6.10-1_all.deb (--unpack):          subprocess new pre-removal script returned error exit status 2         /etc/init.d/rabbitmq-server: 1: [: missing ]         invoke-rc.d: initscript rabbitmq-server, action "start" failed.         dpkg: error while cleaning up:          subprocess installed post-installation script returned error exit status 2         errors encountered while processing:          /var/cache/apt/archives/rabbitmq-server_3.6.10-1_all.deb         e: sub-process /usr/bin/dpkg returned error code (1) 


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -