Linux

如何在 linux debian 10 (Google Pixelbook) 上安裝 mysql workbench

  • February 18, 2021

我第一次在 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

親愛的社區,你有什麼想法?

看來問題是由於chromeos無法很好地處理snapd

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

是的,依賴衝突可能是由於.deb安裝造成的。

具體來說,它.deb有很多在您的上游儲存庫中不可用的依賴項。

清理

首先,回到干淨的狀態。

dpkg --purge mysql-workbench
apt-get autoremove

折斷

在這種情況下,我建議你嘗試一下snapd,這是一個不同的包管理器,專注於允許開發人員直接向使用者發布,而不是使用分發維護者。

  • **pro:**更快的發布週期
  • **缺點:**穩定性/兼容性的保證較少,因為它不是由發行版維護者打包的。

在這種情況下,您想要的軟體包不在 Debian 主記憶體儲庫中,因此 snap 是一個很好的備份。

安裝

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

引用自:https://serverfault.com/questions/1054038