Unable to create socket: Permission denied


I have been trying to enter the PDF document viewer that comes by default in deepin (evince) and I see this error

Unable to init server: Unable to create socket: Permission denied 
Cannot parse arguments: Cannot open display: 

I guess it may be due to some damage in the sockets because also when I want to enter mysql I get the following error

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I hope someone can help me.

asked by Christian Eduardo Amaya Rivas 04.12.2018 в 00:09

1 answer


Check if you have installed mysql-server

sudo apt list --installed | grep mysql-server

If not, install it.

If you already have it installed, then (re) start the service with.

sudo service mysql start  # o "restart"
answered by 05.12.2018 в 12:16