LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Delete the contents of the files in the sources.list (https://www.linuxquestions.org/questions/linux-newbie-8/delete-the-contents-of-the-files-in-the-sources-list-4175415001/)

upindah 07-05-2012 03:31 AM

Delete the contents of the files in the sources.list
 
At the moment the system created in the ubuntu operating system, the installation is done with "root" by taking the required packages and then copy the folder to ubuntu repository /etc/apt/source.list beforehand, by deleting the contents of the original file is in the file sources.list with command
# sudo mv/etc/apt/sources.list /etc/apt/sources.list.original
then download the ubuntu repository and repository that has been cut in the download directory into the sources.list, with the command:
# sudo cp

then the final step.
# apt-get update upgrade

So the question:
1. do as I have installed Ubuntu, must take the required packages?
2. is the function of these packages??
3. whether to download the repository?
If it should, not influential if the packages are not taken and be downloaded? Since I've been updating. The point I've gone through the process installation sources.list.
4. What is the importance of pairing sources.list?

Knightron 07-05-2012 06:14 AM

Hello, is English your first language because the way you've phrased your information is very tangled, and very hard to understand what you want. I will try to help though.
First let me be clear, i don't know what it is exactly what you are trying to do, but i'm guessing you have screwed up your sources.list and have downloaded a default sources.list which now lyes in your download directory.

For starters:
Quote:

Originally Posted by upindah (Post 4719679)
# sudo mv/etc/apt/sources.list /etc/apt/sources.list.original

This is wrong. It may be a typo but what you will have wanted to do is
Code:

sudo mv /etc/apt/sources.list /etc/apt/sources.list.org
I changed 'original' to 'org' simply because it's easier, but the important part is there's a space between 'mv' and the rest.


Quote:

Originally Posted by upindah (Post 4719679)
# sudo cp

This will achieve nothing. Remember i'm only guessing what you want because you're English is not good, but if i'm guessing correctly, what you desire can be achieved with the following.
Code:

sudo cp ~/Downloads/sources.list /etc/apt/sources.list
then:
Code:

sudo apt-get update && apt-get upgrade
.



Your actual questions are just as hard to understand as the rest of your post, but it seems like you're new to Linux and trying to understand the concepts and what you're doing.

Linux is different to Windows. Linux programs are generally downloaded and installed from a repository which is maintained by the developers of the particular distribution (Ubuntu in this case). Security updates are also downloaded through these repositories. Because all/most of the programs you'd ever want are coming from the same place as the os, it helps keep the Linux distribution secure.
This is one great feature Windows lacks.
Before a program or a security update can be grabbed from the repository, the Linux distribution needs to know where to look. Your sources.list file is the file that contains all repository information, and tells the Linux distribution where to look for programs and security updates. When you run a command "apt-get", that's your package manager in Ubuntu; which means you're about to interact with the programs installed on you Ubuntu distribution in some way. "apt-get update" will interact with the programs by contacting the sources.list and going to the repositories and looks to see if there's any new updates. apt-get upgrade actually applies the updates that are available.

I hoped i've helped, if i haven't try asking again in a different way.

upindah 07-05-2012 07:17 PM

thanks :)
i come from indonesia,:)
and I am learning to speak English. hehehehhe...


All times are GMT -5. The time now is 03:17 PM.