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

Jack picture Jack · Nov 26, 2014 · Viewed 10.7k times · Source

I am using Ubuntu 14.04. sudo apt-get update always give me this option to configure mysql-apt-config.

enter image description here

I am have tried to select the version, press 'tab' -> key highlighted on 'OK', press 'Enter' but nothing happens. It goes back again highlighting the version number.

Software Updater also crashes at mysql-apt-config.

Any idea on what is causing this problem and how to get rid of it? Thx.

Answer

Dam picture Dam · Mar 4, 2015

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