LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-05-2012, 03:31 AM   #1
upindah
LQ Newbie
 
Registered: Jun 2012
Posts: 10

Rep: Reputation: Disabled
Question 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?

Last edited by upindah; 07-05-2012 at 03:35 AM.
 
Old 07-05-2012, 06:14 AM   #2
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: OpenSUSE
Posts: 1,390
Blog Entries: 7

Rep: Reputation: 164Reputation: 164
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 View Post
# 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 View Post
# 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.
 
Old 07-05-2012, 07:17 PM   #3
upindah
LQ Newbie
 
Registered: Jun 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Talking

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to edit files in directory /etc/apt/sources.list.d/ in ubuntu 11.10 zdwc01 Linux - Newbie 3 12-06-2011 03:50 PM
How to list contents of all files recursively spoovy Linux - General 8 01-24-2011 11:19 AM
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 02:57 PM
How to delete list of files Nana Linux - Newbie 9 03-09-2007 03:40 AM
Can't delete or list contents of an old kio_http cache,... JaseP Linux - General 3 06-09-2002 04:00 AM


All times are GMT -5. The time now is 02:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration