Update error - appstreamcli: symbol lookup error
by davide445 from LinuxQuestions.org on (#4QYHV)
After a troubled upgrade from Kubuntu 18.04 to KDE Neon, last error seems to be the inability to run any update.
Discover told me there are updates, but is crashing trying to fetch the updates
Discover crash errors
Using CLI I got this errors
Quote:
Reading this thread appear libappstream3 might be the problem, but trying to follow the suggesion
Quote:
Also
Quote:
So tried to use Muon, resulting seems to discover updates needed for Kubuntu (I supposed was not the case, being now a KDE Neon installation)
Muon Kubuntu updates search
To start I tried to just update a package (Google Chrome) using Muon, resulting in a change in the kind of errors I get
Quote:
Discover update problems after Muon update attempt
Also seems there are two Discover installed
Two Discover?
Unfortunately I'm not an expert, before doing any more damage, any suggestion is welcomed.


Discover told me there are updates, but is crashing trying to fetch the updates
Discover crash errors
Using CLI I got this errors
Quote:
| sudo apt update Get:1 file:/var/cuda-repo-9-0-local InRelease Ign:1 file:/var/cuda-repo-9-0-local InRelease Get:2 file:/var/cuda-repo-9-0-local Release [574 B] Get:2 file:/var/cuda-repo-9-0-local Release [574 B] Hit:3 http://it.archive.ubuntu.com/ubuntu bionic InRelease Hit:4 http://archive.canonical.com/ubuntu bionic InRelease Hit:6 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu bionic InRelease Hit:7 http://it.archive.ubuntu.com/ubuntu bionic-updates InRelease Ign:8 http://dl.google.com/linux/chrome/deb stable InRelease Hit:9 https://download.docker.com/linux/ubuntu bionic InRelease Hit:10 http://dl.google.com/linux/chrome/deb stable Release Hit:11 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu bionic InRelease Hit:12 http://it.archive.ubuntu.com/ubuntu bionic-backports InRelease Ign:13 http://developer.download.nvidia.com...ntu1804/x86_64 InRelease Hit:14 http://developer.download.nvidia.com...ntu1804/x86_64 Release Get:15 http://archive.neon.kde.org/user bionic InRelease [153 kB] Hit:16 http://security.ubuntu.com/ubuntu bionic-security InRelease Fetched 153 kB in 1s (136 kB/s) appstreamcli: symbol lookup error: appstreamcli: undefined symbol: AS_APPSTREAM_METADATA_PATHS Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi' |
Quote:
| sudo apt-get purge libappstream3 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libappstream3 |
Quote:
| sudo apt-get update --fix-missing Get:1 file:/var/cuda-repo-9-0-local InRelease Ign:1 file:/var/cuda-repo-9-0-local InRelease Get:2 file:/var/cuda-repo-9-0-local Release [574 B] Get:2 file:/var/cuda-repo-9-0-local Release [574 B] Hit:3 http://archive.canonical.com/ubuntu bionic InRelease Hit:5 http://it.archive.ubuntu.com/ubuntu bionic InRelease Ign:6 http://dl.google.com/linux/chrome/deb stable InRelease Hit:7 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu bionic InRelease Hit:8 https://download.docker.com/linux/ubuntu bionic InRelease Hit:9 http://it.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:10 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:11 http://it.archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:12 http://dl.google.com/linux/chrome/deb stable Release Hit:13 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu bionic InRelease Ign:14 http://developer.download.nvidia.com...ntu1804/x86_64 InRelease Hit:15 http://developer.download.nvidia.com...ntu1804/x86_64 Release Get:16 http://archive.neon.kde.org/user bionic InRelease [153 kB] Fetched 153 kB in 1s (137 kB/s) appstreamcli: symbol lookup error: appstreamcli: undefined symbol: AS_APPSTREAM_METADATA_PATHS Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi' E: Sub-process returned an error code |
Muon Kubuntu updates search
To start I tried to just update a package (Google Chrome) using Muon, resulting in a change in the kind of errors I get
Quote:
| sudo apt-get update Get:1 file:/var/cuda-repo-9-0-local InRelease Ign:1 file:/var/cuda-repo-9-0-local InRelease Get:2 file:/var/cuda-repo-9-0-local Release [574 B] Get:2 file:/var/cuda-repo-9-0-local Release [574 B] Hit:4 http://it.archive.ubuntu.com/ubuntu bionic InRelease Get:5 http://archive.neon.kde.org/user bionic InRelease [153 kB] Ign:6 http://dl.google.com/linux/chrome/deb stable InRelease Hit:7 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu bionic InRelease Hit:8 http://it.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:9 https://download.docker.com/linux/ubuntu bionic InRelease Hit:10 http://dl.google.com/linux/chrome/deb stable Release Hit:11 http://it.archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:12 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu bionic InRelease Hit:13 http://archive.canonical.com/ubuntu bionic InRelease Hit:14 http://security.ubuntu.com/ubuntu bionic-security InRelease Ign:15 http://developer.download.nvidia.com...ntu1804/x86_64 InRelease Hit:16 http://developer.download.nvidia.com...ntu1804/x86_64 Release Fetched 153 kB in 1s (129 kB/s) appstreamcli: symbol lookup error: appstreamcli: undefined symbol: AS_APPSTREAM_METADATA_PATHS Reading package lists... Done W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target Translations (main/i18n/Translation-it_IT) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target Translations (main/i18n/Translation-it) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target DEP-11-icons-large (main/dep11/icons-128x128.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi' E: Sub-process returned an error code W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target Translations (main/i18n/Translation-it_IT) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target Translations (main/i18n/Translation-it) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target DEP-11-icons-large (main/dep11/icons-128x128.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3 |
Discover update problems after Muon update attempt
Also seems there are two Discover installed
Two Discover?
Unfortunately I'm not an expert, before doing any more damage, any suggestion is welcomed.