/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.20
TRX 0.25
JST 0.038
BTC 96483.87
ETH 3356.14
USDT 1.00
SBD 3.20