Apt
De Linuxmemo.
(Différences entre les versions)
(→Trouble-shooting) |
|||
(Une version intermédiaire masquée) | |||
Ligne 3 : | Ligne 3 : | ||
==Full auto update== | ==Full auto update== | ||
https://help.ubuntu.com/lts/serverguide/automatic-updates.html.en | https://help.ubuntu.com/lts/serverguide/automatic-updates.html.en | ||
- | To enable automatic updates, edit /etc/apt/apt.conf.d/20auto-upgrades and set the appropriate apt configuration options: | + | sudo apt install unattended-upgrades |
+ | To enable automatic updates, edit /etc/apt/apt.conf.d/20auto-upgrades and set the appropriate apt configuration options: | ||
APT::Periodic::Update-Package-Lists "1"; | APT::Periodic::Update-Package-Lists "1"; | ||
APT::Periodic::Download-Upgradeable-Packages "1"; | APT::Periodic::Download-Upgradeable-Packages "1"; | ||
APT::Periodic::AutocleanInterval "7"; | APT::Periodic::AutocleanInterval "7"; | ||
APT::Periodic::Unattended-Upgrade "1"; | APT::Periodic::Unattended-Upgrade "1"; | ||
+ | |||
==Trouble-shooting== | ==Trouble-shooting== | ||
*open (13: Permission non accordée) | *open (13: Permission non accordée) | ||
apt-get autoremove && apt-get clean && apt-get autoclean | apt-get autoremove && apt-get clean && apt-get autoclean | ||
+ | |||
+ | ==Proxy import keys== | ||
+ | sudo apt-key adv --keyserver keyserver.ubuntu.com --keyserver-options http-proxy=http://localhost:3128 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 |
Version actuelle en date du 9 janvier 2020 à 07:57
Sommaire |
[modifier] Manual update
apt update && apt upgrade -y && apt autoremove
[modifier] Full auto update
https://help.ubuntu.com/lts/serverguide/automatic-updates.html.en
sudo apt install unattended-upgrades
To enable automatic updates, edit /etc/apt/apt.conf.d/20auto-upgrades and set the appropriate apt configuration options:
APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "1"; APT::Periodic::AutocleanInterval "7"; APT::Periodic::Unattended-Upgrade "1";
[modifier] Trouble-shooting
- open (13: Permission non accordée)
apt-get autoremove && apt-get clean && apt-get autoclean
[modifier] Proxy import keys
sudo apt-key adv --keyserver keyserver.ubuntu.com --keyserver-options http-proxy=http://localhost:3128 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886