当我尝试安装官方 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$
答案1
ubuntu 22.04 lts下同样如此。尝试使用快照!
snap install mysql-workbench-community
只有之前 apt install mysql workbench 中的设置消失了。不知道是否有办法将设置从 ~/.mysql/workbench 导入到新的快照安装中。
答案2
我解决了。相当愚蠢的方法,但它有效。
我缩小了每个冲突依赖项的范围,并从 Debian/ubuntu 存储库手动将所需版本安装为 deb 文件。
每当其中一个再次出现依赖冲突时,我就为他们重复相同的方法。
我花了大约 30 分钟来做这件事,但最终让 .deb 版本的工作台在 22.04 上运行
答案3
这比我想象的要容易得多。在 Ubuntu 上,我只允许应用程序安装程序的所有权限,瞧!