Using the CSE/CC Linux Mirror

Debian-based Distros

APT and Mirrors

prsingh@turing:~$ apt moo
                 (__) 
                 (oo) 
           /------\/ 
          / |    ||   
         *  /\---/\ 
            ~~   ~~   
..."Have you mooed today?"...

Configuring Mirrors

Old Sources File

At /etc/apt/sources.list

# deb cdrom:[Debian GNU/Linux 12.0.0 _Bookworm_ - Official amd64 NETINST with firmware 20230610-10:21]/ bookworm main non-free-firmware

# I used bookworm (Debian 12) earlier.
# deb http://mirror.cse.iitk.ac.in/debian bookworm main non-free-firmware non-free
# deb-src http://mirror.cse.iitk.ac.in/debian bookworm main non-free-firmware non-free

deb http://mirror.cse.iitk.ac.in/debian trixie main non-free-firmware non-free
deb-src http://mirror.cse.iitk.ac.in/debian trixie main non-free-firmware non-free
# EOF

New Sources File

At /etc/apt/sources.list.d/ubuntu.sources

Types: deb
URIs: http://ftp.cc.iitk.ac.in/mirror/ubuntu
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://ftp.cc.iitk.ac.in/mirror/ubuntu
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# EOF

Another example:

# Modernized from /etc/apt/sources.list
Types: deb deb-src
# URIs: http://mirror.cse.iitk.ac.in/debian/
URIs: http://deb.debian.org/debian
Suites: trixie
Components: main non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg


Types: deb deb-src
# URIs: http://mirror.cse.iitk.ac.in/debian-security
URIs: http://deb.debian.org/debian-security
Suites: trixie-security
Components: main non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
# EOF

What You Need to Do

When Installing Ubuntu/Debian

What Those Lines Mean

Example - A Modified Ubuntu Sources File

Note the prompt - it has the file location.

dhruv@dhruv-Inspiron:/$ cat /etc/apt/sources.list.d/ubuntu.sources
# default
# Types: deb
# URIs: http://archive.ubuntu.com/ubuntu/
# Suites: noble noble-updates noble-backports
# Components: main restricted universe multiverse
# Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# 
# Types: deb
# URIs: http://security.ubuntu.com/ubuntu/
# Suites: noble-security
# Components: main restricted universe multiverse
# Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg


# WARNING - will not work outside intranet.
# ghar ja ke change karna
Types: deb
URIs: http://ftp.cc.iitk.ac.in/mirror/ubuntu
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://ftp.cc.iitk.ac.in/mirror/ubuntu
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

# EOF

Acknowledgments