Can't install on debian testing, mailspring : Depends: gir1.2-gnomekeyring-1.0 but it is not installable

$ sudo apt install ./mailspring-1.3.0-amd64.deb                     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'mailspring' instead of './mailspring-1.3.0-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: gir1.2-gnomekeyring-1.0 but it is not installable
E: Unable to correct problems, you have held broken packages.
$ neofetch                                                         
       _,met$$$$$gg.         
    ,g$$$$$$$$$$$$$$$P.       ----------------------- 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux testing (buster) x86_64 
 ,$$P'              `$$$.     Host: Inspiron 7370 
',$$P       ,ggs.     `$$b:   Kernel: 4.17.0-1-amd64 
`d$$'     ,$P"'   .    $$$    Uptime: 52 mins 
 $$P      d$'     ,    $$P    Packages: 2733 (dpkg) 
 $$:      $$.   -    ,d$$'    Shell: zsh 5.5.1 
 $$;      Y$b._   _,d$P'      Resolution: 1920x1080 
 Y$$.    `.`"Y$$$$P"'         DE: GNOME 3.28.3 
 `$$b      "-.__              WM: GNOME Shell 
  `Y$$                        WM Theme: Adapta-Eta 
   `Y$$.                      Theme: Adapta-Eta [GTK2/3] 
     `$$b.                    Icons: Papirus [GTK2/3] 
       `Y$$b.                 Terminal: tilix 
          `"Y$b._             CPU: Intel i7-8550U (8) @ 4.000GHz 
              `"""            GPU: Intel UHD Graphics 620 
                              Memory: 3342MiB / 15784MiB 

gir1.2-gnomekeyring-1.0 removed from testing.

https://tracker.debian.org/pkg/libgnome-keyring


(Originally posted by duriantang on GitHub.)

Hey folks—it looks like they deprecated gnome-keyring in favor of libsecret, and we actually already use libsecret. Libsecret just maps to your underlying keyring, and I think that Mailspring installs gnome-keyring to ensure that you have at least /some/ keyring installed on your system.

Could you try installing the dpkg manually and force-ignoring that dependency? The app may just work, and we need to update the package config to mark that the dependency is optional.

wget https://github.com/Foundry376/Mailspring/releases/download/1.6.3/mailspring-1.6.3-amd64.deb
sudo dpkg -i --ignore-depends=gir1.2-gnomekeyring-1.0 mailspring-1.6.3-amd64.deb

(Originally posted by bengotow on GitHub.)

thanks, your solution worked on my Debian 10!

I also had to install the following packages that mailspring depends on:

sudo apt install libsecret-1-dev gvfs gvfs-bin gconf2

Edit

Ooops, I just noticed, now debian complains about unmet dependencies:

$ sudo apt install httpie
Reading package lists... Done
Building dependency tree       
Reading state information... Done
httpie is already the newest version (0.9.8-2).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 mailspring : Depends: gir1.2-gnomekeyring-1.0 but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Any suggestions to ignore that too? (if I run apt --fix-broken install, mailspring gets removed )

Edit - fixed

Fixed it by (1) unpacking the .deb, (2) deleting gir1.2-gnomekeyring-1.0 from the list of dependencies, and (3) repackaging the new .deb ¹.

¹ ubuntu - How do I get apt-get to ignore some dependencies? - Server Fault


(Originally posted by geonnave on GitHub.)

You can ignore the dependency this way:

dpkg --ignore-depends=gir1.2-gnomekeyring-1.0 -i mailspring-x.x.x-amd64.deb

That works for me in Debian Buster


(Originally posted by wop on GitHub.)

This topic was automatically closed 8 hours after the last reply. New replies are no longer allowed.