Apt
De Linuxmemo.
(Différences entre les versions)
(Page créée avec « *open (13: Permission non accordée) apt-get autoremove && apt-get clean && apt-get autoclean" ») |
(→Trouble-shooting) |
||
(3 versions intermédiaires masquées) | |||
Ligne 1 : | Ligne 1 : | ||
+ | ==Manual update== | ||
+ | apt update && apt upgrade -y && apt autoremove | ||
+ | ==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"; | ||
+ | |||
+ | ==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