Cha*_*aur 2 mysql linux ubuntu mysql-workbench
我正在尝试安装mysql工作台.我收到了以下错误.它似乎在某个默认目录中查找mysql.我已经安装了所有必需的东西,但没有安装mysqlworkbench所期望的东西.什么出路!
local@host:/var/www/$ sudo apt-get -f install mysql-workbench
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-workbench : Depends: libctemplate0 but it is not going to be installed
Depends: libgtkmm-2.4-1c2a (>= 1:2.24.0) but it is not going to be installed
Depends: libmysqlclient18 (>= 5.5.13-1) but it is not going to be installed
Depends: libtinyxml2.6.2 but it is not going to be installed
Depends: libzip2 (>= 0.10) but it is not going to be installed
Depends: mysql-workbench-data (= 5.2.38+dfsg-3) but it is not going to be installed
Depends: mysql-client
Depends: python-mysql.connector but it is not going to be installed
Depends: python-paramiko but it is not going to be installed
Depends: python-pysqlite2 but it is not going to be installed
Depends: python-all but it is not going to be installed
Recommends: ttf-bitstream-vera but it is not going to be installed
Recommends: mysql-utilities but it is not installable
mysql-workbench-community : Depends: libctemplate2 but it is not installable
Depends: libglib2.0-0 (>= 2.35.9) but 2.32.3-0ubuntu1 is to be installed
Depends: libglibmm-2.4-1c2a (>= 2.33.13) but 2.32.0-0ubuntu1 is to be installed
Depends: libgtkmm-2.4-1c2a (>= 1:2.24.0) but it is not going to be installed
Depends: libmysqlclient18 (>= 5.5.13-1) but it is not going to be installed
Depends: libpcrecpp0 (>= 7.7) but it is not going to be installed
Depends: libtinyxml2.6.2 but it is not going to be installed
Depends: libzip2 (>= 0.10) but it is not going to be installed
Depends: python-paramiko but it is not going to be installed
Depends: mysql-client
Depends: python-pysqlite2 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)
Mik*_*hke 10
你可能跑了
dpkg -i mysql-workbench.deb
Run Code Online (Sandbox Code Playgroud)
这不起作用,因为dpkg不能解决依赖关系,现在MySQL Workbench的安装已经破解.改为运行此命令:
sudo apt-get -f install
Run Code Online (Sandbox Code Playgroud)
之后,MySQL Workbench应该安装得很好.
另请注意,我们为Ubuntu提供下载(从下拉列表中选择Ubuntu Linux).
尝试再次安装,让它失败并运行第二个命令:
sudo apt-get -f install mysql-workbench
sudo apt --fix-broken install
Run Code Online (Sandbox Code Playgroud)
这对我尝试在 ubuntu 18.04 上安装 mysql 5.7 的类似问题起到了作用。这个问题出现在我的机器上,因为我首先尝试使用 DEB 包安装 mysql,然后尝试从 mysql 的 apt 存储库安装它。
| 归档时间: |
|
| 查看次数: |
12141 次 |
| 最近记录: |