Mailspring: Unable to install on Ubuntu 16.04: Package libsecret-1-dev is not installed

Created on 2 Nov 2017  Â·  24Comments  Â·  Source: Foundry376/Mailspring

Total newbie to Linux here,

So i just downloaded mailspring-1.0.7-amd64.deb

and i tried to install via Software install but nothing happens,

So i tried to install via terminal **sudo dpkg -i mailspring-1.0.7-amd64.deb**

It gave following error:

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

I also did **sudo apt-get install -f**
It gave following output:

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) ...
And I am still unable to install it please help
linux snapcraft

Most helpful comment

$ sudo apt install libsecret-1-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libsecret-1-dev : Depends: libglib2.0-dev but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Then when I run the suggested apt-get -f install, it gives me the same error as above. :disappointed:

All 24 comments

Can you give it a try with gdebi ? It's a tool that will find and install the required dependencies for a .deb package.

sudo apt install gdebi
sudo gdebi mailspring-1.0.7-amd64.deb
sudo gdebi mailspring-1.0.7-amd64.deb
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
This package is uninstallable
Cannot install 'libsecret-1-dev'

@lamarios

Which desktop environment are you using ?

Did you try to install this libsecret-1-dev using apt install ?

I am Ubuntu 16.04 LTS so i guess Unity by default.. i am total newbie to all this..

sudo apt-get install libsecret-1-dev

Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
 libsecret-1-dev : Depends: libglib2.0-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I had some secret issues (albeit a bit different) on an Ubuntu Mate running in a docker container. I solved it by installing gnome-keyring maybe give it a try. Other that that I'm not sure what to do.

Hopefully someone else can help

Edit:
from here https://github.com/Shippable/support/issues/3516

    sudo apt-get autoclean
    sudo apt-get autoremove
    sudo apt-get update
    sudo apt-get dist-upgrade

i use linux mint (cinnamon desktop) which is based on ubuntu 16.04 and mailspring installed without issues

@bengotow this is a bit weird because the deb package has a dev dependency
I did not pay much attention to this at the time, but it is still weird :-)

@thinkwalnut you should be able to install libsecret-1-dev manually and try again to install the mailspring package.

sudo apt install libsecret-1-dev

then dpkg -i mailspring.deb should be enough

Hey folks! Yeah... it's definitely strange is requires libsecret-1-dev. I think we originally tried specifying the dependency as libsecret-1-0, but folks reported it wasn't working. I didn't realize that dpkg wouldn't automatically resolve and install the dependency though...

(Related https://github.com/Foundry376/Mailspring/issues/216) - if anyone with more linux background knows which of these two is correct, I'd appreciate it! The part of Mailspring that needs this is the https://github.com/atom/node-keytar module.

It's a keytar issue, see: https://github.com/atom/node-keytar#on-linux
Other people are reporting the same problem in Nylas: https://github.com/atom/node-keytar/issues/73

Regarding the automatic dependency resolution, dpkg does not do this on Ubuntu/Debian. It's a known fact. So much so, that everybody does a:

sudo apt-get install -f

after a dpkg install.

A least known method to install on Ubuntu/Debian is with apt (not apt-get):

sudo apt install ./package.deb

This will automatically try to resolve dependencies.

Note: The apt install method requires either a relative path or full path. It does not work with the package name (in current folder). If you do provide the name of the deb without the path, it will try to install the package from the remote repositories instead of the deb file.

@bengotow Can you please add this to the Ubuntu/Debian install tutorials. I can write a cleaner version if needed. Also, most Linux projects provide an install guide on the download page if the install requires more than double click on the downloaded file.

Hey! Ahh that’s great info - it looks like the Snap package will be
shipping next Tuesday and I believe this won’t be a problem once we’re usig
that install method, but I’ll double check and see.

On Wed, Nov 8, 2017 at 8:48 AM Ovidiu Șerban notifications@github.com
wrote:

Regarding the automatic dependency resolution, dpkg does not do this on
Ubuntu/Debian. It's a known fact. So much so, that everybody
https://unix.stackexchange.com/a/159114 does a:

sudo apt-get install -f

after a dpkg install.

A least known method to install on Ubuntu/Debian is with apt (not apt-get):

sudo apt install ./package.deb

This will automatically try to resolve dependencies.

Note: The apt install method requires either a relative path or full
path. It does not work with the package name (in current folder). If you do
provide the name of the deb without the path, it will try to install the
package from the remote repositories instead of the deb file.

@bengotow https://github.com/bengotow Can you please add this to the
Ubuntu/Debian install tutorials. I can write a cleaner version if needed.
Also, most Linux projects provide an install guide on the download page if
the install requires more than double click on the downloaded file.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Foundry376/Mailspring/issues/293#issuecomment-342737091,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA_TnC-U8WJoJv5voWcaD11P_7UMiLJiks5s0VzKgaJpZM4QPUqs
.

I'm still seeing this when trying to install the latest 1.0.11 .deb file on Linux Mint 18.3, even using the apt install above. Is there any other workaround?

sudo apt install ./mailspring-1.0.11-amd64.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'mailspring' instead of './mailspring-1.0.11-amd64.deb'
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:
mailspring : Depends: libsecret-1-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install -f
After you installed the package with dpkg. This will install all dependencies of a previously failed package.

See above for more details

the apt-get install -f doesn't seem to do anything different -- it asks if I want to remove mailspring, not fix the dependency problems.

$ sudo dpkg -i ./mailspring-1.0.11-amd64.deb 
Selecting previously unselected package mailspring.
(Reading database ... 243024 files and directories currently installed.)
Preparing to unpack ./mailspring-1.0.11-amd64.deb ...
Unpacking mailspring (1.0.11) ...
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 hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22+linuxmint1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
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] n
Abort.

