Results 1 to 8 of 8

Thread: sources

  1. #1
    Join Date
    Jul 2020
    Beans
    1

    sources

    What decides where ubuntu will look for sources -> /etc/apt/sources/ or /etc/apt/sources.list.d/ ? How to prevent double sources same application/program which sudo apt-get update complains about. Should one choose one type of installation over the other? Like sudo apt-get install or dpkg in order to avoid double set of sources?
    Last edited by olavh70; July 11th, 2020 at 04:28 PM. Reason: updating better question + grammar

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    11,454
    Distro
    Ubuntu

    Re: sources

    If proper list files are in the proper locations it looks at all of those.
    The is done by apt.
    I'm not sure if it's hardcoded or if a configuration file does this.

    If you have double entries/duplicates then you need to remove the duplicate entries.

    Use apt over dpkg.
    dpkg is low-level, as it does the actual package installation.
    But it does not handle downloading package and does not handle package dependency issues.
    apt does both.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    May 2010
    Beans
    567

    Re: sources

    Easy, don't add duplicates. There is a main sources.list file but add-apt-repository likes to make files in /etc/apt/sources.list.d
    You could just have all your sources in the usual sources.list file and it'd be exactly the same. Breaking it out into files just makes it easier to manage as you can delete a file and remove a source. If duplicates exist in any of the files then the package system will complain.

  4. #4
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    7,904
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: sources

    To aid in understanding, that kind of change is fairly common. It's not specific to apt.

    Some application or framework is configured by a single configuration file and, at some point, that gets unwieldy to manage. Things are then amended so that the application or framework will read from both blah.conf and any similarly-formatted files in blah.conf.d, and combine them into one configuration at runtime. You'll find examples all over your install, xorg.conf.d being the other significant one.

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

    Re: sources

    This is what the man page says:

    SOURCES.LIST.D
    The /etc/apt/sources.list.d directory provides a way to add
    sources.list entries in separate files.
    The contents of this directory are not a copy of the apt directory. If an application has its own repository and the location file has the suffix .list then that file will end up in the apt/sources.list.d directory. On my system I have in that directory google-chrome.list and google-chrome.list.save and this is because I have google chrome installed.

    I guess this is a way of avoiding the operating system's sources.list file from becoming even more complicated. I think that the files in apt/sources.d are not vital for the updating of the operating system as is the case with the information in the sources.list file itself.

    Regards
    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


  6. #6
    Join Date
    Feb 2010
    Location
    United Kingdom
    Beans
    65
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: sources

    I have a problem with duplicate sources when running apt-get update after using Ubuntuzilla to update my UbuntuGnome 14.04 repositories for the latest Firefox (ver. 80).

    Can anyone here help me remove these or solve the problem?

    The terminal is showing this:

    W: There is no public key available for the following key IDs:
    CCC158AFC1289A29
    W: Duplicate sources.list entry http://downloads.sourceforge.net/pro...a/mozilla/apt/ all/main amd64 Packages (/var/lib/apt/lists/downloads.sourceforge.net_project_ubuntuzilla_mozi lla_apt_dists_all_main_binary-amd64_Packages)
    W: Duplicate sources.list entry http://downloads.sourceforge.net/pro...a/mozilla/apt/ all/main amd64 Packages (/var/lib/apt/lists/downloads.sourceforge.net_project_ubuntuzilla_mozi lla_apt_dists_all_main_binary-amd64_Packages)
    W: Duplicate sources.list entry http://downloads.sourceforge.net/pro...a/mozilla/apt/ all/main i386 Packages (/var/lib/apt/lists/downloads.sourceforge.net_project_ubuntuzilla_mozi lla_apt_dists_all_main_binary-i386_Packages)
    W: Duplicate sources.list entry http://downloads.sourceforge.net/pro...a/mozilla/apt/ all/main i386 Packages (/var/lib/apt/lists/downloads.sourceforge.net_project_ubuntuzilla_mozi lla_apt_dists_all_main_binary-i386_Packages)

  7. #7
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    28,906
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: sources

    Hello michael2009, please start your own thread instead of posting in someone else's that way you and the OP of this thread can both get the help individual help you need.

    Thanks

  8. #8
    Join Date
    Feb 2010
    Location
    United Kingdom
    Beans
    65
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: sources

    Quote Originally Posted by wildmanne39 View Post
    Hello michael2009, please start your own thread instead of posting in someone else's that way you and the OP of this thread can both get the help individual help you need.

    Thanks
    OK. Not my intention to crash someone else's thread, I just thought the thread was relevant to my problem, and looking for answers here. Will post a new thread anyway.

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
  •