apt_sources_write
This commit is contained in:
parent
1a05b48cf5
commit
1d86226365
2 changed files with 14 additions and 10 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue