/var/lib/dpkg/info/mysql-server-5.7.postinst: line 143: /usr/share/mysql-common/configure-symlinks: No such file or directory

in #mysql7 years ago

This is a common problem after MySQL upgrade.

The issue is, the symlink /usr/share/mysql-common/configure-symlinks doesn't exist.

Just create the symlink and run apt upgrade or apt-get upgrade and it will work

We can do the following to fix the issue

touch $$ : this creates a file with a unique name.

touch /tmp/$$.$$ ; cd /usr/share/mysql-common/ ; ln -s /tmp/$$.$$ /usr/share/mysql-common/configure-symlinks ; chmod 777 /usr/share/mysql-common/configure-symlinks ; apt -y upgrade ; rm -f /tmp/$$.$$

Sort:  

Coin Marketplace

STEEM 0.17
TRX 0.17
JST 0.029
BTC 71136.31
ETH 2558.89
USDT 1.00
SBD 2.54