无法在 ubuntu 16.04 上安装 mailspring

无法在 ubuntu 16.04 上安装 mailspring

我是 Linux 的新手,

所以我刚刚下载了mailspring-1.0.7-amd64.deb

我尝试通过软件安装进行安装,但没有任何反应,

所以我尝试通过终端安装sudo dpkg -i mailspring-1.0.7-amd64.deb

它给出了以下错误:

Selecting previously unselected package mailspring.
(Reading database ... 329215 files and directories currently installed.)
Preparing to unpack mailspring-1.0.7-amd64.deb ...
Unpacking mailspring (1.0.7) ...
dpkg: dependency problems prevent configuration of mailspring:
 mailspring depends on libsecret-1-dev; however:
  Package libsecret-1-dev is not installed.

dpkg: error processing package mailspring (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Errors were encountered while processing:
 mailspring

我也这么做了sudo apt-get install -f

它给出了以下输出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  mailspring
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 280 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 329463 files and directories currently installed.)
Removing mailspring (1.0.7) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...

我仍然无法安装,请帮忙

答案1

首先安装缺少的包: sudo apt install libsecret-1-dev 然后通过运行以下命令安装该包: sudo dpkg -i mailspring-1.0.7-amd64.deb

在通过 dpkg 安装任何包之前,您应该运行: sudo dpkg -I <package> 以获取包所需的依赖项列表并预先安装它们。

相关内容