Skip to main content
deleted 45 characters in body; edited tags; edited title
Source Link
Jeff Schaller
  • 68.9k
  • 35
  • 122
  • 268

Capturing terminal output from Debian upgrade, but `tee`tee breaks ncurses dialog?

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?

Capturing terminal output from Debian upgrade, but `tee` breaks ncurses dialog?

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. But there is a dialog (ncurses, 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 "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. The command runs successfully to conclusion, and I can interact with the dialog when the pipe to tee is not appended to the command.

However - the command generates a tremendous amount of output, and I'd like to have a copy of it to peruse, and 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?

Capturing terminal output from Debian upgrade, but tee breaks ncurses dialog?

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?

Rollback to Revision 5
Source Link
Seamus
  • 3.9k
  • 2
  • 21
  • 50

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. But there is a dialog (ncurses, 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 "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 pipepipe to tee that I've appended to the end of the apt full-upgrade command. The command runs successfully to conclusion, and I can interact with the dialog when the pipepipe to tee is not appended to the command.

However - the command generates a tremendous amount of output, and I'd like to have a copy of it to peruse, and 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?

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. But there is a dialog (ncurses, 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 "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. The command runs successfully to conclusion, and I can interact with the dialog when the pipe to tee is not appended to the command.

However - the command generates a tremendous amount of output, and I'd like to have a copy of it to peruse, and 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?

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. But there is a dialog (ncurses, 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 "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. The command runs successfully to conclusion, and I can interact with the dialog when the pipe to tee is not appended to the command.

However - the command generates a tremendous amount of output, and I'd like to have a copy of it to peruse, and 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?

Rollback to Revision 3
Source Link
muru
  • 78.4k
  • 16
  • 214
  • 321

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. But there is a dialog (ncurses, 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 "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 pipepipe to tee that I've appended to the end of the apt full-upgrade command. The command runs successfully to conclusion, and I can interact with the dialog when the pipepipe to tee is not appended to the command.

However - the command generates a tremendous amount of output, and I'd like to have a copy of it to peruse, and 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?

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. But there is a dialog (ncurses, 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 "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. The command runs successfully to conclusion, and I can interact with the dialog when the pipe to tee is not appended to the command.

However - the command generates a tremendous amount of output, and I'd like to have a copy of it to peruse, and 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?

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. But there is a dialog (ncurses, 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 "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. The command runs successfully to conclusion, and I can interact with the dialog when the pipe to tee is not appended to the command.

However - the command generates a tremendous amount of output, and I'd like to have a copy of it to peruse, and 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?

the dialog that is breaking tee is an ncurses dialog
Link
Seamus
  • 3.9k
  • 2
  • 21
  • 50
Loading
Rollback to Revision 2
Source Link
Seamus
  • 3.9k
  • 2
  • 21
  • 50
Loading
Became Hot Network Question
pipe is just a word
Source Link
muru
  • 78.4k
  • 16
  • 214
  • 321
Loading
edited tags
Link
Thomas Dickey
  • 79.3k
  • 9
  • 189
  • 290
Loading
Source Link
Seamus
  • 3.9k
  • 2
  • 21
  • 50
Loading