How to fix the sources list

Sometimes the apt-get may not work, it is often caused by the misspelled sources list. In most cases, you can fix it by yourself.

In this guide, I will tell you where is sources list, and how to fix it.

Where  is sources list

Sources list is located at “/etc/apt/” (File System->etc->apt), the main sources list is “sources.list”. And there will be other sources list under /etc/apt/sources.list.d/, all valid list should be end with “.list”.

How does sources list look like

If you open your sources.list, a typical line will look like this:

deb http://archive.ubuntu.com/ubuntu natty main restricted

It is called an “Entry”, sources list is consists of a numbers of entries.

Every entry is made by four sections, these sections are separated by “space”. I used different color to distinguish difference sections.

The first section is represent the “Entry type”. “deb” means the list contains deb packages. Another value is “deb-src”, it means the deb packages’ source code.

The second section is the URL, it must be accessible.

The third is distribution code name, it depends on your current distribituion.

The forth section is the “components”, it can be several items.

So a complete and valid source entry will look like this:

  • Type: must be “deb” or “deb-src”
  • URL: must be an accessible url
  • Code name: “karmic”, “lucid”, “maverick” or ther Ubuntu code names.
  • Component name: if the entry is PPA, so it will always be “main”.

Now you know how to fix the sources list! Open your terminal, try to edit and correct it with root like this:

sudo gedit /etc/apt/sources.list (or other path)

If you have any other problem, please leave a comment to let me know.

73 thoughts on “How to fix the sources list

  1. A basic package plan some videographers set up usually includes just
    the ceremony and the highlights of the reception. These ideas are far from the ordinary wedding day, just
    imagine that wedding album. There are also wedding blogs and wedding forums, places couples can visit to find answers
    to many of their pressing and not so pressing questions.

  2. Good day I am so glad I found your website, I really found you by error, while I was browsing on Askjeeve for something else, Nonetheless I am here now and would just like to say cheers for a incredible
    post and a all round entertaining blog (I also love the theme/design), I don’t have time to read it all at the minute
    but I have bookmarked it and also added your RSS feeds, so when I have time I will
    be back to read more, Please do keep up the superb work.

  3. Attractive section of content. I just stumbled upon your
    website and in accession capital to assert that I acquire actually enjoyed account your
    blog posts. Any way I will be subscribing to your augment and even I
    achievement you access consistently quickly.

    my web site :: Turbulence Training 2.0 (Janis)

  4. Diovan is a drug that is purposed to meet and cure all heart disorders and
    provide a noticeable, significant decrease in heart
    risk inndicating factors. Thyroid problems are caused by such
    followings: First of all, all types of hyperthyroidism are owing to overproduction of thyroid hormones aand centering the point
    several other problems can additionally be caused, such as:-.
    Karolinska Institutet in Stockholm, Sweden reported on Nov.

    Also visit my homepage; find Selby cardiologist

  5. Thus you have to look after your laptop well, as it is considered fragile.
    fotocopiatrici che svolgono molteplici lavori
    contemporaneamente. You can create a call and order assistance along with their agents will visit you your own house and repair your systems.

  6. They are responsible for what is known as “runner’s high”.

    Besides, there were still live flesh and fur around
    high of the bones, so anything I kept would smell to high
    heaven forever. HGH injections will be the most powerful way of getting additional Human Growth Hormone as part of your body.

  7. Check out your cool array of extras, like the ce3 clearomiser and more.
    At the finish the cigarette, you will find there’s small blue ball like object.
    Cheap selection for smoking: electronic cigarette kit had
    turned out to be reduce the burden on the pocket of the smoker mainly because
    it can be recharged while using cartridges of tobacco and
    nicotine and batteries.

  8. I do believe all of the methods you might have shown for the write-up. These are incredibly genuine and might undoubtedly operate. Nevertheless, the actual content have become easy for beginners. May you desire prolong these folks a bit out of next occasion? Appreciation for a write-up.

  9. It is never your fault if you are born with a small penis, however it is a sin while you’re given ways to develop your organ yet you ignore them. Yes, it holds true, the way you make love is more important than what you used to make love.

  10. To choose right one you have to be aware of the current
    changes and availability of new features. This seller only offers shoes for women, so men are out on this one.

    Apgujeong Rodeo Street is the leading fashion mecca, formed as a cultural zone with a high propensity for consumption.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>