我第一次在StackOverflow上问这个问题,但是有人告诉我,我在这里得到答案的机会更大
我正试图在我的上安装MySQL工作台。它运行LinuxDebian10buster。
因此,我运行以下命令:
sudo apt-get update
然后
sudo apt-get install mysql-workbench
我知道这个错误:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mysql-workbench : Depends: gdal-abi-2-1-2
Depends: libgdal20 (>= 2.0.1) but it is not going to be installed
Depends: libmysqlcppconn7v5 (>= 1.1.7) 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 going to be installed
E: Unable to correct problems, you have held broken packages.当我试图安装这些依赖项时,这是一个关于缺少依赖关系的永无止境的故事,如本文中所描述的:https://askubuntu.com/questions/1005179/unable-to-install-mysql-workbench-for-ubuntu-16-04-lts。
我在几个论坛上搜索了很多解决方案,但都没有效果。我找到的大多数解决方案都是针对Ubuntu而不是Debian的。
FYI,一开始我尝试通过下载和安装以下文件mysql-workbench-community_8.0.23-1ubuntu20.10_amd64.deb来安装它,但是它没有工作。也许它造成了某种冲突,使我无法用apt或apt-get安装它。
这是内容/etc/apt/sources.list
GNU nano 3.2 /etc/apt/sources.list
# Generated by distrobuilder
deb https://deb.debian.org/debian buster main
deb https://deb.debian.org/debian-security buster/updates main
deb http://deb.debian.org/debian stretch main
deb-src http://deb.debian.org/debian stretch main谢谢
当我试图清除的时候,我得到了这个:
sudo dpkg --purge mysql-workbench-community dpkg: warning: ignoring request to remove mysql-workbench-community which isn't installed sudo dpkg --purge mysql-workbench dpkg: warning: ignoring request to remove mysql-workbench which isn't installed
当我尝试用管理单元安装时,我得到了以下内容
sudo snap install core
error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:/tmp/sanity-mountpoint-750692798: mount failed: Operation not permitted.
安装了Snapd和snap:
sudo apt list snapd -a
Listing... Done
snapd/stable,now 2.37.4-1+b1 amd64 [installed]
snapd/oldstable 2.21-2+b1 amd64sudo apt list snap -a
Listing... Done
snap/stable,now 2013-11-29-9 amd64 [installed]
snap/oldstable 2013-11-29-6 amd64亲爱的社区,您的想法是什么?
发布于 2021-02-18 11:23:17
这个问题似乎是由于chromeos没有很好地处理管理单元而造成的。
发布于 2021-02-18 02:10:28
是的,依赖冲突很可能是由于.deb安装造成的。
具体来说,.deb有许多在上游存储库中不可用的依赖项。
首先,回到一个干净的状态。
dpkg --purge mysql-workbench
apt-get autoremove在这种情况下,我建议您尝试使用snapd,它是一个不同的包管理器,重点是允许开发人员直接向用户发布,而不是使用发行版维护人员。
在这种情况下,您想要的包不在主Debian存储库中,因此snap是一个很好的后盾。
apt update
apt install snapd
snap install core
snap install mysql-workbench-communityhttps://serverfault.com/questions/1054038
复制相似问题