分享

Installation error in MySQL on Ubuntu 16.04 update-alternatives: error: alternative path /e

 望穿墙 2018-12-21
2

I accidentally removed MySQL from Ubuntu 16.04. Now when I try to install it again, error is given. Please help my out with this error:

update-alternatives: error: alternative path /etc/mysql/my.cnf.fallback doesn't exist
dpkg: error processing package mysql-common (--configure):
 subprocess installed post-installation script returned error exit status 2
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-5.7

this will remove all related packages and dependencies for MySQL.

Now do:

sudo apt-get autoclean
sudo apt-get update

After this try to to do fresh installation using:

sudo apt-get install mysql-server-5.7

This will probably fix your problem.


    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多