2022年7月30日 星期六

*** System restart required ubuntu ***

Ubuntu 20.04 server登入後,出現提示訊息:

  • 97 updates can be applied immediately.
  • 15 of these updates are standard security updates.
  • ......
  • *** System restart required ***

出現上面的訊息,代表著更新的套件有些需要重新開機才能夠作用,這些套件列在/var/run/reboot-required.pkgs裡面。若僅要確認更新standard security updates套件後是否要重開機,那就用指令:

  • grep --color -f <(apt-get -s dist-upgrade | grep "^Inst" | grep -i security | awk -F " " {'print $2'}) /var/run/reboot-required.pkgs 


要檢查安全更新套件的changelog變更日誌,用指令:

  1. apt-get changelog libssl1.1
  2. xargs apt-get changelog < /var/run/reboot-required.pkgs

第一個指令只有檢查單個套件的變更日誌,後面是檢查所有standard security updates套件的變更日誌。通通檢查完以後,用下面指令更新安全性套件:

  • apt-get -s dist-upgrade | grep "^Inst" | grep -i security | awk -F " " {'print $2'} | sudo xargs apt-get --yes install


參考資料

_EOF_

Aquatint of a landscape of a Sexy desktop wallpaper from inside of a Dagobah, at Sunset, Peaceful, Gadgetpunk, MOBA style, absurdres, highly detailed, art by Jonas De Ro, perfection, masterpiece

Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 2532252986, Size: 512x256, Model hash: fc2511737a, Model: chilloutmix_NiPrunedFp32Fix, Version: v1.6.1

Time taken: 1 min. 46.9 sec.
A: 1.72 GB, R: 2.20 GB, Sys: 2.0/2 GB (100.0%)

沒有留言:

張貼留言