(Subscribing David Euresti of Dropbox to this bug since this bug is in
the official Dropbox package and not in the Ubuntu one)

I looked into this bug even though it's not in the Ubuntu package. The
postrm is failing with exitcode 2. After analysing the postrm, and
having made some tries, I believe that it's the "apt-key rm 5044912E"
(function uninstall_key) that is failing and returning.

┏(ubuntu-devel-i386) rivendell:~/tmp
┗(511)$ sudo apt-key rm 5044912E
gpg: key "5044912E" not found: eof
gpg: 5044912E: delete key failed: eof
┏(ubuntu-devel-i386) rivendell:~/tmp
┗(512)$ echo $?
2

I would suggest to stop relying on apt-key and instead you should
provide a keyring file in /usr/share/keyrings/ and just put a symlink to
this file in /etc/apt/trusted.gpg.d/ in the postinst configure (and drop
that symlink in the postrm purge). It's cleaner.

Otherwise you should either ignore the failure "apt-key rm" or only call
it after having it checked that the key to remove is still in APT's
keyring.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/937546

Title:
  package nautilus-dropbox (not installed) failed to install/upgrade:
  subprocess installed post-removal script returned error exit status 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nautilus-dropbox/+bug/937546/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to