apt_sources_write

This commit is contained in:
Marc Beninca 2024-11-15 19:23:33 +01:00
parent 1a05b48cf5
commit 1d86226365
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 14 additions and 10 deletions

View file

@ -32,6 +32,19 @@ apt_install_target() {
done done
} }
apt_sources_write() {
printf "%s" "\
deb https://deb.debian.org/debian \
${DEBIAN_CODENAME} main non-free-firmware contrib non-free
deb https://deb.debian.org/debian \
${DEBIAN_CODENAME}-backports main non-free-firmware contrib non-free
deb https://deb.debian.org/debian \
${DEBIAN_CODENAME}-updates main non-free-firmware contrib non-free
deb https://deb.debian.org/debian-security \
${DEBIAN_CODENAME}-security main non-free-firmware contrib non-free
" >"/etc/apt/sources.list"
}
apt_update() { apt_update() {
apt-get \ apt-get \
update update

View file

@ -13,16 +13,7 @@ Dir::Etc::SourceParts \"\";
Dpkg::Progress True; Dpkg::Progress True;
" >"/etc/apt/apt.conf.d/apt.conf" " >"/etc/apt/apt.conf.d/apt.conf"
# apt / sources # apt / sources
printf "%s" "\ apt_sources_write
deb https://deb.debian.org/debian \
${DEBIAN_CODENAME} main non-free-firmware contrib non-free
deb https://deb.debian.org/debian \
${DEBIAN_CODENAME}-backports main non-free-firmware contrib non-free
deb https://deb.debian.org/debian \
${DEBIAN_CODENAME}-updates main non-free-firmware contrib non-free
deb https://deb.debian.org/debian-security \
${DEBIAN_CODENAME}-security main non-free-firmware contrib non-free
" >"/etc/apt/sources.list"
# bash / rc # bash / rc
main_link_bashrc main_link_bashrc
mv .bashrc .bashrc.old mv .bashrc .bashrc.old