Set debiansources. list -- Debian information for the Linux release. For more information, see the following. Sources. list is a file that we must configure before installing the software. It tells linux the path where you want to store the installation files (that is, you can find them). Here, you can set the network path, the so-called network installation can also make the local file path. The following are some of my experiences in setting up.
1. Local Installation
First, linux accesses devices in the form of files. Therefore, whether you are a hard disk, cd-rom, or iso file, you must first load the file using the mount command.
If you have downloaded the Installation File (for example, corresponding to the first disc) and put it in your fat partition, for example, a directory named debian1 In the second partition, load the partition first, for example:
Cd/mnt; mkdir d; mount-t vfat/dev/hda2/mnt/d
You can add the following in sources. list:
Deb file: // mnt/debian1/woody main contrib
Deb file: // mnt/debian1/woody/non-US main contrib
This is regular. You can check the directory structure in debian1 first. A directory dist is added by default, and woody is the latest stable version in the dist directory, there are other old or testing versions and unstable versions. main and contrib are two directories in woody (some also include a non-free directory ), non-US is not from the United States, and involves some copyright and encryption software. It also has main contrib (several directories are selected ).
Iso File Installation
Similarly, loading the iso file is somewhat different.
There are several full hangs in this category, vi/etc/apt/sources. list
Deb file: // mnt/iso1/woody main contrib
Deb file: // mnt/iso1/woody/non-US main contrib
Deb file: // mnt/iso2/woody main contrib
Deb file: // mnt/iso2/woody/non-US main contrib
.......
2. The network installation is relatively simple, but the directory structure of mirrorsite may be different. You can check it using the following method:
For example, ftp ftp.jp.debian.org
Anonymous
Aaa @ msn
Ftp> ls
My configuration is as follows:
# Official Debian mirrors
#
# Debian "potato" (2.2)
#
# Deb http://ftp.us.debian.org/debian potato main contrib non-free
# Deb-src http://ftp.us.debian.org/debian potato main contrib non-free
# Debian "stable" (presently the same as "Woody ")
#
Deb http://ftp.us.debian.org/debian stable main contrib non-free
Deb-src http://ftp.us.debian.org/debian stable main contrib non-free
# Debian "Woody" (3.0)
#
Deb http://ftp.us.debian.org/debian woody main contrib non-free
Deb-src http://ftp.us.debian.org/debian woody main contrib non-free
# Debian "testing" (presently the same as "Sarge ")
#
Deb http://ftp.us.debian.org/debian testing main contrib non-free
Deb-src http://ftp.us.debian.org/debian testing main contrib non-free
# Debian "Sarge" (> 3.0)
#
Deb http://ftp.us.debian.org/debian sarge main contrib non-free
Deb-src http://ftp.us.debian.org/debian sarge main contrib non-free
# Debian "unstable" ("Sid" will always be unstable .)
#
# Deb http://ftp.us.debian.org/debian unstable main contrib non-free
# Deb-src http://ftp.us.debian.org/debian unstable main contrib non-free
# Debian "Sid" (> 3.0)
#
# Deb http://ftp.us.debian.org/debian sid main contrib non-free
# Deb-src http://ftp.us.debian.org/debian sid main contrib non-free
# Debian "Potato" Non-US (crypto, 2.2)
#
# Deb http://non-us.debian.org/potato/non-US main contrib non-free
# Deb-src http://non-us.debian.org/potato/non-US main contrib non-free
# Debian "stable" Non-US (crypto)
#
Deb http://non-us.debian.org/stable/non-US main contrib non-free
Deb-src http://non-us.debian.org/stable/non-US main contrib non-free
# Debian "Woody" Non-US (crypto)
#
Deb http://non-us.debian.org/woody/non-US main contrib non-free
Deb-src http://non-us.debian.org/woody/non-US main contrib non-free
# Debian "testing" Non-US (crypto)
#
Deb http://non-us.debian.org/testing/non-US main contrib non-free
Deb-src http://non-us.debian.org/testing/non-US main contrib non-free
# Debian "Sarge" Non-US (crypto)
#
Deb http://non-us.debian.org/sarge/non-US main contrib non-free
Deb-src http://non-us.debian.org/sarge/non-US main contrib non-free
# Debian "unstable" Non-US (crypto)
#
# Deb http://non-us.debian.org/unstable/non-US main contrib non-free
# Deb-src http://non-us.debian.org/unstable/non-US main contrib non-free
# Debian "Sid" Non-US (crypto)
#
# Deb http://non-us.debian.org/sid/non-US main contrib non-free
# Deb-src http://non-us.debian.org/sid/non-US main contrib non-free
Here deb-src indicates that the source code can be obtained.
And Japan's ftp.jp.debian.org is also very good, as long as the previous ftp.us.debian.org of us to jp.
Do not use # comment out.
It should be noted that versions are mainly divided into stable, testing and unstable versions. Currently, stable is woody3.0. Among them, the unstable software is the latest, but it is the most unstable and is not recommended, the testing software is relatively new and stable, and is recommended.
Note that if you use stable and testing at the same time, the upgrade will be testing. Similarly, if unstable is selected, the result will be unstable, therefore, it is recommended that only stable and
Testing, it will be relatively stable after installation.
Run the following command to upgrade
Apt-get update
Apt-get upgrade
Apt-get dist-upgrade
Install the software with apt-get install name
Or install it with dselect, tasksel, aptitude, etc.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.