update manager crashes when there are no updates

Bug #221023 reported by Jose Bernardo
36
Affects Status Importance Assigned to Milestone
adept (Ubuntu)
Invalid
Undecided
Unassigned
Hardy
Invalid
Undecided
Unassigned
Intrepid
Invalid
Undecided
Unassigned
update-manager (Ubuntu)
Fix Released
Undecided
Michael Vogt
Hardy
Fix Released
Undecided
Michael Vogt
Intrepid
Fix Released
Undecided
Michael Vogt

Bug Description

Binary package hint: update-manager

TEST CASE:
1. install hardy
2. open a terminal
3. run "sudo update-manager --dist-ugprade"
4. watch failure in the terminal window

5. install update-manager from hardy-propose
6. repeat step 3
7. verify that there is no failure this time

I am already running the Hardy beta, and decided to try updating my system to the latest version running 'kdesu "adept_manager --dist-upgrade-devel"'. After detecting there are no upgrades, update manager crashes:
Traceback (most recent call last):
  File "/tmp/kde-root/adept_managerHJMRla.tmp-extract/dist-upgrade.py", line 60, in <module>
    app.run()
  File "/tmp/kde-root/adept_managerHJMRla.tmp-extract/DistUpgradeController.py", line 1550, in run
    self.fullUpgrade()
  File "/tmp/kde-root/adept_managerHJMRla.tmp-extract/DistUpgradeController.py", line 1513, in fullUpgrade
    if not self.askDistUpgrade():
  File "/tmp/kde-root/adept_managerHJMRla.tmp-extract/DistUpgradeController.py", line 818, in askDistUpgrade
    self.cache.requiredDownload)
  File "/tmp/kde-root/adept_managerHJMRla.tmp-extract/DistUpgradeViewKDE.py", line 631, in confirmChanges
    msg = unicode(self.confirmChangesMessage, 'UTF-8')
AttributeError: 'DistUpgradeViewKDE' object has no attribute 'confirmChangesMessage'

Revision history for this message
Jose Bernardo (bernardo-bandos) wrote :
Revision history for this message
Jose Bernardo (bernardo-bandos) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

Adept should probably not offer a upgrade if there is no new version in the meta-release file. I add a adept task.

The crash in the release-upgrader is fixed now in my bzr tree.

Changed in update-manager:
status: New → Fix Committed
Michael Vogt (mvo)
Changed in update-manager:
milestone: none → ubuntu-8.04.1
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into hardy-proposed, please test.

Changed in update-manager:
assignee: nobody → mvo
status: New → Fix Committed
Steve Langasek (vorlon)
Changed in update-manager:
milestone: ubuntu-8.04.1 → none
milestone: none → ubuntu-8.04.1
Michael Vogt (mvo)
description: updated
Revision history for this message
Martin Pitt (pitti) wrote :

Although not all fixed bugs have been verified, four tests from Brian showed that update-manager is still able to upgrade from dapper and gutsy, and fixed some bugs. Due to the urgency of some bugs I have copied this to hardy-updates now.

Changed in update-manager:
status: Fix Committed → Fix Released
Revision history for this message
Wim (wim-bertels) wrote :
Download full text (5.2 KiB)

Problem with the ubuntu mirrors?

I'm running the update as i type,
unfortunately i'll probably have a lot of work..

Whats up.

As in bug 41023 my the following lines are commented out by
the update-manager.

# deb ftp://ftp.belnet.be/mirrors/ubuntu.com/ubuntu/ dapper main restricted universe multiverse
# deb-src ftp://ftp.belnet.be/mirrors/ubuntu.com/ubuntu/ dapper main restricted universe multiverse

# deb ftp://ftp.belnet.be/mirrors/ubuntu.com/ubuntu/ dapper-updates main restricted universe multiverse
# deb-src ftp://ftp.belnet.be/mirrors/ubuntu.com/ubuntu/ dapper-updates main restricted universe multiverse

# deb ftp://ftp.belnet.be/mirrors/ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
# deb-src ftp://ftp.belnet.be/mirrors/ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

So they are just commented out, and not changed to hardy..

So for now,
the "cleaning up" step takes like for-ever.
this got me wondering

some output
root@lothar:/home/wim# tail -f /var/log/dist-upgrade/main.log
2008-05-15 19:32:19,483 DEBUG marking 'libxaw7' for removal
2008-05-15 19:32:19,502 DEBUG package 'libxaw7' has unwanted removals, skipping
2008-05-15 19:32:47,490 DEBUG 'libxaw7' scheduled for remove safe to remove, skipping
2008-05-15 19:32:47,491 DEBUG tryMarkObsoleteForRemoval(): ttf-arphic-ukai
2008-05-15 19:32:47,640 DEBUG marking 'ttf-arphic-ukai' for removal
2008-05-15 19:32:47,660 DEBUG package 'ttf-arphic-ukai' has unwanted removals, skipping
2008-05-15 19:33:05,475 DEBUG 'ttf-arphic-ukai' scheduled for remove safe to remove, skipping
2008-05-15 19:33:05,475 DEBUG tryMarkObsoleteForRemoval(): usbutils
2008-05-15 19:33:06,333 DEBUG marking 'usbutils' for removal
2008-05-15 19:33:06,353 DEBUG package 'usbutils' has unwanted removals, skipping

and
root@lothar:/home/wim# cat /var/log/dist-upgrade/main.log | grep ERR
2008-05-15 17:13:41,566 ERROR Installing/upgrading 'xserver-xorg-input-all' failed
2008-05-15 17:13:41,583 ERROR Installing/upgrading 'xserver-xorg-input-evdev' failed
2008-05-15 17:13:41,600 ERROR Installing/upgrading 'xserver-xorg-input-wacom' failed
2008-05-15 17:13:41,616 ERROR Installing/upgrading 'xserver-xorg-input-elographics' failed
2008-05-15 17:13:41,633 ERROR Installing/upgrading 'xserver-xorg-input-synaptics' failed
2008-05-15 17:13:41,650 ERROR Installing/upgrading 'xserver-xorg-input-kbd' failed
2008-05-15 17:13:41,667 ERROR Installing/upgrading 'xserver-xorg-input-mouse' failed

and most important probably
root@lothar:/home/wim# cat /var/log/dist-upgrade/main.log | grep belnet
2008-05-15 17:12:44,406 DEBUG examining: 'deb ftp://ftp.belnet.be/mirrors/ubuntu.com/ubuntu/ dapper main restricted universe multiverse'
2008-05-15 17:12:44,408 DEBUG entry '# deb ftp://ftp.belnet.be/mirrors/ubuntu.com/ubuntu/ dapper main restricted universe multiverse' was disabled (unknown mirror)
2008-05-15 17:12:44,408 DEBUG examining: 'deb-src ftp://ftp.belnet.be/mirrors/ubuntu.com/ubuntu/ dapper main restricted universe multiverse'
2008-05-15 17:12:44,411 DEBUG entry '# deb-src ftp://ftp.belnet.be/mirrors/ubuntu.com/ubuntu/ dapper main restricted universe multiverse' was disabled (unknown mirror)
20...

Read more...

Revision history for this message
Wim (wim-bertels) wrote :
Download full text (3.9 KiB)

Continuing:

1.

So i tried the same with other mirrors from
https://wiki.ubuntu.com/Mirrors?highlight=%28mirrors%29

namely:
ftp://ftp.belnet.be/pub/mirror/ubuntu.com/
and
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/ubuntu/ubuntu/

both are not recognised (unknown mirror) in the upgrade process,
so the wiki page has misleading info

2.

from there i tried:
https://launchpad.net/ubuntu/+archivemirrors
and both have differences..

(not relevant for this bug, but amusing: so i decided i should make this more clear on the wiki page / mirrors,
but for some reason is the password for launchpad which is kept by firefox,
not the right one; although i am logged in with it on launchpad, unable to change my password in launchpad, still following?:)
So i didn't change the wiki..)

3.

