Hy. I was trying to redirect stderr and stdout of 'do-release-upgrade' command with the following command,
sudo do-release-upgrade >>logfile 2>&1
It does only redirect few lines because do-release-update invoke a subshell. So the contents of the subshell is not redirected on that file. So how can I do it? FYI, I am currently using ubuntu 14.04.01. The command above works fine on 16.04