# Unable to upgrade percona server 5.7 on ubuntu 16.04

**URL:** <https://forums.percona.com/t/unable-to-upgrade-percona-server-5-7-on-ubuntu-16-04/6206>\
**Category:** Percona Server for MySQL 5.7\
**Created:** [February 21, 2018, 10:04am UTC](https://forums.percona.com/t/unable-to-upgrade-percona-server-5-7-on-ubuntu-16-04/6206 "2018-02-21T10:04:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![samwill](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@samwill](https://forums.percona.com/u/samwill)\
**Post date:** [February 21, 2018, 10:04am UTC](https://forums.percona.com/t/unable-to-upgrade-percona-server-5-7-on-ubuntu-16-04/6206/1 "2018-02-21T10:04:07Z")

</div>

Full output of `sudo apt-get install percona-server-server-5.7` below. Would appreciate tips on how to troubleshoot as nothing I’ve found elsewhere has helped

> [@](#):
>
> Reading package lists… Done  
> Building dependency tree  
> Reading state information… Done  
> The following packages were automatically installed and are no longer required:  
> bsdtar bundler dkms fonts-lato javascript-common libgmp-dev libgmpxx4ldbl libgsoap8 libjs-jquery libllvm4.0 libllvm4.0:i3  
> linux-headers-4.10.0-35-generic linux-headers-4.10.0-37 linux-headers-4.10.0-37-generic linux-headers-4.10.0-38 linux-hea  
> linux-headers-4.13.0-26 linux-headers-4.13.0-26-generic linux-image-4.10.0-33-generic linux-image-4.10.0-35-generic linux  
> linux-image-extra-4.10.0-33-generic linux-image-extra-4.10.0-35-generic linux-image-extra-4.10.0-37-generic linux-image-e  
> linux-signed-image-4.10.0-33-generic linux-signed-image-4.10.0-35-generic linux-signed-image-4.10.0-37-generic linux-sign  
> rake ruby ruby-bundler ruby-childprocess ruby-dev ruby-did-you-mean ruby-domain-name ruby-erubis ruby-ffi ruby-http-cooki  
> ruby-net-telnet ruby-netrc ruby-nokogiri ruby-power-assert ruby-rb-inotify ruby-rest-client ruby-sqlite3 ruby-test-unit r  
> Use ‘sudo apt autoremove’ to remove them.  
> The following packages will be upgraded:  
> percona-server-server-5.7  
> 1 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.  
> 1 not fully installed or removed.  
> Need to get 0 B/25.2 MB of archives.  
> After this operation, 575 kB of additional disk space will be used.  
> Preconfiguring packages …  
> (Reading database … 506584 files and directories currently installed.)  
> Preparing to unpack …/percona-server-server-5.7\_5.7.21-20-1.xenial\_amd64.deb …  
> …  
> dpkg: error processing archive /var/cache/apt/archives/percona-server-server-5.7\_5.7.21-20-1.xenial\_amd64.deb (–unpack):  
> subprocess new pre-installation script returned error exit status 1
> 
> - Percona Server is distributed with several useful UDF (User Defined Function) from Percona Toolkit.
> - Run the following commands to create these functions:
> 
> mysql -e “CREATE FUNCTION fnv1a\_64 RETURNS INTEGER SONAME ‘libfnv1a\_udf.so’”  
> mysql -e “CREATE FUNCTION fnv\_64 RETURNS INTEGER SONAME ‘libfnv\_udf.so’”  
> mysql -e “CREATE FUNCTION murmur\_hash RETURNS INTEGER SONAME ‘libmurmur\_udf.so’”
> 
> - See [http://www.percona.com/doc/percona-server/5.7/management/udf\_percona\_toolkit.html](http://www.percona.com/doc/percona-server/5.7/management/udf_percona_toolkit.html) for more details
> 
> initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused  
> insserv: warning: script ‘mongod’ missing LSB tags and overrides  
> insserv: Default-Start undefined, assuming empty start runlevel(s) for script `mongod' insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `mongod’  
> Errors were encountered while processing:  
> /var/cache/apt/archives/percona-server-server-5.7\_5.7.21-20-1.xenial\_amd64.deb  
> E: Sub-process /usr/bin/dpkg returned an error code (1)

---

<div class="post-metadata">

**Author:** ![lorraine.pocklington](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lorraine.pocklington/32/37_2.png) [@lorraine.pocklington](https://forums.percona.com/u/lorraine.pocklington)\
**Post date:** [February 21, 2018, 10:23am UTC](https://forums.percona.com/t/unable-to-upgrade-percona-server-5-7-on-ubuntu-16-04/6206/2 "2018-02-21T10:23:36Z")

</div>

Can I just check if you are installing Percona Server for MySQL alongside MongoDB?  
If not, if you could just outline what you currently have installed, what you’re upgrading from and to, and any other details that might help us understand what’s going on, that would be great.  
Thanks!

---

<div class="post-metadata">

**Author:** ![baskin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/baskin/32/1217_2.png) [@baskin](https://forums.percona.com/u/baskin)\
**Post date:** [February 25, 2018, 4:45am UTC](https://forums.percona.com/t/unable-to-upgrade-percona-server-5-7-on-ubuntu-16-04/6206/3 "2018-02-25T04:45:50Z")

</div>

I’m having also problem to upgrade from 5.7.20 to 5.7.21 with pre-installation script error also. I have made a separate post with details, although it is over 24h on moderation and not displayed

---

<div class="post-metadata">

**Author:** ![samwill](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@samwill](https://forums.percona.com/u/samwill)\
**Post date:** [March 21, 2018, 9:07am UTC](https://forums.percona.com/t/unable-to-upgrade-percona-server-5-7-on-ubuntu-16-04/6206/4 "2018-03-21T09:07:26Z")

</div>

Hi [lorraine.pocklington](https://percona.vanillacommunities.com/profile/x/x/41223) apologies, I assumed this site would notify me of replies (it didn’t) and I gave up trying to solve this.

In the end, completely shutting down all processes related to SQL, purging the percona-server package in question, and reinstalling from an updated dev environment setup script provided by my company’s RelEng team resolved the issue.

But to answer your question in case it can help others, yes. Percona server was installed alongside mongodb, they are two of a number of packages installed by the before mentioned env setup script. I’m not sure what version was initially installed from the script, which I had previously ran about 6 months ago when setting up this new machine, or when things got updated last before this problem occurred

---

<div class="post-metadata">

**Author:** ![lorraine.pocklington](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lorraine.pocklington/32/37_2.png) [@lorraine.pocklington](https://forums.percona.com/u/lorraine.pocklington)\
**Post date:** [March 21, 2018, 9:14am UTC](https://forums.percona.com/t/unable-to-upgrade-percona-server-5-7-on-ubuntu-16-04/6206/5 "2018-03-21T09:14:22Z")

</div>

Thank you for the update, it could easily help someone down the track, so that’s much appreciated.

Ah - yes, I think you have to opt in for mail notifications, sorry. I’m writing up an intro mail, I will add that in, sorry about that. We will have to see if we can be more explicit asking if you want to opt in. Thanks for the nudge and the feedback.
