如何在 Linux Debian 10(Google Pixelbook)上安装 mysql workbench

如何在 Linux Debian 10(Google Pixelbook)上安装 mysql workbench

我第一次在 StackOverflow 上问了这个问题,但有人告诉我,在这里我更有可能得到答案

我正在尝试在我的 Google Pixelbook 上安装 MySQL Workbench。它运行 Linux debian 10 buster。

因此我运行以下命令:

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 的

仅供参考,起初我尝试通过下载并安装以下文件来安装它mysql-workbench-community_8.0.23-1ubuntu20.10_amd64.deb,但没有成功。也许它产生了某种冲突,阻止我安装它aptapt-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

当我尝试使用 snapd 安装时,出现了这个问题

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 amd64

sudo apt list snap -a

Listing... Done
snap/stable,now 2013-11-29-9 amd64 [installed]
snap/oldstable 2013-11-29-6 amd64

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

答案1

是的,依赖冲突可能是由于.deb安装引起的。

具体来说,它.deb具有许多上游存储库中没有的依赖项。

清理

首先,恢复到干净的状态。

dpkg --purge mysql-workbench
apt-get autoremove

折断

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

  • 优点:更快的发布周期
  • 缺点:由于它不是由发行版维护者打包的,因此稳定性/兼容性的保证较少。

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

安装

apt update
apt install snapd
snap install core
snap install mysql-workbench-community

答案2

问题似乎是由于 chromeos 不能很好地处理 snapd 造成的

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

相关内容