기본 설정 14
- systemd 타이머 OnCalendar 를 설치 전에 계산해 보기
OnCalendar 표현을 유닛에 쓰기 전에 systemd-analyze calendar 로 정규화 형태와 다음 실행 시각을 확인하고, 파싱 실패와 never 를 구분합니다.
Ubuntu 24.04.5 · systemd 255.4-1ubuntu8.18 (시간대 Asia/Seoul) - System has not been booted with systemd
systemctl 이 System has not been booted with systemd 로 멈추면 PID 1 이 systemd 가 아닙니다. 컨테이너는 서비스를 따로 띄우고, WSL 은 wsl.conf 로.
Ubuntu 24.04 · systemd 255.4 · nginx 1.24.0 (Docker) · WSL 공식 문서 기준 · 2026-10 - setlocale: LC_ALL: cannot change locale
Ubuntu setlocale cannot change locale 는 지정한 로케일이 만들어져 있지 않다는 경고입니다. locale -a 로 보고 locale-gen 으로 만들거나 C.UTF-8 을 씁니다.
Ubuntu 24.04 (Docker) · locales 2.39-0ubuntu8.9 · 2026-10 - sudo: unable to resolve host 경고 없애기
호스트 이름을 바꾼 뒤 sudo: unable to resolve host 가 뜨면 /etc/hosts 에 새 이름이 없는 것입니다. 127.0.1.1 의 이름을 hostname 과 맞추고 getent 로 봅니다.
Ubuntu 24.04 · sudo 1.9.15p5 (Docker) · 2026-10 - /bin/bash^M: bad interpreter 해결 (CRLF)
bad interpreter 는 줄 끝이 CRLF 라서 납니다(Ubuntu 24.04 는 required file not found). sed 로 \r 을 지우고 .gitattributes 로 막습니다.
Ubuntu 24.04 · bash 5.2.21 · Rocky 9.3 · bash 5.1.8 (Docker) · 2026-10 - apt E: Unable to locate package 원인 가르기
E: Unable to locate package 는 apt update 누락, universe 꺼짐, 이름 틀림, 이 판에 없는 패키지 중 하나입니다. apt-cache policy 로 가릅니다.
Ubuntu 24.04.5 · apt 2.8.3 (Docker) · 2026-10 - dpkg was interrupted 해결 (configure -a)
E: dpkg was interrupted 는 설치가 중간에 끊긴 상태입니다. 다른 apt 가 없는지 본 뒤 sudo dpkg --configure -a 로 마저 끝내고 원래 설치를 다시 합니다.
Ubuntu 24.04 (Docker) · apt 2.8.3 · dpkg 1.22.6 · 2026-10 - Key is stored in legacy trusted.gpg 해결
apt 의 Key is stored in legacy trusted.gpg 경고는 키가 옛 공용 키링에 있다는 뜻입니다. /etc/apt/keyrings 로 꺼내 signed-by 로 묶고 옛 키를 지웁니다.
Ubuntu 24.04 · apt 2.8.3 · gpg 2.4.4 (Docker) · 2026-10 - Could not get lock … lock-frontend 대처
apt 가 dpkg 잠금을 잡지 못했을 때 누가 쥐고 있는지 확인하고, 기다리는 옵션을 쓰고, 잠금 파일은 지우지 않으며, 진짜 중단됐을 때만 dpkg 를 마저 돌립니다.
Ubuntu 24.04.5 LTS · apt 2.8.3 · dpkg 1.22.6 - cron 작업이 안 돌 때 원인 찾기 — 로그부터 PATH·% 까지
터미널에서는 되는데 cron 에서만 안 되는 작업을 로그로 실행 여부부터 가르고, 좁은 PATH·% 문자·권한·개행 누락·사용자 칸 실수를 차례로 확인합니다.
Ubuntu 24.04.5 · cron 3.0pl1-184ubuntu2 (man 페이지·바이너리 확인) · 환경은 env -i 로 재현 - 26.04 Could not calculate the upgrade 해결
Ubuntu 24.04 에서 26.04 로 올릴 때 나오는 Could not calculate the upgrade 오류를 /var/log/dist-upgrade/ 로그에서 막는 패키지를 찾아 해결합니다.
Ubuntu 24.04 → 26.04 · Ubuntu 문서·Launchpad 보고 기준(2026-10) - systemd 저널 디스크 사용량 보고 줄이기
저널이 디스크를 얼마나 쓰는지 확인하고, vacuum 으로 오래된 파일을 지우고, 드롭인으로 상한을 고정하고, 저널을 채우는 유닛을 찾습니다.
Ubuntu 24.04 · systemd 255 · 설정 항목은 freedesktop.org journald.conf(5)·journalctl(1) 문서 기준 - logrotate 설정을 만들고 미리 시험하기
앱 로그용 logrotate 설정을 만들고 -d 로 미리 보고, -f 와 상태 파일로 강제 실행해 결과 파일을 확인합니다. copytruncate 와 postrotate 의 차이도 다룹니다.
logrotate 3.21.0 · Ubuntu 24.04 · systemd 255 - 서비스가 failed 일 때 원인 찾기
systemctl status 의 Active·status 줄을 읽고, journalctl 로 실패 직전 로그를 보고, 203/EXEC 와 start request repeated too quickly 를 고칩니다.
Ubuntu 24.04 · systemd 255 (일시 유닛으로 재현)