LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   The original /etc/apt/sources.list (https://www.linuxquestions.org/questions/linux-software-2/the-original-etc-apt-sources-list-4175424508/)

pwabrahams 08-28-2012 10:13 PM

The original /etc/apt/sources.list
 
I'm trying to find the original, unmodified /etc/apt/sources.list file for Kubuntu 12.04 (or Ubuntu 12.04). I'm referring to the one that is found in a newly-installed system. I've found lots of information on how to modify the file, but nothing on where to find the virgin version of it. It doesn't seem to be in any package.

And I'm curious: what agent is responsible for creating that original file?

vtel57 08-29-2012 12:22 AM

Here you go!

http://www.tuxgarage.com/2011/01/res...-defaults.html

Have fun! :)

pwabrahams 08-29-2012 12:42 AM

Solves the immediate problem, but I'd like more
 
The source list generator is neat and does solve the problem, but it doesn't quite answer my question. The original sources.list that somehow got onto my system included a bunch of comments which aren't in the generated list. And I'm still wondering where the list that appears in a newly installed system comes from, since it doesn't appear to be in any package.

vtel57 08-29-2012 01:01 AM

That, my friend, I cannot answer. :(

Are these possibly the commented lines you mean?

Quote:

#deb cdrom:[Ubuntu 12.04 _Precise Pangolin_ - Release i386]/ Precise main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://gb.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise universe
deb http://gb.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://gb.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Medibuntu - Ubuntu 12.04 "Precise Pangolin"
## Please report any bug on https://bugs.launchpad.net/medibuntu/
deb http://packages.medibuntu.org/ precise free non-free
deb-src http://packages.medibuntu.org/ precise free non-free

# Google software repository
deb http://dl.google.com/linux/deb/ stable non-free

evo2 08-29-2012 01:25 AM

Hi,

I'm so not familiar with the Ubuntu installer, but at least on Debian the initial /etc/apt/sources.list is generated during the install process by apt-setup. It is probably something similar in Ubuntu, but to be sure you'd need to poke around in the installer code.

Evo2.

pwabrahams 08-29-2012 07:08 AM

The commented version is the one I was looking for
 
@vtel57, the commented version is precisely ;) the one I was asking about. So apt-setup does the deed during installation. That's plausible!! Interestingly, apt-setup isn't in Synaptic's package list for Kubuntu.

snowday 08-29-2012 08:39 AM

A little late to the party but a good habit to get into is making a .bak backup of system files before you edit them.

vtel57 08-29-2012 11:01 AM

Quote:

Originally Posted by pwabrahams (Post 4767298)
@vtel57, the commented version is precisely ;) the one I was asking about.

Glad we could help! :)


All times are GMT -5. The time now is 05:54 AM.