我首先从官方存储库安装 mysql-server,这没有问题。但是官方仓库中没有 mysql-workbench 的安装候选,所以我选择从 下载 debian 包这里
当我尝试安装 debian 软件包时,遇到了这个错误。
The following packages have unmet dependencies:
mysql-workbench-community: Depends: libc6 (>= 2.33) but 2.32-0ubuntu3 is to be installed
Depends: libgdk-pixbuf-2.0-0 (>= 2.22.0) but it is not installable
Depends: libproj19 (>= 7.2.0) but it is not going to be installed
Depends: libzip4 (>= 0.10) but it is not installable
Reddit 上有人建议我这样做
wget -O /tmp/mysql-apt-config.deb https://repo.mysql.com/mysql-apt-config_0.8.16-1_all.deb
sudo apt install /tmp/mysql-apt-config.deb
sudo apt update
sudo apt install mysql-server mysql-workbench-community gnome-keyring
这让我留在这里
The following packages have unmet dependencies:
mysql-workbench-community : Depends: libproj15 (>= 6.3.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
你可以找到我的问题的 reddit 主题这里