打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Installation error in MySQL on Ubuntu 16.04 update-alternatives: error: alternative path /e
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 existdpkg: error processing package mysql-common (--configure): subprocess installed post-installation script returned error exit status 2E: 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 autocleansudo 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.


本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Ubuntu1604生产环境下编译安装mariadb10.2.26
Fatal error: Can''t open and lock privilege tables: Table ''mysql.user'' doesn''t exist
Ubuntu 通过Deb 安装 MySQL 5.5
ubuntu 18.04 mysql5.7 安装、修改 root 密码和字符集修改
Ubuntu 12.04下安装MySQL图解 第3页
Linux安装mysql——源码安装
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服