Các gói của 0 có thể được cập nhật ở đâu.


16

Trường hợp nào 0 packages can be updated.đến từ quá trình đăng nhập?

Câu trả lời:


22

Những tin nhắn này đến từ update-motd.

Các /etc/update-motd.d/updates-availablekịch bản tạo ra sản lượng cụ thể này từcat /var/lib/update-notifier/updates-available


0

Để trả lời tất cả các thông điệp MOTD đến từ đâu, trước tiên hãy xem cấu hình PAM.

 % grep -C1 motd /etc/pam.d/*
 /etc/pam.d/sshd:session optional pam_motd.so motd=/run/motd.dynamic

Nhìn để xem những gì pam_motd.so chạy.

 % strings /lib/x86_64-linux-gnu/security/pam_motd.so
 run-parts /etc/update-motd.d > /run/motd.dynamic.new

'phần chạy' chạy tất cả các tập lệnh, theo thứ tự, trong một thư mục.

 % ls /etc/update-motd.d/
 00-header*     80-esm*  91-release-upgrade*  98-reboot-required*
 10-help-text*  80-livepatch*          95-hwe-eol*
 50-motd-news*  90-updates-available*  98-fsck-at-reboot*

Các tập lệnh trợ giúp nằm trong / usr / lib / update-notifier / update-motd *

 /usr/lib/update-notifier/update-motd-fsck-at-reboot*
 /usr/lib/update-notifier/update-motd-hwe-eol*
 /usr/lib/update-notifier/update-motd-reboot-required*
 /usr/lib/update-notifier/update-motd-updates-available*

Các tệp dữ liệu nằm trong / var / lib / update-notifier

 dpkg-run-stamp  hwe-eol                  updates-available
 fsck-at-reboot  package-data-downloads/  user.d/

Để xuất thông tin MOTD từ dòng lệnh, một trong hai

$ ssh localhost

hoặc là

# run-parts /etc/update-motd.d
Khi sử dụng trang web của chúng tôi, bạn xác nhận rằng bạn đã đọc và hiểu Chính sách cookie và Chính sách bảo mật của chúng tôi.
Licensed under cc by-sa 3.0 with attribution required.