# Why is Percona setting each time I make sudo apt-get

**URL:** <https://forums.percona.com/t/why-is-percona-setting-each-time-i-make-sudo-apt-get/2635>\
**Category:** Other MySQL® Questions\
**Created:** [April 17, 2013, 3:28am UTC](https://forums.percona.com/t/why-is-percona-setting-each-time-i-make-sudo-apt-get/2635 "2013-04-17T03:28:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ftrujillo](https://avatars.discourse-cdn.com/v4/letter/f/34f0e0/32.png) [@ftrujillo](https://forums.percona.com/u/ftrujillo)\
**Post date:** [April 17, 2013, 3:28am UTC](https://forums.percona.com/t/why-is-percona-setting-each-time-i-make-sudo-apt-get/2635/1 "2013-04-17T03:28:18Z")

</div>

I have installed Percona 5.5 in ubuntu 12.10. And work witthout problems but when aI tried to make a:

sudo apt-get install

I obtain error like these:

```
Setting up percona-server-server-5.5 (5.5.30-rel30.1-465.quantal) ...

 * Stopping MySQL (Percona Server) mysqld [OK] 

chown: cannot access `/var/run/mysqld': No such file or directory

```

always try to install again the percona server, it is like is detected that is not correctly installed. Is there any solution for this problem?

---

<div class="post-metadata">

**Author:** ![miguelangelnieto](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@miguelangelnieto](https://forums.percona.com/u/miguelangelnieto)\
**Post date:** [April 17, 2013, 6:12am UTC](https://forums.percona.com/t/why-is-percona-setting-each-time-i-make-sudo-apt-get/2635/2 "2013-04-17T06:12:29Z")

</div>

Hi,

Yes, seems it is not correctly installed. Try to create the /var/run/mysqld

mkdir -p /var/run/mysqld

then apt-get -f install or dpkg-reconfigure percona-server-server

---

<div class="post-metadata">

**Author:** ![ftrujillo](https://avatars.discourse-cdn.com/v4/letter/f/34f0e0/32.png) [@ftrujillo](https://forums.percona.com/u/ftrujillo)\
**Post date:** [April 18, 2013, 10:17am UTC](https://forums.percona.com/t/why-is-percona-setting-each-time-i-make-sudo-apt-get/2635/3 "2013-04-18T10:17:36Z")

</div>

Hi Miguel Angel

Thank for your answer but I tried other thing. I removed all the percona package and a make a dpkg-reconfigure and apt-get install f to leave the system with the package in a correct state.

After that I tried to install again percona server and client and I get an error again in the post script installation. Looking in the mysql logs I get this:

130418 17:21:59 Percona XtraDB ([URL=“[http://www.percona.com](http://www.percona.com)”][http://www.percona.com](http://www.percona.com)[/URL=“[http://www.percona.com](http://www.percona.com)”]) 5.5.30-rel30.2 started; log sequence number 1597945

ERROR: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE user ADD column Show\_view\_priv enum(‘N’,‘Y’) CHARACTER SET utf8 NOT ’ at line 1

The thing is that percona is correctly installed and working but the package it is marked with half configured status, so each time i tried to make an apt-get 'something’try to install percona again.

---

<div class="post-metadata">

**Author:** ![gmouse](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@gmouse](https://forums.percona.com/u/gmouse)\
**Post date:** [April 19, 2013, 5:23am UTC](https://forums.percona.com/t/why-is-percona-setting-each-time-i-make-sudo-apt-get/2635/4 "2013-04-19T05:23:37Z")

</div>

This is similar to [url][https://bugs.launchpad.net/ourdelta/+bug/484120[/url]](https://bugs.launchpad.net/ourdelta/+bug/484120%5B/url%5D) Several solutions are proposed there.
