(在 Ubuntu 12.04 上)以下终端输出几乎是不言自明的:
[11:34:28] drossi@d ~/dbdumps$ mysql
The program 'mysql' is currently not installed. You can install it by typing:
sudo apt-get install mysql-client-core-5.5
[11:36:12] drossi@d ~/dbdumps$ sudo apt-get install mysql-client-core-5.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-client-core-5.5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
[11:36:15] drossi@d ~/dbdumps$ mysql
The program 'mysql' is currently not installed. You can install it by typing:
sudo apt-get install mysql-client-core-5.5
我试过了apt-get purge
,apt-get autoclean
...但没有任何效果。二进制文件不在 usr/bin 中。我该如何解决这个问题?
答案1
尝试
sudo apt-get install --reinstall mysql-client-core-5.5
这将再次安装该包。