Linux

如何在 Ubuntu Server 20.04 上安裝 ProtonMail?

  • July 27, 2020

我在 ProtonMail 有一個 PRO 帳戶,我想將它用於我的網路伺服器。我在這裡找到了一個教程:

https://pychao.com/2018/10/13/use-protonmail-bridge-on-headless-linux-machines/#comment-6612

https://pychao.com/2018/10/14/use-protonmail-for-wordpress-servers-smtp-setting-on-google-cloud-platform/

在我的伺服器上,我嘗試了以下命令行:

$ sudo apt install pass
$ wget -c https://protonmail.com/download/protonmail-bridge_1.2.7-1_amd64.deb
$ sudo dpkg -i protonmail-bridge_1.2.7-1_amd64.deb
$ sudo apt update
$ sudo apt install protonmail-bridge

但我遇到錯誤:

ubuntu@www-example-com ~ $ sudo dpkg -i protonmail-bridge_1.2.7-1_amd64.deb
Selecting previously unselected package protonmail-bridge.
(Reading database ... 105245 files and directories currently installed.)
Preparing to unpack protonmail-bridge_1.2.7-1_amd64.deb ...
Unpacking protonmail-bridge (1.2.7-1) ...
dpkg: dependency problems prevent configuration of protonmail-bridge:
protonmail-bridge depends on qt5-default; however:
 Package qt5-default is not installed.
protonmail-bridge depends on libqt5designer5; however:
 Package libqt5designer5 is not installed.
protonmail-bridge depends on libqt5multimediawidgets5; however:
 Package libqt5multimediawidgets5 is not installed.
protonmail-bridge depends on libqt5quickwidgets5; however:
 Package libqt5quickwidgets5 is not installed.
protonmail-bridge depends on libpulse-mainloop-glib0; however:
 Package libpulse-mainloop-glib0 is not installed.
protonmail-bridge depends on libsecret-1-0; however:
 Package libsecret-1-0 is not installed.
protonmail-bridge depends on ttf-dejavu; however:
 Package ttf-dejavu is not installed.

dpkg: error processing package protonmail-bridge (--install):
dependency problems - leaving unconfigured
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
protonmail-bridge

和 :

ubuntu@www-example-com ~ $ sudo apt install protonmail-bridge
Reading package lists... Done
Building dependency tree       
Reading state information... Done
protonmail-bridge is already the newest version (1.2.7-1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
protonmail-bridge : Depends: qt5-default but it is not going to be installed
                    Depends: libqt5designer5 but it is not going to be installed
                    Depends: libqt5multimediawidgets5 but it is not going to be installed
                    Depends: libqt5quickwidgets5 but it is not going to be installed
                    Depends: libpulse-mainloop-glib0 but it is not going to be installed
                    Depends: libsecret-1-0 but it is not going to be installed
                    Depends: ttf-dejavu but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

如何在 Ubuntu Server 20.04 上安裝 ProtonMail?

手動安裝包時,預計會出現這樣的錯誤。這是因為您的系統中沒有安裝依賴項。

要修復它,您需要按照建議進行操作:

$ sudo apt --fix-broken install

這應該安裝缺少的依賴項並解決您的問題。

檢查此連結是否有幫助。它將跳過依賴項步驟。

按照以下連結後,我可以在 Kali 上執行橋接。

https://protonmail.com/support/knowledge-base/install-bridge-linux-deb-extract-binaries/

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