Announcement

Collapse
No announcement yet.

Upgrade from 20.04 to 22.04 hangs; terminal not interactive

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Upgrade from 20.04 to 22.04 hangs; terminal not interactive

    I got tired of always ignoring the popups saying I needed to upgrade 20.04 (my Fossa was now a fossil...) so I clicked on the Upgrade button in the popup itself, which gave me some kind of terminal window (the tab in the toolbar corresponding to that window said Python3). Occasionally I would get a popup because I had edited some standard config file and was it OK to replace my version with the new version? I'd go into Konsole and make a copy of the file, click OK and continue.

    All went well until it got stuck at "Pregenerating ConTeXt MarkIV format. This may take some time..." Hours later I started searching online, and found this has been a problem for years having to do with the TeX packages -- there are questions on Ask Ubuntu going back more than 6 years!

    All the answers said, "oh that's easy just keep hitting Enter..." but that didn't work in this case. I think the problem for me was that the terminal window that I got with the Kubuntu upgrade was not actually interactive. No amount of hitting Enter helped even though there was a blinking cursor after the "take some time..." text.

    In desperation I killed the window. Then I went to Konsole and typed "sudo dpkg --configure -a" (following the advice in other answers). It would complain about a lock, but helpfully would give the PID of the process owning the lock. It was enough to do "kill -TERM <pid>" but I had to do that THREE TIMES. The dpkg command then worked, and immediately got to the same point (Pregenerating ConTeXt...) but this time, hitting Enter was enough to get past that, since I was in plain Konsole. It finished shortly thereafter. I then had to reboot manually but everything looks OK now. All's well that ends, I guess...

    But the problem here was that the window did not allow text input, other than responding to a popup. Is there a way to interact with this window, or should I just forget about the popup and run the update script within Konsole?

    #2
    Running things in Konsole will generally give you a better feedback = more informations. So if it failed the first time perhaps you can find the problem this way.
    Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
    Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

    get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
    install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

    Comment


      #3
      Yes, I'll probably just use Konsole when I get around to upgrading to 24. I mainly posted this so that 1) developers would know the popup console (at least sometimes) has problems doing the upgrade, for the reasons I explained; and 2) to help anyone who runs into the same issue and is lucky enough to find this post in a search.

      Comment

      Working...
      X