I'm trying to capture all of the terminal output during an in-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. After some time, there is a dialog (ncurses-based, I think) that appears after the upgrade begins. The problem is that I cannot use my keyboard to navigate the dialog; therefore the process just sits 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 pipe to tee that I've appended to the end of the apt full-upgrade command. If I do not pipe to tee, the command runs successfully to conclusion and I can interact with the dialog.
The 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 afterwards.
I've looked at the tee docs, but do not see a solution. Is there no way to use tee to capture all of the terminal output to a file and prevent it from interfering with the correct function of the dialog?
pipe- because it is being used to represent the symbol|. Would you care to explain?braceexpansion" or "colon-separated paths, for example - just "brace expansion" or "colon-separated paths". The same applies here.