apt update error – Ubuntu Mate 16.04.2 LTS

error:

/usr/share/appgrid/appdata/helpers.py:9: PyGIWarning: Soup was imported without specifying a version first. Use gi.require_version(‘Soup’, ‘2.4’) before import to ensure that the right version gets loaded. from gi.repository import GLib, GObject, Soup

fix:

nano /usr/share/appgrid/appdata/helpers.py

add:

#custom
import gi
gi.require_version(‘Soup’, ‘2.4’)
#END custom

before:

from gi.repository import GLib, GObject, Soup