I'm trying to capture all of the terminal output during an "inin-place"place upgrade of my Debian system. Here's the command I've tried to use:
$ sudo apt full-upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" --purge --auto-remove | tee upgrade_log.txt The upgrade process starts and runs OK -- for a while. ButAfter some time, there is a dialog (ncursesncurses-based, I think) that appears some time after the upgrade begins. The problem is that I cannot use my keyboard to navigate the dialog; therefore the process "justjust sits there"...there; the upgrade process is stalled, and I effectively lose control of the terminal and the process.
I think this is a result of the pipepipe to tee that I've appended to the end of the apt full-upgrade command. The command runs successfully to conclusion, andIf I can interact with the dialog when thedo pipenot pipe to tee is, the command runs successfully to conclusion notand appended toI can interact with the commanddialog.
However - theThe command generates a tremendous amount of output, and I'd like to have a copy of it to peruse, and to guide my efforts to "clean up"clean up afterwards.
I've looked at the teetee docs, but do not see a solution. Is there no way to use teetee to capture all of the terminal output to a file, and prevent it from interfering with the correct function of the dialog?