hardy upgrade crashes at "preparing upgrade"

Bug #222801 reported by mercutio22
12
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: update-manager

When trying to upgrade from gutsy to hardy, the update process stops at "preparing upgrade". I am left with this output in the terminal window:

htorres@GLaDOS:~$ update-manager -d
extracting '/tmp/tmpREdy_5/hardy.tar.gz'
authenticate '/tmp/tmpREdy_5/hardy.tar.gz' against '/tmp/tmpREdy_5/hardy.tar.gz.gpg'

I also got an "unresolvable error message" when trying to upgrade from the alternate ubuntu amd64 DVD saying I had to attach a log file from /var/log/dist-upgrade.

The log file shows many error messages with the OOffice.org package.

1) Distribution Version
htorres@GLaDOS:~$ lsb_release -rd
Description: Ubuntu 7.10
Release: 7.10

2) Package version:

htorres@GLaDOS:~$ apt-cache policy update-manager
update-manager:
  Installed: 1:0.81.2
  Candidate: 1:0.81.2
  Version table:
 *** 1:0.81.2 0
        500 ftp://sft.if.usp.br gutsy-updates/main Packages
        100 /var/lib/dpkg/status
     1:0.81 0
        500 ftp://sft.if.usp.br gutsy/main Packages

3) I expected the system to upgrade to the latest LTS version

4) It didn't.

Should I attach anything else?

ProblemType: Bug
Architecture: amd64
Date: Sat Apr 26 19:45:25 2008
DistroRelease: Ubuntu 7.10
NonfreeKernelModules: nvidia
Package: update-manager 1:0.81.2
PackageArchitecture: all
SourcePackage: update-manager
Uname: Linux GLaDOS 2.6.22-14-rt #1 SMP PREEMPT RT Tue Feb 12 03:54:33 UTC 2008 x86_64 GNU/Linux

Revision history for this message
mercutio22 (macabro22) wrote :
Revision history for this message
mercutio22 (macabro22) wrote :

secretlondon asked me to attach this.

Revision history for this message
Caroline Ford (secretlondon) wrote :

Okay. You have a couple of unsupported repositories -

deb http://repository.akirad.net akirad-gutsy main
deb http://switch.dl.sourceforge.net/sourceforge/bibus-biblio ./
deb-src http://switch.dl.sourceforge.net/sourceforge/bibus-biblio ./

Revision history for this message
Caroline Ford (secretlondon) wrote :

I would comment out the unsupported repositories, and try with a different mirror.

Revision history for this message
mercutio22 (macabro22) wrote :

Ok. Done that. Hasn't helped. I will try removing the BrOffice.org package before hitting the upgrade button now.

Revision history for this message
mercutio22 (macabro22) wrote :

hmmm... nope.

It really seems like a bug don't you think?

Revision history for this message
mercutio22 (macabro22) wrote :

htorres@GLaDOS:~$ apt-cache policy update-manager
update-manager:
  Installed: 1:0.81.2
  Candidate: 1:0.81.2
  Version table:
 *** 1:0.81.2 0
        500 http://archive.ubuntu.com gutsy-updates/main Packages
        100 /var/lib/dpkg/status
     1:0.81 0
        500 http://archive.ubuntu.com gutsy/main Packages

Revision history for this message
mercutio22 (macabro22) wrote :

I just want to be clear at what point update-manager becomes unresponsive. Please check the attached picture.

Revision history for this message
Ivo Mans (ivomans) wrote :

My upgrade got stuck at exact same point as macabro22 describes.

I'm upgrading from a Gutsy i386 .

Changed in update-manager:
status: New → Confirmed
Revision history for this message
Ivo Mans (ivomans) wrote :

Possibly relevant additional information: my main.log states it is doing a doUpdate().

Revision history for this message
mercutio22 (macabro22) wrote :

Yeah, Same here.

Revision history for this message
Michael Vogt (mvo) wrote :

@macabro22: Could you please attach your logs file /var/log/dist-upgrade/main.log please?

Revision history for this message
mercutio22 (macabro22) wrote :

Michael, I already did in the previous post.

I solved my issue by doing a fresh install from Hardy's Live DVD. The installation process went flawlessly and I was able to preserve all my desktop layout by manually partitioning the hard drive and importing user settings.

The installation erased my old system files, so I can't post any more recent logs, sorry.

Thanks for your concern!

I

Revision history for this message
Ivo Mans (ivomans) wrote :

@macrabro22: congratulations that you found your way around this problem.

My system is still unchanged: if any additional information is required, please let me know.

