[ubuntu-uk] problems upgrading Ubuntu
Robert McWilliam
rmcw at allmail.net
Wed Aug 8 08:04:49 UTC 2012
On Tue, Aug 7, 2012, at 06:15 PM, David King wrote:
> ~$ update-manager
> Traceback (most recent call last):
> File "/usr/bin/update-manager", line 26, in <module>
> from gi.repository import Gtk
> File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in
> <module>
> from ._gi import _API, Repository
> ImportError: /usr/lib/python2.7/dist-packages/gi/_gi.so: undefined
> symbol: g_callable_info_skip_return
That looks to me like a version mismatch: I'd guess at some point
g_callable_info_skip_return got added or removed and you've got files
from either side of that change.
The first thing I'd do is have a look in
/usr/lib/python2.7/dist-packages/gi/ and see if there are any other
files starting _gi. in case there's two versions there and the import is
finding the wrong one.
I that doesn't turn up anything then I'd go with removing and
reinstalling the package providing this. First find out which package it
is: "dpkg -S /usr/lib/python2.7/dist-packages/gi/_gi.so". Then use
apt-get to remove it (and check that
/usr/lib/python2.7/dist-packages/gi/ is gone) and then reinstall it. I
suspect it'll be a package that ubuntu-desktop depends on: if you have
to remove it (and possibly others) as well take note of what's being
removed and remember to put it/them back too.
Robert
________________________________________________________
Robert McWilliam rmcw at allmail.net www.ormiret.com
The opinions expressed herin are not necessarily those of my
employer, not necessarily mine, and probably not necessary.
More information about the ubuntu-uk
mailing list