Unable to run do-release-upgrade under script(1) because of a need to clear the screen
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
I like to do system updates under script(1) and have a collection of bash aliases to do these things and log the script output. Otherwise all that stuff scrolls by with no chance for me to use it later.
I just tried to update my system to 18.04, and it failed with the following output:
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]
Get:2 Upgrade tool [1,263 kB]
Fetched 1,264 kB in 0s (0 B/s)
authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg'
extracting 'bionic.tar.gz'
Clear screen capability required.
This seems onerous to me. What's the point of generating output if there's no way to learn from it, refer to it, or remember it?
[Workaround]
As a workaround dropping the TERM=dumb bit does allow the upgrade to proceed and produces the typescript, albeit an ugly one:
script -c 'do-release-
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 4.4.0-141-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
CrashDB: ubuntu
Date: Tue Jan 1 14:18:02 2019
InstallationDate: Installed on 2016-08-08 (876 days ago)
InstallationMedia: Xubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
PackageArchitec
SourcePackage: ubuntu-
UpgradeStatus: Upgraded to xenial on 2019-01-01 (0 days ago)
This is still a problem upgrading to 22.04.
Grrr.