Think the solution from macrabro22 is not suitable for less experienced users. Guess macrabro22 and I are not the only persons in the world having this problem, so I hope this issue can still be solved.

Revision history for this message
Michael Vogt (mvo) wrote :

@macabro22: sorry, I overlooked the main.log in the earlier comment (or looked at a older launchpad page, not sure)

@Ivo: could you please attach your /etc/apt/sources.list? I suspect it might hang on some unreachable network source.

Revision history for this message
Ivo Mans (ivomans) wrote :

After initial failure I already commented out the last line, referring to the skype repository. But with no improvement.
Just updated the update-manager (1:0.81.3), but still same result.

Revision history for this message
Michael Vogt (mvo) wrote :

@Ivo: thanks for the sources.list

Could you please download http://people.ubuntu.com/~mvo/update-manager/release-upgrader-0.87.26-debug.tar.gz and download it to a temp directory (e.g. ~/test-upgrade).

Then unpack it and run in a terminal "sudo ./hardy". When it hangs, please wait a few seconds and then press ctrl-c to cancel it and attach the updated /var/log/dist-upgrade/main.log please. It should contain much more information what is going on.

Thanks (and sorry for the trouble),
 Michael

Revision history for this message
Ivo Mans (ivomans) wrote :

@Michael: thanks for your concern.

Just tried as per your instructions. I could not abort with the ctrl-c, leaving me to use a 'sudo killall hardy' from a second terminal.
Attached the resulting main.log. It only shows a few additional lines.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks a lot for running the test release-ugprader. I'm still searching what might cause it and did another version with even more debug output :) Could you please run the following one in the same manner as the previous one? And attach the logs then?

http://people.ubuntu.com/~mvo/update-manager/release-upgrader-0.87.26-debug2.tar.gz

Thanks!
 Michael

Revision history for this message
Ivo Mans (ivomans) wrote :

Hope this information helps.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks again! I think we are gettig closer :) I put another tarball up now:

http://people.ubuntu.com/~mvo/update-manager/release-upgrader-0.87.26-debug3.tar.gz

it contains even more debug code and a possible fix (fingers crossed :)

Please let me know how if that tarball works and if not, please include the main.log file.

Thanks,
 MIchael

Revision history for this message
Ivo Mans (ivomans) wrote :

Michael, your possible fix has no effect to my system. But at least I've got a longer main.log for you now.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks again for the test. Here is the next tarball:

http://people.ubuntu.com/~mvo/update-manager/release-upgrader-0.87.26-debug4.tar.gz

This is definitely a tricky problem, it hangs at a place where it should be pretty much impossible and I'm currently trying to figure out how this can happen. The new log is even more detailed, I changed the code again so that it might fix the issue (but that is less likely).

If it still hangs, can you think of anything special in your gtk configuration? A theme maybe or use of something like the gutsy-backports repository etc? I would love to be able to reproduce the problem here.

Thanks, your help is really appreciated!

Revision history for this message
Ivo Mans (ivomans) wrote :

Just tried your latest version. Unfortunately still no result. Attached the new main.log.

I also tested with Visual Effects = None, but still same result.

As far as I could think of I don't have anything extraordinary on this system. All I could think of is that I'm using the proprietary nvidia driver. From non-ubuntu repositories there is only the skype package and a libdvdcss2. Doesn't seem anything special. Theme is the default Human.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks again for the log! What locale do you use? Maybe that is the missing bit here.

So it looks like it runs:

pending = gtk.events_pending() [=1]
res = gtk.main_iteration_do(False) [=True]
pending = gtk.events_pending() [=1]
res = gtk.main_iteration_do(False) [ HANG ]

and hangs there.

Could you please run the latest tarball with strace? Run (in a terminal and in the dir where -debug4.tar.gz was extracted):
$ sudo strace -o trace-simple python dist-upgrade.py

and then kill -9 it and upload the file trace-simple ?

Ant then repeat the same with the "-f" switch (as shown below):
$ sudo strace -f -o trace-with-subprocesses python dist-upgrade.py

and upload the file trace-with-subprocesses ?

Thanks,
 Michael

Revision history for this message
Michael Vogt (mvo) wrote :

(its probably best to gzip the files, they are probably large :)

Revision history for this message
Michael Vogt (mvo) wrote :

Please try:

http://people.ubuntu.com/~mvo/update-manager/release-upgrader-0.87.26-debug5.tar.gz

first before you run the strace, it disables some code, I'm curious if that fixes the hang or not. If it does fix the hang, the strace is not needed anymore :)

Revision history for this message
Ivo Mans (ivomans) wrote :

