KDECdromProgressAdapter instance has no attribute 'progressbar'

Bug #108556 reported by Hans-Joachim Daniels
This bug report is a duplicate of:  Bug #107451: [MASTER] [kde] cdrom uprade fails. Edit Remove
4
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: upgrade-system

I have Edgy Kubuntu installed and I try to make the cdromupgrade using the alternative install cd. Before I installed gksu via apt-get as mentioned in https://help.ubuntu.com/community/FeistyUpgrades#head-0aee739ab0dfe9702a69ee3d316f5926d5d31807 .
When I run 'gksu "sh /cdrom/cdromupgrade"', I get asked for my password, the update tool is downloaded and started. But when it comes to the second tick, probably "adapting repositories" (in German it is "Paketdepots anpassen"), I get the following error:

Traceback (most recent call last):
  File "/tmp/tmp.nSvbMJ5963/DistUpgradeViewKDE.py", line 72, in update
    self.progressbar.setProgress(percent)
AttributeError: KDECdromProgressAdapter instance has no attribute 'progressbar'

Revision history for this message
Hans-Joachim Daniels (lemuel-gmx) wrote :
Revision history for this message
Hans-Joachim Daniels (lemuel-gmx) wrote :
Revision history for this message
Hans-Joachim Daniels (lemuel-gmx) wrote :

It seems that I can't edit/finish my original report ...

After this error I can only close the window and the installation quits. So no Feisty for me.

Another remark: I chose not to download the latest files from the net, since that doesn't work either ...

Revision history for this message
Sam Corder (samus) wrote :

I fixed this by doing the following:
1. Copy feisty.tar.gz from [cdrom]dists/feisty/main/dist-upgrader/binary-all to a subdirectory on my hd and extracting it. You'll likely want to make an empty directory to extract to since it will extract all the files to the current directory.
2. Edit DistUpgradeViewKDE.py. Make the following changes
2.a. On line 72 change self.progressbar.setProgress(percent) to self.progressbar.setProgress(step)
2.b. Line 65 reads self.progress = parent.window_main.progressbar_cache. This should probably read self.progressbar = but I didn't want to take the chance of something else external using it and then bombing (it was really late) so I added a line after it that reads :
    self.progressbar = parent.window_main.progressbar_cache
3. Save the file and exit your editor.
4. In a terminal in the directory of your modified file execute the following command:
sudo python dist-upgrade.py --cdrom=[full path to cdrom] --frontend=DistUpgradeViewKDE
In my case I entered sudo python dist-upgrade.py --cdrom=/media/cdrom0/ --frontend=DistUpgradeViewKDE
The frontend parameter can likely be ignored since it doesn't seem to change anything when passing different frontend parameters like gtk or text.

One other note. When I chose yes to downloading updated packages I also got an error about the gnugpg module not being there. If that happens to you just choose No and do your updates later.

Good luck.

Revision history for this message
Martin-Éric Racine (q-funk) wrote :

This is all very nice, except this bug has nothing to do with package upgrade-system. Please reassign it to the correct package.

Revision history for this message
Hans-Joachim Daniels (lemuel-gmx) wrote :

Thanks Sam,
with your "DistUpgradeViewKDE.py", I could do the update.

Thanks again,
Ha-Jo

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.