Hiển thị các bài đăng có nhãn Repository. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn Repository. Hiển thị tất cả bài đăng

Thứ Hai, 24 tháng 9, 2018

Debian 9 (Stretch) Indian repository

Debian Indian repository can speed up the download speed while upgrade and installation of new packages. Indian users get the advantage of local Debian repository. Here is the Indian repository of Debian 9 (Stretch).

Add to sources.list

Open the sources.list using your favorite text editor,

su
leafpad /etc/apt/sources.list

Delete or comment out the existing repository details in the file. Copy and paste the following content into the file.

deb http://debianmirror.nkn.in/debian/ stretch main
deb-src http://debianmirror.nkn.in/debian/ stretch main

deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main

deb http://debianmirror.nkn.in/debian/ stretch-updates main
deb-src http://debianmirror.nkn.in/debian/ stretch-updates main


Save and close the file.

Apply following commands to update the repository information.

apt update
apt upgrade

Thứ Năm, 11 tháng 12, 2014

How to add Debian software repository

Software repository does not add when we install Debian Linux from CD/DVD without Internet connection. You can't update the Debian Linux without software repository. But you can add software repository later. Find a repository near your area. Download from remote server take long time to download updates.

You can find Debian software repository near your area by visiting Debian Source List Generator

In my experience, repositories from India is slow and so I make use Debian repositories from Japan. 

Add repository address to Debian

Open Applications > Accessories > Terminal 
Open sources file and add repository address.

su
leafpad /etc/apt/sources.list

Copy paste the lines to the file. Here is the repository from Japan,

deb http://ftp.jp.debian.org/debian/ wheezy main
deb-src http://ftp.jp.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# wheezy-updates, previously known as 'volatile'
deb http://ftp.jp.debian.org/debian/ wheezy-updates main
deb-src http://ftp.jp.debian.org/debian/ wheezy-updates main

Save and close the file. Update the sources list.

apt-get update