(Different output, same result when I tell it to y Yes remove mailspring.)

That is incredibly weird, as my suggestion is pretty much standard practice in Ubuntu.

Anyway, you can install the package manually. It should fix the problem:

sudo apt install libsecret-1-dev
$ sudo apt install libsecret-1-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libsecret-1-dev : Depends: libglib2.0-dev but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Then when I run the suggested apt-get -f install, it gives me the same error as above. :disappointed:

In that case, I think that library is not packed properly into your Linux Mint distribution.

Everything I posted here works well on Ubuntu, so you may need to ask this question to the Mint community.

I just reinstalled my OS (due to unrelated issues), and I'm now able to get mailspring to install without any issues. Thanks for the troubleshooting help.

After installing this

sudo apt install libsecret-1-dev

I get this error:

image

sudo apt install libpcre3=2:8.39-12
sudo gdebi mailspring-1.6.1-amd64.deb

Works for me :)

Hi, I have the same issue on Ubuntu 20.04, mailspring is installed and words correctly however every time I want to update my packages it complains that mailspring package is not configured properly

The following packages have unmet dependencies:
 mailspring : Depends: libsecret-1-dev but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

If I try with apt --fix-broken install it just removes mailspring.

And if I try to install libsecret-1-dev manually I get this error

The following packages have unmet dependencies:
 libsecret-1-dev : Depends: libglib2.0-dev (>= 2.44.0) but it is not going to be installed

Does anyone has a solution for this?

So... I'm not trying to install Mailspring but protonmail-bridge on my ubuntu 16.04 and the same error occurs

dan@dan:~/lab/proton-bridge$ sudo apt install libsecret-1-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
 libsecret-1-dev : Depends: libglib2.0-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

If I try to install the dependencies manually (which I think shouldn't be necessary) no progress is made, of course.

dan@dan:~/lab/proton-bridge$ sudo apt install libsecret-1-dev libglib2.0-dev zlib1g zlib1g-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
zlib1g is already the newest version (1:1.2.8.dfsg-2ubuntu4.1).
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:
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.2-0ubuntu4.3 is to be installed
                  Depends: libglib2.0-bin (= 2.48.0-1ubuntu4)
 zlib1g-dev : Depends: zlib1g (= 1:1.2.8.dfsg-2ubuntu4) but 1:1.2.8.dfsg-2ubuntu4.1 is to be installed
E: Unable to correct problems, you have held broken packages.

I can rarely solve these kinds of problems and I don't want to spend god knows how many days upgrading stuff that is working fine so that they will stop working, as it always happens.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

psivesely picture psivesely  Â·  3Comments

justindoran picture justindoran  Â·  3Comments

dgattey picture dgattey  Â·  3Comments

scooby picture scooby  Â·  3Comments

spartero picture spartero  Â·  3Comments