2

I'm viewing /var/log/apt/term.log because the ssh session closed while it was running and my apt-get upgrade is prompting for input, but because I'm viewing the log I can't give input. What are my options to proceed? Posted below is a photo of the predicament.

enter image description here

2

To finish the upgrade, which had reached the setup phase, run

dpkg --configure --pending

You might need to run the upgrade again too, if the package upgrades were split into multiple sets.

If either of these complains about locks, kill any running dpkg and apt-get processes and try again. (They would typically have been killed when the SSH session terminated.)

Then install screen or tmux and use them to run your upgrades in the future, that way you’ll avoid this situation.

  • Probably should mention killing dpkg if it's still running from before (which should result in a failed to obtain lock error) – derobert Jan 11 at 19:25
  • I wouldn’t expect it to still be running, but yes, I might as well mention it, thanks! – Stephen Kitt Jan 11 at 19:29
0

Just kill it and run it again. Next time use termux or non-Interactive

export DEBIAN_FRONTEND=noninteractive
apt -y ...

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.