Cuando se instala Debian desde un CD o imagen ISO, queda configurado el repositorio desde CDROM, tal como se ve desde este archivo
root@srvmstr1:/etc/apt# cat sources.list # deb cdrom:[Debian GNU/Linux 11.3.0 _Bullseye_ - Official amd64 DVD Binary-1 20220326-11:23]/ bullseye contrib main deb cdrom:[Debian GNU/Linux 11.3.0 _Bullseye_ - Official amd64 DVD Binary-1 20220326-11:23]/ bullseye contrib main deb http://security.debian.org/debian-security bullseye-security main contrib deb-src http://security.debian.org/debian-security bullseye-security main contrib # bullseye-updates, to get updates before a point release is made; # see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports # A network mirror was not selected during install. The following entries # are provided as examples, but you should amend them as appropriate # for your mirror of choice. # # deb http://deb.debian.org/debian/ bullseye-updates main contrib # deb-src http://deb.debian.org/debian/ bullseye-updates main contrib root@srvmstr1:/etc/apt# cat sources.list
Por tal razón no vamos a poder instalar paquetes desde Internet. Para subsanar este comportamiento debemos agregar el repositorio oficial de Debian. Lo hacemos añadiendo la siguiente línea en cualquier parte del archivo, puede ser al final o al inicio, no hay problema.
deb http://deb.debian.org/debian/ bullseye main (tener en cuenta que esta línea es para Debian 11)
Quedando de la siguiente forma…
root@srvmstr1:/etc/apt# cat sources.list # deb cdrom:[Debian GNU/Linux 11.3.0 _Bullseye_ - Official amd64 DVD Binary-1 20220326-11:23]/ bullseye contrib main #deb cdrom:[Debian GNU/Linux 11.3.0 _Bullseye_ - Official amd64 DVD Binary-1 20220326-11:23]/ bullseye contrib main deb http://security.debian.org/debian-security bullseye-security main contrib deb-src http://security.debian.org/debian-security bullseye-security main contrib # bullseye-updates, to get updates before a point release is made; # see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports # A network mirror was not selected during install. The following entries # are provided as examples, but you should amend them as appropriate # for your mirror of choice. # # deb http://deb.debian.org/debian/ bullseye-updates main contrib # deb-src http://deb.debian.org/debian/ bullseye-updates main contrib deb http://deb.debian.org/debian/ bullseye main root@srvmstr1:/etc/apt#
Luego de ello, actualizamos el repositorio con apt update y listo, ya podemos instalar aplicaciones o paquetes desde Internet haciendo uso del repositorio oficial.