terminal settings messed up after do-release-upgrade run less for you

Bug #1417904 reported by Peter Cordes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
New
Medium
Unassigned

Bug Description

14.04 -> 14.10 went flawlessly, on my nearly-default-install laptop.

The only problem I noticed was when prompted to yN or d for details. After hitting d, return, then exitting from less (without doing anything weird like ^z), the prompt for what to do next wasn't printed. I think somehow the process printing it started line buffering instead of doing unbuffered i/o, because when I did press y, I saw multiple prompts all on the same line. (I think. They linewrapped, and scrolled away quickly. I should have hit ^space [ to enter screen's copy/paste mode, where scrolling is prevented (tty output blocks once the buffer fills up. I love that do-release-upgrade automatically run itself in a screen session.)

 I reproduced it on my desktop (still running 14.04 for now), too. I only had to go as far as having 'do-release-upgrade -d' comment-out all my PPAs in sources.list (which it puts back when you say N to cancel), and download some lists, before the first yN/ [d]etails prompt.

tty echo is still enabled. The less status-line prompt disappears, leaving the last line of the screen empty until you type anything.

The laptop (amd64) ran sudo do-release-upgrade -d from a gnome-terminal tab, running under a stock Ubuntu Gnome desktop.

The desktop (amd64) ran sudo do-release-upgrade -d from a screen session in a gnome-terminal tab, in a fluxbox session.

LANG=en_CA.UTF-8 on the laptop, en_CA.utf8 on the desktop.

copy-pasted from my gnome-terminal after reproducing the bug and pressing return a few times before N<return>:

...
  libunwind-dev libva-drm1 libvisio-0.1-1 libvlccore8 libvncclient0
  libwireshark5 libwiretap4 libwpd-0.10-10 libwpg-0.3-3 libwps-0.3-3
  libwsutil4 libx32asan1 libx32cilkrts5 libx32gcc-4.9-dev
  libx32stdc++-4.9-dev libx32ubsan0 libxcb-xkb1 libxkbcommon-x11-0

N
Continue [yN] Details [d]Continue [yN] Details [d]Continue [yN] Details [d]Continue [yN] Details [d]Continue [yN] Details [d]Continue [yN] Details [d]Continue [yN] Details [d]
Restoring original system state

Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
=== Command terminated with exit status 1 (Wed Feb 4 03:28:41 2015) ===

Revision history for this message
Peter Cordes (peter-cordes) wrote :

Formatting ate the multiple blank lines. There is a blank line for every time I pressed return, before N.

pasted to a file, too, in case anyone didn't fully understand the description.

Changed in ubuntu-release-upgrader (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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