IT HOW

무엇이는 물어보세요

컨텐츠로 건너뛰기
  • 프로그래밍
  • 파이썬
  • 자바
  • 자바스크립트
  • 리눅스
  • c#

“0 개의 패키지를 업데이트 할 수있는 곳”은 어디입니까? 0 packages can be

0 packages can be updated.로그인 과정에서 어디 에서 왔습니까?



답변

이 메시지는에서 온 것입니다 update-motd.

/etc/update-motd.d/updates-available스크립트에서이 특정 출력을 생성cat /var/lib/update-notifier/updates-available


답변

모든 MOTD 메시지의 출처에 대한 대답으로 먼저 PAM 구성을 살펴보십시오.

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

pam_motd.so가 실행되는 것을 확인하십시오.

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

‘run-parts’는 모든 스크립트를 순서대로 디렉토리에서 실행합니다.

 % 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*

헬퍼 스크립트는 / 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*

데이터 파일은 / var / lib / update-notifier에 있습니다.

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

명령 행에서 MOTD 정보를 출력하려면

$ ssh localhost

또는

# run-parts /etc/update-motd.d

답변


이 글은 우분투 카테고리에 분류되었고 command-line, login 태그가 있으며 [호호] 야야님에 의해 2022년 7월 10일에 작성되었습니다.

글 네비게이션

← 원격 데스크톱에서 원격 마이크를 활성화하는 방법 통해 오디오를 아웃 바운드 연결에 여러 개의 기본 게이트웨이를 사용할 수 있습니까? ip route add →

태그

  • android
  • apt
  • backup
  • bash
  • boot
  • c#
  • c++
  • command-line
  • css
  • debian
  • email
  • firefox
  • git
  • google-chrome
  • hard-drive
  • html
  • ios
  • iphone
  • java
  • javascript
  • keyboard
  • linux
  • mac
  • macbook
  • macos
  • microsoft-excel
  • mysql
  • networking
  • performance
  • php
  • python
  • security
  • shell
  • ssh
  • terminal
  • ubuntu
  • unix
  • usb
  • vim
  • virtualbox
  • windows
  • windows-7
  • windows-8
  • windows-10
  • wireless-networking

최신 글

  • 디스크 정리에 많은 시간과 CPU가 필요한 이유는 무엇입니까? 많은 시간을 소비하는 것 같습니다. 파일을
  • Vim에서 일반 모드와 삽입 모드 사이에서 커서를 어떻게 변경합니까? 모양 등)를 변경하는 방법을 알고
  • 집계 대 구성 무엇인지 이해하지만 집계가 무엇인지에 대한 명확한
  • Python 생성기 패턴에 해당하는 C ++
  • 소프트웨어 일반인의 경력 경로는 무엇입니까? [닫은] 전문에 대한 질문 이 질문에 영감을. 소프트웨어 전문가가

카테고리

  • c#
  • c++
  • git
  • html
  • 리눅스
  • 서버
  • 소프트웨어
  • 슈퍼유저
  • 안드로이드
  • 애플
  • 우분투
  • 자바
  • 자바스크립트
  • 파이썬
  • 프로그래밍
apthow.com powered by hoya
Exit mobile version