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 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.

90 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.

  11. Thanks for your marvelous posting! I definitely enjoyed reading it,
    you happen to be a great author.I will make certain to bookmark your blog and will eventually come back sometime soon. I want to encourage yourself to continue your great job,
    have a nice holiday weekend!

  12. crack software download This is really attention-grabbing, You’re a good excessively skilled tumblr. I have got registered your feed as well as crunches regarding looking for a greater portion of your excellent submit. Moreover, We have shared your web blog in my social networking sites

  13. I’ve been surfing online greater than three hours as of late,
    but I never discovered any fascinating article like yours. It is
    pretty value enough for me. In my opinion, if all webmasters and bloggers made excellent content material as you probably did, the net will probably be a lot more
    helpful than ever before.

    Also visit my web-site … bike race cheats

  14. When someone writes an article he/she maintains the thought of
    a user in his/her mind that how a user can be aware of it.

    Therefore that’s why this post is outstdanding. Thanks!

  15. obviously just like your site but the truth is need to check the punctuational upon a number of of this articles. Some of choices rife using spelling challenges and I to uncover it incredibly problematic to see reality however I am going to unquestionably keep coming back once more.

  16. I was trying to install playonlinux and got an error with <Doctype…. Error on my Ubuntu 14.04 I deleted the /etc/apt/source.list hoping that it get regenerated but it hasn't and the error is still there how can I restore the file

  17. the message give me back is that

    Can’t load fallback CSS resource: Failed to import: La risorsa presso “/org/gnome/adwaita/gtk-fallback.css” non esiste

  18. Hey fantastic website! Does running a blog such as this take a large
    amount of work? I have very little expertise in programming but I was hoping to start my own blog soon. Anyhow,
    if you have any suggestions or tips for new blog owners please share.
    I understand this is off subject however I just needed to ask.
    Thank you!

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>