GrepBoard/Manuals
605 manuals ·

Basics 14

  1. Check a systemd timer OnCalendar value before installing it

    Run systemd-analyze calendar to see the normalized form and next run time of an OnCalendar value before it goes into a unit, and tell parse errors from never.

    Ubuntu 24.04.5 · systemd 255.4-1ubuntu8.18 (time zone Asia/Seoul)
  2. Fix "System has not been booted with systemd as init system"

    systemctl says "System has not been booted with systemd" when PID 1 is not systemd. Start services directly in containers; on WSL, enable it in wsl.conf.

    Ubuntu 24.04 · systemd 255.4 · nginx 1.24.0 (Docker) · WSL official docs · 2026-10
  3. Fix "setlocale: LC_ALL: cannot change locale" on Ubuntu 24.04

    Ubuntu "setlocale: LC_ALL: cannot change locale" means the locale you set was never generated. Check with locale -a, then run locale-gen or switch to C.UTF-8.

    Ubuntu 24.04 (Docker) · locales 2.39-0ubuntu8.9 · 2026-10
  4. Fix "sudo: unable to resolve host" after a hostname change

    "sudo: unable to resolve host" after renaming a server means /etc/hosts lacks the new name. Make the 127.0.1.1 line match hostname and confirm with getent.

    Ubuntu 24.04 · sudo 1.9.15p5 (Docker) · 2026-10
  5. Fix "/bin/bash^M: bad interpreter" (CRLF line endings)

    Bash "bad interpreter" (on Ubuntu 24.04: "required file not found") means CRLF line endings. Strip \r with sed, then pin LF in .gitattributes.

    Ubuntu 24.04 · bash 5.2.21 · Rocky 9.3 · bash 5.1.8 (Docker) · 2026-10
  6. Fix apt "E: Unable to locate package" on Ubuntu 24.04

    "E: Unable to locate package" means no apt update, universe disabled, a wrong name, or a package missing from 24.04. Tell them apart with apt-cache policy.

    Ubuntu 24.04.5 · apt 2.8.3 (Docker) · 2026-10
  7. Fix apt "E: dpkg was interrupted" with dpkg --configure -a

    Ubuntu apt "dpkg was interrupted" means an install stopped halfway. Check no other apt runs, finish it with sudo dpkg --configure -a, then rerun the install.

    Ubuntu 24.04 (Docker) · apt 2.8.3 · dpkg 1.22.6 · 2026-10
  8. Fix apt "Key is stored in legacy trusted.gpg keyring" warning

    apt warns "Key is stored in legacy trusted.gpg" when a repo key is in the old shared keyring. Export it to /etc/apt/keyrings, add signed-by, delete the old key.

    Ubuntu 24.04 · apt 2.8.3 · gpg 2.4.4 (Docker) · 2026-10
  9. Fix apt "Could not get lock /var/lib/dpkg/lock-frontend"

    Find which process holds the dpkg lock, make apt wait for it, leave the lock file alone, and run dpkg --configure -a only after a run was truly interrupted.

    Ubuntu 24.04.5 LTS · apt 2.8.3 · dpkg 1.22.6
  10. Find Out Why a cron Job Is Not Running — Logs, PATH and %

    A job works in the terminal but not from cron. Read the log to see if cron started it, then check PATH, %, permissions, a missing newline and the user field.

    Ubuntu 24.04.5 · cron 3.0pl1-184ubuntu2 (man pages and binary checked) · environment reproduced with env -i
  11. Fix "Could not calculate the upgrade" on Ubuntu 24.04 to 26.04

    Fix "Could not calculate the upgrade" (24.04 to 26.04): find the Broken package in /var/log/dist-upgrade/apt.log, the known lintian case and its workaround.

    Ubuntu 24.04 → 26.04 · Ubuntu docs and Launchpad reports, 2026-10
  12. Check how much disk the systemd journal uses and shrink it

    Check how much disk the journal uses, delete old files with vacuum, pin a size limit with a drop-in file, and find the units that fill the journal.

    Ubuntu 24.04 · systemd 255 · settings per freedesktop.org journald.conf(5) and journalctl(1)
  13. Write a logrotate config and test it before using it

    Write a logrotate config for an app log, preview it with -d, force a run with -f and a state file, and check the result. Covers copytruncate versus postrotate.

    logrotate 3.21.0 · Ubuntu 24.04 · systemd 255
  14. Find why a systemd service is failed

    Read the Active and status lines of systemctl status, check the log from just before the failure, and fix 203/EXEC and "start request repeated too quickly".

    Ubuntu 24.04 · systemd 255 (reproduced with transient units)