update-manager doesn't start after a recovery

Asked by smurf

I have an Asus eeepc 701, it runs Ubuntu 10.04 without problems, but it has worked a lot so the internal SSD needed a format (too many errors on boot, boot was impossible).
No problems I was awarded about this and I restored the disk from a fresh backup, everything ok, in 15 minutes I formatted the disk from a live usb and restored the disk.
But now the update-manager gives this error:

$ update-manager
Traceback (most recent call last):
  File "/usr/bin/update-manager", line 32, in <module>
    from UpdateManager.UpdateManager import UpdateManager
  File "/usr/lib/python2.6/dist-packages/UpdateManager/UpdateManager.py", line 64, in <module>
    import GtkProgress
  File "/usr/lib/python2.6/dist-packages/UpdateManager/GtkProgress.py", line 34, in <module>
    class GtkOpProgress(apt.OpProgress):
AttributeError: 'module' object has no attribute 'OpProgress'
$

The backup copy was made with a rsync command on an external device and restore has been made with a
sudo cp -ax /backup/device/* /mnt/sda1/

How can I fix that error?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
smurf
Solved:
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

OK, well you can try forcing a reinstall of your update manager, if you can get to a terminal:

sudo aptitude update
sudo aptitude install update-manager

if it says "already installed" or similar:
sudo aptitude reinstall update-manager
sudo aptitude reinstall update-manager-core

Revision history for this message
smurf (luca-dgh) said :
#2

nothing, I reinstalled update-manager and update-manager-core but the problem persist.

Revision history for this message
mycae (mycae) said :
#3

Try installing python-apt

sudo aptitude update
sudo aptitude install python-apt

Revision history for this message
mycae (mycae) said :
#4

also, python-aptdaemon

sudo aptitude install python-aptdaemon

if that doesn't work, can you provide the output of

aptitude search .*apt.*

?

Revision history for this message
smurf (luca-dgh) said :
#5
Revision history for this message
smurf (luca-dgh) said :
#6

yeah... the command

sudo aptitude reinstall python-apt

made the magic.
Thank you so much.