[Lincoln LUG] apt-get
Philip Newborough
corenominal at corenominal.org
Wed Oct 3 19:40:59 UTC 2012
On Wed, Oct 3, 2012 at 8:36 PM, Kevin Hall <kevin_hall at ntlworld.com> wrote:
> Hi Everyone
>
> Does anyone know how to log the output from apt-get.
>
> With the following, the output is an empty file:
>
> sudo apt-get update > error.txt
>
> sudo apt-get update | tee error.txt
>
> My raspberry pi will not apt-get update and I am trying to post the output.
>
> Regards
>
> Kevin
>
Hey Kevin :)
Have you taken a look inside '/var/log/apt'? It should contain the
logs. Try something like:
cat /var/log/apt/term.log
or
cat /var/log/apt/history.log
and add redirection as desired.
-- Philip
More information about the Lincoln
mailing list