# Update failed. garbd pre-removal script on Ubuntu

**URL:** <https://forums.percona.com/t/update-failed-garbd-pre-removal-script-on-ubuntu/4662>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [January 12, 2016, 6:35am UTC](https://forums.percona.com/t/update-failed-garbd-pre-removal-script-on-ubuntu/4662 "2016-01-12T06:35:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mstenz](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@mstenz](https://forums.percona.com/u/mstenz)\
**Post date:** [January 12, 2016, 6:35am UTC](https://forums.percona.com/t/update-failed-garbd-pre-removal-script-on-ubuntu/4662/1 "2016-01-12T06:35:40Z")

</div>

Hi,  
I recently updated my whole Ubuntu 14.04 System. There were also some updates for Percona.

But the update of garbd failed because of this messages:

Preparing to unpack …/percona-xtradb-cluster-garbd-3.x\_3.13-1.trusty\_amd64.deb …  
invoke-rc.d: initscript garbd, action “stop” failed.  
dpkg: warning: subprocess old pre-removal script returned error exit status 3  
dpkg: trying script from the new package instead …  
invoke-rc.d: initscript garbd, action “stop” failed.  
dpkg: error processing archive /var/cache/apt/archives/percona-xtradb-cluster-garbd-3.x\_3.13-1.trusty\_amd64.deb (–unpack):  
subprocess new pre-removal script returned error exit status 3

- Garbd config /etc/default/garbd is not configured yet  
Errors were encountered while processing:  
/var/cache/apt/archives/percona-xtradb-cluster-garbd-3.x\_3.13-1.trusty\_amd64.deb  
E: Sub-process /usr/bin/dpkg returned an error code (1)

I don’t use garbd on that server (so its not running and also not configured in any way). I have installed “percona-xtradb-cluster-full-56”

Any Ideas to resolve this. This situation is blocking my whole package manager.  
thx.  
rgds.  
Michael

---

<div class="post-metadata">

**Author:** ![mstenz](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@mstenz](https://forums.percona.com/u/mstenz)\
**Post date:** [January 12, 2016, 1:42pm UTC](https://forums.percona.com/t/update-failed-garbd-pre-removal-script-on-ubuntu/4662/2 "2016-01-12T13:42:31Z")

</div>

I found this article: [url][https://github.com/codership/galera/issues/266[/url]](https://github.com/codership/galera/issues/266%5B/url%5D)  
The problem I have is exactly the same. the garbd is started (and also stopped by the script) which should NOT be the case. I fixed the installation now on one node by temporary configured the /etc/default/garbd file as an additonal node and then do a complete reinstallation fo everything (as i had due to some trys fixing this crap dependencies). Also I needed to create /var/lib/garbera folder and assigne nobody proviledges to it. After everything was installed i removed garbd configuration again.

Now to check if this is a general issue I have started up the upgrade to a seperate node and exactly the same problem happened. To me really it seems the upgrade procedure should be fixed not by starting garbd. On this node I have in addition the problem that the workarround from above does not work, but on this node a garbd is really needed and was also running before. the garbd does not start, without any add to garbd.log and also no information to syslog. So I don’t have a solution for this yet and I definetivly will not update all the other notes till this problem is fixed. Any Ideas?
