当我尝试安装官方 MySQL Workbench 时,它显示 libproj19 不可用的依赖问题。但是,当我尝试从 APT 安装时,存储库只有 libproj22。
有人可以帮我吗?
System: Host: cosmic Kernel: 5.16.19-76051619-generic x86_64 bits: 64
Console: pty pts/1 Distro: Pop!_OS 22.04 LTS
karthik@cosmic:~/Downloads$ sudo dpkg -i mysql-workbench-community_8.0.28-1ubuntu21.10_amd64.deb
Selecting previously unselected package mysql-workbench-community.
(Reading database ... 629535 files and directories currently installed.)
Preparing to unpack mysql-workbench-community_8.0.28-1ubuntu21.10_amd64.deb ...
Unpacking mysql-workbench-community (8.0.28-1ubuntu21.10) ...
dpkg: dependency problems prevent configuration of mysql-workbench-community:
mysql-workbench-community depends on libproj19 (>= 7.2.0); however:
Package libproj19 is not installed.
dpkg: error processing package mysql-workbench-community (--install):
dependency problems - leaving unconfigured
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (2.1-2) ...
Errors were encountered while processing:
mysql-workbench-community
karthik@cosmic:~/Downloads$ sudo apt install libproj19
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libproj19 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libproj19' has no installation candidate
karthik@cosmic:~/Downloads$ apt list -i | grep "libproj"
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libproj22/jammy,now 8.2.1-1 amd64 [installed]
karthik@cosmic:~/Downloads$
我解决了。相当愚蠢的方式,但它的工作原理。
我缩小了每个冲突的依赖项,并从 Debian/ubuntu 存储库手动安装了所需的版本作为 deb 文件。
每当其中一个再次发生依赖冲突时,我都会为他们重复相同的方法。
我花了大约 30 分钟才完成这项工作,但最终让 .deb 版本的工作台在 22.04 上运行
在 ubuntu 22.04 lts 下也是如此。尝试使用快照!
只有您以前 apt install mysql workbench 的设置已经消失。不知道,是否有办法将设置从 ~/.mysql/workbench 导入到新的 snap 安装中。