Results 1 to 7 of 7

Thread: apt-get update with approx: sources.list and approx.conf are messed up

  1. #1
    Join Date
    Jun 2008
    Location
    Ottawa, Canada
    Beans
    47
    Distro
    Ubuntu 12.04 Precise Pangolin

    apt-get update with approx: sources.list and approx.conf are messed up

    For months I have not been able to apply updates. I get no end of '404 Not Found', 'Ign' and 'Failed to fetch' errors whenever I try 'apt-get update'.
    I have tried deleting everything in /var/lib/apt/lists, /var/lib/apt/lists/partial, and approx-cache. I've run 'apt-get clean' and 'approx-gc -v'.

    Here are my latest efforts:

    /etc/apt/sources.list:
    Code:
    deb http://localhost:9999/base/ precise main restricted universe multiverse
    deb http://localhost:9999/base/ precise-security main restricted universe multiverse
    deb http://localhost:9999/base/ precise-updates main restricted universe multiverse
    deb http://localhost:9999/partner precise partner
    deb http://localhost:9999/extras precise main
    and my approx.conf:
    Code:
    base		http://ca.archive.ubuntu.com/ubuntu/
    partner		http://archive.canonical.com/ubuntu
    extras		http://extras.ubuntu.com/ubuntu
    I'm reminded of the line in that old Rolf Harris song, 'My boomerang won't come back'. "I've practiced 'til I am black in the face ...."

    It used to work just great.

  2. #2
    Join Date
    Aug 2013
    Beans
    86
    Distro
    Xubuntu

    Re: apt-get update with approx: sources.list and approx.conf are messed up

    Could be something about the way Ubuntu handles dnsmasq with localhost lately (see DNS in 12.04).

    I've noticed people discussing it tend to suggest apt-cacher-ng or just squid. Personally, I just copy files into an archive folder and then copy those into the /var/cache/apt/archives just before I update other machines (but then I'm only dealing with a couple of machines here).

  3. #3
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    5,910
    Distro
    Ubuntu Development Release

    Re: apt-get update with approx: sources.list and approx.conf are messed up

    Your sources list directs apt-get to localhost and not to a Ubuntu repository/archive. Is that what you intend?

    My sources list has stuff like this

    deb http://gb.archive.ubuntu.com/ubuntu/ raring main restricted
    deb-src http://gb.archive.ubuntu.com/ubuntu/ raring main restricted
    I am using 13.04 and my updates come from a Ubuntu UK archive. This command will remove/delete all the scripts in /var/lib/apt/lists/

    Code:
    sudo rm /var/lib/apt/list/* -rf
    And this command will replaced them with a fresh set.

    Code:
    sudo apt-get update
    I have used it when I have been unable to update because of missing headers in the package lists. By the way IGN and Not Found messages may be due to PPAs that are not longer being maintained. A Personal Package Archive is useful for installing some software but if the archive is no longer maintained and apt-get cannot find anything at the address then apt-get will give those kind of errors.

    The actual wording of those errors is a clue to what was causing this problem.

    Regards.
    Last edited by grahammechanical; August 31st, 2013 at 08:35 PM.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  4. #4
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: apt-get update with approx: sources.list and approx.conf are messed up

    Please see if these solutions work for you : http://ubuntuforums.org/showthread.php?t=2125671

  5. #5
    Join Date
    Jun 2008
    Location
    Ottawa, Canada
    Beans
    47
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: apt-get update with approx: sources.list and approx.conf are messed up

    That did it.

  6. #6
    Join Date
    Aug 2013
    Beans
    86
    Distro
    Xubuntu

    Re: apt-get update with approx: sources.list and approx.conf are messed up

    So, permissions got messed up in your approx cache?

  7. #7
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: apt-get update with approx: sources.list and approx.conf are messed up

    Glad to see you got it to work

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
  •