What does "uncomment" mean?

Asked by Randymanme

In the following excerpt from a terminal, directions are given twice to “Uncomment the following two lines . . ..” Well, which two lines, literally the two lines following or the next two lines that don't have pound signs (#) in front of them? Somone once told me (re another question) to “uncomment” a line by putting a pound sign in front of it. So does uncommenting a line just mean removing a pound sign from in front of it or do I need to remove both pound signs?

I know this is real simple; but if I don't know, I just don't know.

#

# deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted

# deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ jaunty main restricted

## Major bug fix updates produced after the final release of the

## distribution.

deb http://us.archive.ubuntu.com/ubuntu/ jaunty-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://us.archive.ubuntu.com/ubuntu/ jaunty universe

deb http://us.archive.ubuntu.com/ubuntu/ jaunty-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://us.archive.ubuntu.com/ubuntu/ jaunty multiverse

deb http://us.archive.ubuntu.com/ubuntu/ jaunty-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://us.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

# deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-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 jaunty partner

deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://security.ubuntu.com/ubuntu jaunty-security main restricted

deb http://security.ubuntu.com/ubuntu jaunty-security universe

deb http://security.ubuntu.com/ubuntu jaunty-security multiverse

deb http://us.archive.ubuntu.com/ubuntu/ jaunty-proposed restricted main multiverse universe

deb http://packages.medibuntu.org/ jaunty free non-free

deb http://wine.budgetdedicated.com/apt jaunty main #WineHQ - Ubuntu 9.04 "Jaunty Jackalope"

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Tom
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Yes, in Linux, a # sign means ignore the line (in some files it doesn't (like menu.lst) so you will find some people using ##, this is also fine)

So to uncomment, simply delete the unnecessary # characters on the lines you wish to not be comments and actually be read by whatever system is reading the file

You will also notice the last line has a comment too

Revision history for this message
Randymanme (randall43215) said :
#2

Thank you very much.

So what four (?) lines do I uncomment? I only see one: # deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse that looks to me like it needs to be uncommented before coming to the second direction to uncomment another following two lines.

And then following the second uncomment directive, I only see one # sign -- in the last line.

Or are the two "uncomment" directives referring to the same two lines?

As always, thank you for your help.

Randall

Revision history for this message
Randymanme (randall43215) said :
#3

Compaq Presario 543OUS series 5000
RAM 256Mb; Clock 1.8 Gb
Hard Drive 30 Gb
16X Max* DVD-ROM; CD-RW
NVIDIA accelerated graphics driver (version 96) (recommended) [disabled]
Ubuntu 9.04; Ff 3.5.2

Revision history for this message
Federico Vera (fedevera) said :
#4

If what you posted is your actual sources.list file, you don't need to uncomment anything, the lines are already uncommented (This could been done by a package manager, may be "synaptic" or "software origins"). In case you wanted the source repositories (the repos that contain the source code of the packages), you'll need to uncomment this line:

# deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

which is to say it should look like this:

deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

Note that if you are not a developer you won't be needing this repo. Ahh and one small correction, the # symbol doesn't comment a line, it comments all which is in the right side. For instance as you pointed out in the last line of your sources.list:

deb http://wine.budgetdedicated.com/apt jaunty main #WineHQ - Ubuntu 9.04 "Jaunty Jackalope"

In this case the repo is "active" and the commentary applies to the string on the immediate right of the # in this case WineHQ - Ubuntu 9.04 "Jaunty Jackalope"

Hope that helps

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Depends entirely on what repos you wish to use. If you want access to them then uncomment them. The commented ones will NOT be used by package apps like apt-get, synaptic, aptitude etc.

Revision history for this message
Best Tom (tom6) said :
#6

HI

This messing around with your sources.list is very admirable but perhaps is over-reaching yourself right now. The comment-out sections seem very badly constructed. A number of times it says to "uncomment the following 2 lines" but then continues to write stuff that is blatantly comments and fairly useless to the machine. I think the only line that is currently commented-out that might be useful to uncomment is the line

# deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

but the 2 lines at the very beginning of that whole sources.list

# deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted

# deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted

might also be useful to uncomment although they specifically refer to specific CDs which you may not have. Also i am not sure that you really want to uncomment the "backports" line either. to uncomment any of these lines you just need to delete the # mark from the start of the line - which would make the lines look like this

deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted

deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted

However you would need to be doing this as root/SuperUser of course, so use "sudo" at the front of whichever line opened the sources list or otherwise you just wont be able to save any changes.

I recommend avoiding this route entirely, use a gui when you can until you are more comfortable with the command-line (err, does this line make any sense, how can anyone become more familiar with something except by using it ;) lol) See the first screenshot in this guide
https://help.ubuntu.com/community/Repositories/Ubuntu#Adding%20Repositories%20in%20Ubuntu
then use this link to help add a CD which you have in the Cd/dvd-drive in your machine
https://help.ubuntu.com/community/Repositories/Ubuntu#Adding%20Canonical%20Partner%20Repositories

Alternatively if you are just trying to sort out all your multimedia then this guide helps make sure you don't miss any crucial steps
https://help.ubuntu.com/community/Medibuntu

Good luck and regards from
Tom :)

Revision history for this message
Tom (tom6) said :
#7
Revision history for this message
Randymanme (randall43215) said :
#8

Thanks Tom, that solved my question.

Revision history for this message
Tom (tom6) said :
#9

Brilliant, nicely done :)))
Regards from
Tom :)

Revision history for this message
Randymanme (randall43215) said :
#10

I Thank you all very much. I've only had my own computer for about 3 months and these months have been the beginning of some good learning. I shudder to think that I could still be missing out on all of this like I had been for many years.

Oh, sure, I've used computers at libraries and social clubs, and the like, for many years; but now is the first time that I've been exposed to what goes on "under the hood," so to speak, and it is fascinating. It is the Linux and Ubuntu communities that make it fascinating. If I had to go it alone, it would be rather dull and frustrating for me.

I can only trust that the many thoughtful, inventive, and considerate answers and responses that I've received will remain, archived on these cyber-pages, for years to come. They will be like keepsakes for me.

In closing this message, I want to add that while some times one answer stands above the rest, overall it's the gestalt of the whole mix that makes the best one clearer and more understandable. Thank you Tom, Federico, and Actionparsnip.

Randall

Revision history for this message
Tom (tom6) said :
#11

Hi, thanks :)))

We do try to work together to cover issues the other answerers may have missed or to help clarify an answer that someone else has made. That's often done in a style more like a family, complete with arguments and all. Welcome into the linux family, especially the Ubuntu branch ;)

Once a question has been marked as solved in Launchpad it automatically gets added to the "Solved Answers" database. Try asking a new question with the same title and this thread should pop-up as the top of the list of "most similar" solved questions. Also the Solved Answers seems to be fairly searchable, see the search tool at the far top right-hand corner? I am not sure how long these questions stay lurking around in the database for bu have found some from several years ago on occasion. Makes me feel quite embarrassed about some of my answers <shudders> lol

Hopefully you will soon find yourself answering questions in here as we are all (almost all) volunteers and it's beginning to look as though you already know more than most people asking questions about the sources list ;)

Good luck, have fun and enjoy linux
Regards from
Tom :)

Revision history for this message
Tom (tom6) said :
#12

Hi :)

Have you been able to try the new Ubuntu 10.04 before it gets officially released?
http://www.ubuntulinux.org/testing/lucid/beta2
Trying it as a LiveCd or as an extra dual/multi-boot would be ideal. Developers and everyone are keen to try to iron out any problems before 10.04 gets officially released so you might find faster & more effective answers to your bug reports which would make 10.04 work better on your system for you

Thanks and regards from
Tom :)