Results 1 to 4 of 4

Thread: Is there a way to restart apt

  1. #1
    Join Date
    May 2009
    Location
    Australia
    Beans
    110
    Distro
    Ubuntu 10.04 Lucid Lynx

    Is there a way to restart apt

    I have two sources.list file. A sources.list.proxy and a sources.list.noproxy, the first of wich points to apt-cacher on my home server and the other wich points directly to the regular repo's.

    I have wicd run a script when i connect and disconect from my home network. One of the tasks being cp sources.list.proxy sources.list on connect and sources.list.noproxy sources.list on disconnect. However the repo's apt-get uses does not change until i restart my machine, clearly not a good solution. Is there a way of just restarting apt?

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Is there a way to restart apt

    after you switch the files, you have to run:
    Code:
    sudo apt-get update

  3. #3
    Join Date
    May 2009
    Location
    Australia
    Beans
    110
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Is there a way to restart apt

    That worked great. Thank you sisco311.

  4. #4
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Is there a way to restart apt

    Quote Originally Posted by chrisbay90 View Post
    That worked great. Thank you sisco311.
    You're welcome!


    Please mark this thread as [SOLVED].

    At the top of the page, click the "Thread Tools" Menu and then "Mark this thread as Solved".

    Thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •