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?
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?
Comment