Ugrading MySQL (Percona) to the causing: dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

I have encountered this when I was upgrading my packages and one of them is Percona Server.

Then I encountered this strange error below,

(Reading database ... 82838 files and directories currently installed.)Preparing to replace libmysqlclient18-dev 1:5.5.33-rel31.1-566.precise (using .../libmysqlclient18-dev_1%3a5.5.33-rel31.1-568.precise_amd64.deb) ...Unpacking replacement libmysqlclient18-dev ...dpkg: error processing /var/cache/apt/archives/libmysqlclient18-dev_1%3a5.5.33-rel31.1-568.precise_amd64.deb (--unpack): trying to overwrite '/usr/lib/libmysqlservices.a', which is also in package libmysqlclient-dev 1:5.5.33-rel31.1-566.precisedpkg-deb: error: subprocess paste was killed by signal (Broken pipe)Errors were encountered while processing: /var/cache/apt/archives/libmysqlclient18-dev_1%3a5.5.33-rel31.1-568.precise_amd64.debE: Sub-process /usr/bin/dpkg returned an error code (1)

So my fix to that is remove  this package "libmysqlclient18*".

I'm in Ubuntu 12.10 on this environment, so I fixed it by,

root@ubuntu-toytoygogie:/var/log# dpkg -l|grep libmysqlclient18ii  libmysqlclient18                  1:5.5.33-rel31.1-566.precise                        Percona Server database client libraryii  libmysqlclient18-dev              1:5.5.33-rel31.1-566.precise                        Percona Server database development files - empty transitional

then remove it by,

root@ubuntu-toytoygogie:/var/log# apt-get remove libmysqlclient18* 


Then re-install Percona Server 5.6 to the latest one by,

root@ubuntu-toytoygogie:/var/log# apt-get install percona-server-server-5.6

 Hope that helps.

Comments

Popular posts from this blog

Converting sectors into MB - Useful in understanding the sectors in iostat in Linux

What is Disk Contention?

Installing MySQL from source: Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)