Some interesting errors:
after running the update-manager -d again:

2008-05-15 21:44:43,775 INFO release-upgrader version '0.87.24' started
2008-05-15 21:44:44,164 DEBUG Using 'DistUpgradeViewGtk' view
2008-05-15 21:44:44,261 DEBUG enable dpkg --force-overwrite
2008-05-15 21:44:44,411 DEBUG lsb-release: 'dapper'
2008-05-15 21:44:44,412 DEBUG _pythonSymlinkCheck run
2008-05-15 21:44:45,875 DEBUG checkViewDepends()
2008-05-15 21:44:45,875 DEBUG need backports
2008-05-15 21:44:45,875 DEBUG getRequiredBackports()
2008-05-15 21:44:45,876 DEBUG writing prereuists sources.list at: '/etc/apt/sources.list.d/prerequists-sources.dapper.list'
2008-05-15 21:44:45,957 DEBUG adding '# sources.list fragment for pre-requists (mirror from sources.list + fallback)
' prerequists
2008-05-15 21:44:45,957 DEBUG adding '# this is safe to remove after the upgrade
' prerequists
2008-05-15 21:44:45,957 DEBUG adding 'deb ftp://security.ubuntu.com/ubuntu dapper-backports main/debian-installer
deb http://archive.canonical.com/ubuntu dapper-backports main/debian-installer

' prerequists
2008-05-15 21:44:45,957 DEBUG adding 'deb http://archive.ubuntu.com/ubuntu dapper-backports main/debian-installer
' prerequists
2008-05-15 21:44:45,958 DEBUG running doUpdate() (showErrors=False)
2008-05-15 21:45:02,664 ERROR IOError/SystemError in cache.update(): 'Failed to fetch http://archive.canonical.com/ubuntu/dists/dapper-backports/Release Unable to find expected entry main/debian-installer/binary-amd64/Packages in Meta-index file (malformed Release file?)
'. Retrying (currentRetry: 0)
2008-05-15 21:45:19,323 ERROR IOError/SystemError in cache.update(): 'Failed to fetch http://archive.canonical.com/ubuntu/dists/dapper-backports/Release Unable to find expected entry main/debian-installer/binary-amd64/Packages in Meta-index file (malformed Release file?)
'. Retrying (currentRetry: 1)
2008-05-15 21:45:33,923 ERROR IOError/SystemError in cache.update(): 'Failed to fetch http://archive.canonical.com/ubuntu/dists/dapper-backports/Release Unable to find expected entry main/debian-installer/binary-amd64/Packages in Meta-index file (malformed Release file?)
'. Retrying (currentRetry: 2)
2008-05-15 21:45:33,923 ERROR doUpdate() failed completely
2008-05-15 21:45:36,416 DEBUG marking 'release-upgrader-apt' for install
2008-05-15 21:45:36,417 DEBUG marking 'release-upgrader-dpkg' for install
2008-05-15 21:45:36,64...

Read more...

Revision history for this message
Wim (wim-bertels) wrote : toDo

to change in the dist-upgrade scripts

1.
A. or remove the http://archive.canonical.com/ubuntu/ mirror in the dist-upgrade process (update-manger -c -d)
B. or update this mirror (it is out-dated at this moment)

2.
A. adapt the webpage https://launchpad.net/ubuntu/+archivemirrors of the official archive mirrors (and if possible https://wiki.ubuntu.com/Mirrors),
since all the mirrors from this webpage were recognised as "UNKNOWN mirror", thus were commented out during the dist-upgrade, and no distupgrade was performed as a result.
B. or adapt the webpages http://www.ubuntu.com/getubuntu/upgrading (and if possible https://help.ubuntu.com/community/HardyUpgrades) to make sure the persons who upgrades uses a recognised mirror
C. adapt the update-scripts, so that the not recognised mirrors are recognised.

hth,
..

Martin Pitt (pitti)
Changed in adept:
status: New → Invalid
status: New → Invalid
Michael Vogt (mvo)
Changed in update-manager:
assignee: nobody → mvo
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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