apt
for managing packagesarchive.ubuntu.com
, deb.debian.org
)in.archive.ubuntu.com
)prsingh@turing:~$ apt moo
(__)
(oo)
/------\/
/ | ||
* /\---/\
~~ ~~
..."Have you mooed today?"...
iitk
wifi beats iitk-sec
for this
stuffapt
mirrors are listed in
/etc/apt/sources.list
(old) or
/etc/apt/sources.list.d/ubuntu.sources
(new).deb
s from the mirrors
under /pool
and manually dpkg --install
them.
I did that from Ubuntu when I couldn’t find gdb-doc
under
Debian. (Not recommended.)man sources.list.5
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
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
deb.debian.org
or
http://archive.ubuntu.com/ubuntu/
with the CC/CSE
mirrorapt update
-ing on
the local and root mirrors should show the same output.apt
downloads, updates. Because your ISO image
is probably old.deb
is precompiled, compressed binaries (with manuals,
copyrights, etc).deb-src
is source code. (apt source gcc
downloads the actual source.)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
pandoc
to convert markdown (my favourite) to
HTML.