Michael, still no success. But attached the trace files for both debug4 and debug5.

My locale: en_US.UTF-8.

Revision history for this message
Fernando (bocadillodeatun) wrote :

Hi.
I can reproduce the exact same problem (running Ubuntu on a PowerPC). So, in case you need more traces from a different system, just let me know.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks, I'm currently trying to gather more data about it. I wonder if it helps if you switch to a different theme or (if you use a nvidia driver) switch to the free "nv" driver instead. I currently suspect its a bug in python and/or gtk that update-manager triggers.

Revision history for this message
Ivo Mans (ivomans) wrote :

I just changed theme from Human to Clearlooks and tried with your debug5: the upgrade process is getting several steps further now! Unfortunately it still became unresponsive a couple of steps later. Repeated attempts resulted in stop at same new place, see attached main.log.

Revision history for this message
Ivo Mans (ivomans) wrote :

Just gave it a try with the nv driver: exactly same result.
Although Human and Clearlooks stop at a different point both situations are with a progressbar at approx. 99% full. Could this be related? See also attached screenshot and you could compare it with the previous screenshot from macabro22.

Revision history for this message
Michael Vogt (mvo) wrote :

After some more investigation I was able to reproduce a similar hang as described here with a similar strace pattern. Could you please try http://people.ubuntu.com/~mvo/update-manager/release-upgrader-0.87.26-debug6.tar.gz and see if that works for you and does not hang? It worked in my tests but my test-setup is a bit artificial as I can not reproduce the hang on a normal machine. Feedback is very welcome.

Revision history for this message
Michael Vogt (mvo) wrote :

Here is a another build that (hopefully) fixes the issue:
http://people.ubuntu.com/~mvo/update-manager/release-upgrader-0.87.27-test2.tar.gz

Please give it a go and let me know if it helps. If so, I will do a SRU with the fix.

Revision history for this message
Ivo Mans (ivomans) wrote :

Test2 version seems fine. I reached the "Do you want to start the upgrade" dialog without a problem. Cancelled the upgrade for now so I could do further testing if you need me to, but it looks like you solved it.

BTW: debug6 was not working.
BTW2: My system is now back on Human theme with nvidia driver.

Michael, thanks for all your efforts. Looks like you solved it now.

Revision history for this message
Fernando (bocadillodeatun) wrote :

I also confirm this. With the "test2" version I've been able to complete the upgrade. Thanks!

Changed in update-manager:
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Michael Vogt (mvo) wrote :

Thank you very much for the help with fixing this bug! The fix is in hardy-updates now and is used automatically.

Revision history for this message
einfeldt (einfeldt) wrote :

I am having the same trouble as the original poster. My Hardy Ubuntu update hangs while displaying "configuring akiradnews" under the thermometer bar, and in the black box showing the terminal, the message reads "Setting up akiradnews (20080629)".

At the same time, Firefox automatically launches and takes me to

http://akiradproject.net/repository

which has some tips on how to install Cinelerra on Hardy, but not how to deal with the problem of a hanging update manager. I have no idea how to deal with this hanging update manager, and I hope that I won't break my system, as I have no idea as to how to proceed from here. I will post my steps back to this site when I figure something out.

Christian Einfeldt,
Producer, The Digital Tipping Point

Revision history for this message
einfeldt (einfeldt) wrote :

There is a simple solution for the hanging updater under Hardy (GNOME). Just close the Firefox window with this page:

http://akiradproject.net/repository

When I closed that page, the updater finished. It was that simple.

Revision history for this message
einfeldt (einfeldt) wrote :

With regard to the underlying problem, this solution was provided to me by Daniel Gimpelevich of the SF-LUG list, and it seems to work fine, although I have not fully tested it. Meaning that I have not thrown a lot of different tasks at Cinelerra. I wanted to post this solution here before I closed my terminal and forgot where I saved the txt file, etc:

cje@tbb:~$ sudo wget -O /etc/apt/sources.list.d/akirad.list http://akirad.cinelerra.org/dists/hardy.list
[sudo] password for cje:
--16:38:35-- http://akirad.cinelerra.org/dists/hardy.list
           => `/etc/apt/sources.list.d/akirad.list'
Resolving akirad.cinelerra.org... 78.47.64.243
Connecting to akirad.cinelerra.org|78.47.64.243|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 196 [text/plain]

100%[=============================================================================================================>] 196 --.--K/s

16:38:36 (15.93 MB/s) - `/etc/apt/sources.list.d/akirad.list' saved [196/196]

cje@tbb:~$

---
Christian Einfeldt,
Producer, the Digital Tipping Point

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.