无法在 mysql-apt-config [Ubuntu 14.04] 中选择“确定"

2021-11-17 00:00:00 ubuntu-14.04 ubuntu config apt mysql

我使用的是 Ubuntu 14.04.sudo apt-get update 总是给我这个选项来配置 mysql-apt-config.

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

我尝试选择版本,按tab"->确定"上突出显示的键,按Enter"但没有任何反应.它再次返回突出显示版本号.

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.

软件更新程序也会在 mysql-apt-config 处崩溃.

Software Updater also crashes at mysql-apt-config.

知道是什么导致了这个问题以及如何摆脱它吗?谢谢.

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

推荐答案

当你做不到时

apt-get purge mysql-apt-config

因为你被困:它不会执行,因为 dpkg 被中断,并且sudo dpkg --configure -a"让你回到破碎的configuring 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...

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

在开头添加exit,然后去掉包:

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

sudo dpkg --configure mysql-apt-config

sudo apt-get remove mysql-apt-config

相关文章