2

I cannot open Software & Updates tool on 14.04 and get the following error:

enter image description here

Here is the full output of apt-get update, it shows this warning:

W: GPG error: http://dl.bintray.com  Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 99E82A75642AC823

When I run sudo software-properties-gtk, I get this error traceback. It shows errors like EOFError: marshal data too short.

How can I fix this?

16
  • 1
    Give the terminal output of sudo apt-get update Feb 18, 2016 at 10:41
  • Here is what sudo apt-get update gives: pastebin.com/8a9AXujX Feb 18, 2016 at 10:48
  • 1
    Possible duplicate of How do I fix the GPG error "NO_PUBKEY"?
    – Byte Commander
    Feb 18, 2016 at 10:57
  • 1
    @yildizabdullah Removing the bintray ppa would do. Feb 18, 2016 at 11:27
  • 2
    You are not supposed to run software-properties-gtk with sudo! Launch it as your normal user account and it will ask for privilege elevation when needed itself. - And please try if the problem gets solved after you run sudo rm -rf /var/lib/apt/lists/* ; sudo apt-get update. Did that help?
    – Byte Commander
    Feb 18, 2016 at 14:41

2 Answers 2

2

There are two problems:

  • GPG missing key error on the http://dl.bintray.com repository
  • EOFError: marshal data too short when Python3 tries to import urllib to launch software-properties-gtk (the "Software & Updates" settings window)

To resolve the GPG error, please follow @GAD3R's answer or any answer to How do I fix the GPG error "NO_PUBKEY"?

You decided to remove this repository from your software sources, which is also ok if you don't need it any more.


To resolve the Python EOFError, we need to eliminate some *.pyc files. Those are compiled byte code of a script, which gets dynamically created when a Python script runs to speed up future launches. They are faulty and don't match the original script any more for whatever reason. We can simply delete them as they are not really needed and will be recreated on the next launch.

We don't want a massacre but a small and effective removal of the faulty files only. Therefore we look at the error traceback from the software-properties-gtk output and find out that this error always happens when Python 3.4 tries to import urllib.parse. To avoid follow-up errors we simply remove all *.pyc files related to Python 3.4's urllib module:

sudo rm -r /usr/lib/python3.4/urllib/__pycache__
0

Type the following command :

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 99E82A75642AC823
sudo apt-get update
1
  • I eliminated this error by first removing the related repo address at /etc/apt/sources.list.d/sbt.list and then running sudo apt-get update. Feb 18, 2016 at 15:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .