So I managed to fix this issue on my system.
First I ran `sudo aptd -r` which output a bunch of errors but at the end it had:
... pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '0.25.0-ca5fd8ee' (package: bcc)
So this pointed at the issue being caused by the bcc package. So I did a quick search.
$ find /usr/lib/python3/dist-packages -iname bcc-* /usr/lib/python3/dist-packages/bcc-0.26.0_99726b9e.egg-info /usr/lib/python3/dist-packages/bcc-0.26.0.egg-info /usr/lib/python3/dist-packages/bcc-0.25.0_ca5fd8ee.egg-info /usr/lib/python3/dist-packages/bcc-128_NOTFOUND_ca5fd8ee.egg-info
Then I just deleted them.
$ sudo rm -R /usr/lib/python3/dist-packages/bcc-0.26.0_99726b9e.egg-info $ sudo rm -R /usr/lib/python3/dist-packages/bcc-0.26.0.egg-info $ sudo rm -R /usr/lib/python3/dist-packages/bcc-0.25.0_ca5fd8ee.egg-info $ sudo rm -R /usr/lib/python3/dist-packages/bcc-128_NOTFOUND_ca5fd8ee.egg-info
Now I can run `update-manager` without any issue. I did then compile and install the latest version of bcc and it still runs fine.
Hopefully this will help point others in the right direction.
So I managed to fix this issue on my system.
First I ran `sudo aptd -r` which output a bunch of errors but at the end it had:
... extern. packaging. version. InvalidVersion: Invalid version: '0.25.0-ca5fd8ee'
pkg_resources.
(package: bcc)
So this pointed at the issue being caused by the bcc package. So I did a quick search.
$ find /usr/lib/ python3/ dist-packages -iname bcc-* python3/ dist-packages/ bcc-0.26. 0_99726b9e. egg-info python3/ dist-packages/ bcc-0.26. 0.egg-info python3/ dist-packages/ bcc-0.25. 0_ca5fd8ee. egg-info python3/ dist-packages/ bcc-128_ NOTFOUND_ ca5fd8ee. egg-info
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
Then I just deleted them.
$ sudo rm -R /usr/lib/ python3/ dist-packages/ bcc-0.26. 0_99726b9e. egg-info python3/ dist-packages/ bcc-0.26. 0.egg-info python3/ dist-packages/ bcc-0.25. 0_ca5fd8ee. egg-info python3/ dist-packages/ bcc-128_ NOTFOUND_ ca5fd8ee. egg-info
$ sudo rm -R /usr/lib/
$ sudo rm -R /usr/lib/
$ sudo rm -R /usr/lib/
Now I can run `update-manager` without any issue. I did then compile and install the latest version of bcc and it still runs fine.
Hopefully this will help point others in the right direction.