Breezy Trick

Stephen R Laniel steve at
Thu Jun 30 16:01:22 UTC 2005

On Thu, Jun 30, 2005 at 11:50:38AM -0400, Sean C Sieger wrote:
> apt-get update
> apt-get upgrade (not dist-upgrade, right?)

Those are the commands you want to run; that's right. Those
are the ones I ran.

> And I certainly wish that I knew how (where and when) to redirect the
> errors so that I may post them if needed (I am almost looking forward
> to communicating with the list from console). Or are you talking about
> posting a log? Which log would I need to post?

I would post the output from the apt-get upgrade.

Here's how I normally do it:

1) Do a regular apt-get upgrade without capturing the

1a) Something goes wrong -- I get an apt-get upgrade error
telling me that one package or another failed to install
correctly. Installation aborts.

2) I run apt-get upgrade again, this time capturing the
errors (because the installation will still have the same
errors, in all likelihood, that it did in step 1a)):

sudo sh -c "apt-get upgrade 2>1 1> ~/apt-get.log"

I have not tested the above command, so you may need to
experiment a bit. The 'sh -c' bit gets around the
difficulties of 'sudo' interacting with '>'.

Assuming that command worked all right, you've now got
whatever errors you encountered in ~/apt-get.log.

(Sometimes I'll run the apt-get command from within
vim and have the errors spat directly into my document, via

:r !sh -c "apt-get upgrade 2>1 1> ~/apt-get.log"


That's the basic gist. Good luck, and we're here to help.

Stephen R. Laniel
steve at
+(617) 308-5571
PGP key:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <>

More information about the ubuntu-users mailing list