Could not select 'OK' in mysql-apt-config [Ubuntu 14.04]

 ̄綄美尐妖づ 提交于 2019-12-02 22:40:10

When you can't do

apt-get purge mysql-apt-config

because you're trapped: It won't execute because dpkg is interrupted, and "sudo dpkg --configure -a" backs you to the broken "configuring mysql-apt-config" screen...

edit: /var/lib/dpkg/info/mysql-apt-config.postinst

add exit at the beginning , then get rid of the package :

sudo dpkg --configure mysql-apt-config

sudo apt-get remove mysql-apt-config
  • Unistall current packages
    1. $ sudo apt-get remove mysql-server mysql-client mysql-common
    2. $ sudo apt-get autoremove
    3. $ sudo apt-get autoclean
  • Install dependency: sudo apt-get install libaio1
  • Download the currect mysql-apt-config<version>.deb for your installation from http://dev.mysql.com/downloads/repo/apt/.
  • Install into your system: sudo dpkg -i mysql-apt-config<version>.deb
  • Instal mysql server: sudo apt-get install mysql-server

With regards to the CUI (character user interface):

  • highlight the version you want (using arrow keys)
  • press 'Enter'

This should take you back to the list of packages (i.e. not the list of version numbers). Then:

  • highlight 'Apply' (using arrow keys)
  • press 'Enter'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!