<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thank you Chris<br>
    <br>
    sudo apt-get update > error.txt 2>&1 worked<br>
    <br>
    The error I am getting is:<br>
    <br>
    >sudo apt-get update<br>
    Failed to exec method /usr/lib/apt/methods/http<br>
    Failed to exec method /usr/lib/apt/methods/http<br>
    E: Method http has died unexpectedly!<br>
    E: Sub-process http returned an error code (100)<br>
    E: Method /usr/lib/apt/methods/http did not start correctly<br>
    E: Method http has died unexpectedly!<br>
    E: Sub-process http returned an error code (100)<br>
    E: Method /usr/lib/apt/methods/http did not start correctly<br>
    ><br>
    <br>
    ifconfig shows the network is up and I can ping my router<br>
    <br>
    I have not tried browsing as my mouse does not work when I start X.<br>
    <br>
    I have done a web search<br>
    <br>
    There are two lines in sources.list which may explain why the error
    is repeated<br>
    <br>
    Regards<br>
    <br>
    Kevin<br>
    <br>
    <div class="moz-cite-prefix">On 03/10/12 21:21, Chris Burton wrote:<br>
    </div>
    <blockquote class=" cite"
      id="mid_D6FFF97056404A13B20CB390099F9315_Murphy2"
      cite="mid:D6FFF97056404A13B20CB390099F9315@Murphy2" type="cite">
      <blockquote class=" cite" id="Cite_1" type="cite">Does anyone know
        how to log the output from apt-get.
        <br>
        <br>
        With the following, the output is an empty file:
        <br>
        <br>
        sudo apt-get update > error.txt
        <br>
        <br>
        sudo apt-get update | tee error.txt
        <br>
      </blockquote>
      <br>
      If the output it going to stderr you'll need something like this <br>
      sudo apt-get update > error.txt 2>&1
      <br>
      <br>
      Or using script
      <br>
      <br>
      script  error.txt -c "sudo apt-get update"
      <br>
      <br>
      ChrisB.
      <br>
      <br>
      --
      <br>
      Chris Burton
      <br>
      <a class="moz-txt-link-freetext" href="http://dnshistory.org/">http://dnshistory.org/</a>
      <br>
      <br>
      _______________________________________________
      <br>
      Lincoln mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:Lincoln@mailman.lug.org.uk">Lincoln@mailman.lug.org.uk</a>
      <br>
      <a class="moz-txt-link-freetext" href="https://mailman.lug.org.uk/mailman/listinfo/lincoln">https://mailman.lug.org.uk/mailman/listinfo/lincoln</a>
      <br>
    </blockquote>
    <br>
  </body>
</html>