View Full Version : [ubuntu] do-release-upgrade fails
isecore
May 25th, 2011, 07:42 PM
So I decided to take the plunge and upgrade my server to Natty. It's a 9.10 server that got upgraded to 10.04 then to 10.10 and now the plan was to make it into a 11.04 machine.
So I do the usual precautions and then punch do-release-upgrade in a screened shell.
Unlike the previous times it produces the following output:
Traceback (most recent call last):
File "/usr/bin/do-release-upgrade", line 10, in <module>
from UpdateManager.Core.DistUpgradeFetcherCore import DistUpgradeFetcherCore
File "/usr/lib/python2.6/dist-packages/UpdateManager/Core/DistUpgradeFetcherCore.py", line 34, in <module>
import GnuPGInterface
ImportError: No module named GnuPGInterface
... after which absolutely nothing happens.
So, any clue where to begin with fixing this? Reinstalling is of course NOT an option.
lykwydchykyn
May 25th, 2011, 09:57 PM
Is python-gnupginterface installed? If not, I'd say installing it would be a good first step.
isecore
May 26th, 2011, 06:19 AM
Is python-gnupginterface installed? If not, I'd say installing it would be a good first step.
Yes, it's installed. That was the first thing I checked. No go, despite it being installed. I even tried removing it and reinstalling it. No dice.
lykwydchykyn
May 26th, 2011, 05:12 PM
Do you have multiple versions of python installed?
What happens if you open a python prompt and paste in the exact import command from the error?
isecore
May 26th, 2011, 06:12 PM
>>> import GnuPGInterface
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named GnuPGInterface
>>>
lykwydchykyn
May 26th, 2011, 07:15 PM
>>> import GnuPGInterface
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named GnuPGInterface
>>>
If in fact the library is installed as you say, the only other possibility is that you have multiple versions of python installed, and the library is installed for the wrong version. The default python install (which appears to be 2.6) is not finding the module.
Either that, or python is somehow subtly wrecked on your system. Without more data, I can't say.
isecore
May 26th, 2011, 08:42 PM
Damn. So how would I go about finding out if I have multiple Pythons installed? I haven't used anything except the official sources (no PPAs or compiled from source) so maybe it's from an older upgrade?
I'll have to experiment with this, but thanks for your input and help. Much appreciated.
lykwydchykyn
May 26th, 2011, 09:41 PM
check your package manager. Python releases are usually named like "python2.6" or "python2.5". aptitude (the package manager, not the abstract quality) is helpful in this regard. Fire it up and browse under the "local or obsolete" section for old installs of python.
isecore
May 26th, 2011, 10:07 PM
I went through the system. The only python-related packages I have installed are all version 2.6, so no old pythons clogging up the works as far as I can tell. Weird.
isecore
May 28th, 2011, 11:18 PM
Come on, anyone else have any suggestions?
isecore
June 3rd, 2011, 03:24 PM
Okay, so for what it's worth - this seemed to solve the problem. I removed the following packages which seemed to be orphaned.
python-smartpm
python-software-properties
update-notifier-common
libmpfr1ldbl
zlibc
libdjvulibre-text
Now do-release-upgrade doesn't immediately spit out the original error. I will attempt the upgrade later tonight and see how it goes.
ASedinkin
June 24th, 2012, 10:24 PM
Also you can try this:
In file /usr/lib/python2.6/dist-packages/UpdateManager/Core/DistUpgradeFetcherCore.py
between lines #33 and #34:
import sys
import GnuPGInterface
add line:
sys.path.append('/usr/share/pyshared/')
So finally you need to see next lines:
import sys
sys.path.append('/usr/share/pyshared/')
import GnuPGInterface
This should help if module python-gnupginterface was installed.
isecore
June 25th, 2012, 08:58 AM
Thanks for the suggestion, I'll try it later this evening!
Also you can try this:
In file /usr/lib/python2.6/dist-packages/UpdateManager/Core/DistUpgradeFetcherCore.py
between lines #33 and #34:
import sys
import GnuPGInterface
add line:
sys.path.append('/usr/share/pyshared/')
So finally you need to see next lines:
import sys
sys.path.append('/usr/share/pyshared/')
import GnuPGInterface
This should help if module python-gnupginterface was installed.
alecz20
September 5th, 2012, 04:22 PM
You can try this to solve the python interface error:
cp /usr/share/pyshared/GnuPGInterface.py /usr/lib/python2.6/
reference: http://ulm.ccc.de/pipermail/ssls-dev/2009-February/000051.html
bronkeydain
December 31st, 2012, 01:20 PM
You can try this to solve the python interface error:
cp /usr/share/pyshared/GnuPGInterface.py /usr/lib/python2.6/
reference: http://ulm.ccc.de/pipermail/ssls-dev/2009-February/000051.html
I had the same problem and your suggestion fixed my problem. Thx.
Powered by vBulletin® Version 4.2.2 Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.