首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在linux 10 ()上安装mysql工作台

如何在linux 10 ()上安装mysql工作台
EN

Server Fault用户
提问于 2021-02-17 21:04:35
回答 2查看 3.1K关注 0票数 0

我第一次在StackOverflow上问这个问题,但是有人告诉我,我在这里得到答案的机会更大

我正试图在我的上安装MySQL工作台。它运行LinuxDebian10buster。

因此,我运行以下命令:

sudo apt-get update

然后

sudo apt-get install mysql-workbench

我知道这个错误:

代码语言:javascript
复制
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来安装它,但是它没有工作。也许它造成了某种冲突,使我无法用aptapt-get安装它。

这是内容/etc/apt/sources.list

代码语言:javascript
复制
  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

代码语言:javascript
复制
Listing... Done
snapd/stable,now 2.37.4-1+b1 amd64 [installed]
snapd/oldstable 2.21-2+b1 amd64

sudo apt list snap -a

代码语言:javascript
复制
Listing... Done
snap/stable,now 2013-11-29-9 amd64 [installed]
snap/oldstable 2013-11-29-6 amd64

亲爱的社区,您的想法是什么?

EN

回答 2

Server Fault用户

回答已采纳

发布于 2021-02-18 11:23:17

这个问题似乎是由于chromeos没有很好地处理管理单元而造成的。

在这里找到了我的解决方案:https://stackoverflow.com/questions/60859806/chromeos-error-system-does-not-fully-support-snapd-cannot-mount-squashfs-imag

票数 0
EN

Server Fault用户

发布于 2021-02-18 02:10:28

是的,依赖冲突很可能是由于.deb安装造成的。

具体来说,.deb有许多在上游存储库中不可用的依赖项。

清理

首先,回到一个干净的状态。

代码语言:javascript
复制
dpkg --purge mysql-workbench
apt-get autoremove

Snap

在这种情况下,我建议您尝试使用snapd,它是一个不同的包管理器,重点是允许开发人员直接向用户发布,而不是使用发行版维护人员。

  • pro:更快的发布周期
  • con:稳定性/兼容性的保证较低,因为它不是由发行版维护人员打包的。

在这种情况下,您想要的包不在主Debian存储库中,因此snap是一个很好的后盾。

安装

代码语言:javascript
复制
apt update
apt install snapd
snap install core
snap install mysql-workbench-community
票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1054038

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档