2.6. Resolving Installation Problems
Installation problems are easier to resolve when the failing layer is identified before anything is changed. A missing disk, a missing firmware file, an unreachable mirror, a missing boot entry, and a broken boot loader produce different messages and need different tools. Figure 2.4 shows the first checks for the common branches.
Figure 2.4. First checks for common installation and first-boot failures. The cards are triage points, not a repair sequence; the diagram is conceptual.
Keep the exact error message, the device name, the firmware mode, and the addresses that were configured. Change one layer at a time; changing the disk layout, the network, and the boot loader together makes it impossible to tell which change fixed or broke the system.
2.6.1. Missing Storage Devices, Firmware, or Network Connectivity
If the partitioner does not show the expected disk, start with the kernel's view of the storage controllers. On trixie, as john:
$ sudo dmesg | grep -i -E "virtio_blk|virtio_net|ata_piix" | head -20
[ 1.906954] virtio_blk virtio0: 1/0/0 default/read/poll queues
[ 1.945521] virtio_blk virtio0: [vda] 209715200 512-byte logical blocks (107 GB/100 GiB)
[ 2.097072] ata_piix 0000:00:01.1: version 2.13
[ 2.103162] scsi host0: ata_piix
[ 2.104447] scsi host1: ata_piix
The disk is detected and named vda. If no disk appears at all, compare
lspci -nnk with the expected controller and look for a driver in use: a
controller set to a RAID mode the installer does not support can hide its
disks until the mode is changed in firmware setup, and a loose cable or a
disconnected virtual disk produces no device. A missing driver may also need
a firmware file, and the installer's firmware dialog is the place to supply
it - the exact file name in the dialog identifies the package. Do not create
partitions on a device whose identity is uncertain.
If the installer requests firmware, record the file name and prepare a FAT-formatted stick as described in Section 2.2.2. Skipping the request is reasonable only if the device is not needed; a device skipped during installation usually does not work on the installed system until the firmware package is installed either way.
Network failures have several distinct causes. A name lookup that finds
nothing produces no output and a nonzero status; the .invalid top-level
domain is reserved, so this lookup is expected to fail:
$ getent hosts nonexistent.invalid
Nothing is printed and the command exits 2. That means the name service produced no answer; it does not distinguish a missing DNS record from an unreachable resolver, a broken route, or a filtering firewall. Check the address and route, then the resolver file, then a known-good name:
$ getent hosts deb.debian.org
2a04:4e42:20::644 debian.map.fastlydns.net deb.debian.org
The known-good name resolves, so the resolver and the path to it work. If the
answer is IPv6-only and the network carries no IPv6 route, the lookup can
succeed while connections fail; test the address family the network actually
carries. A gateway ping tests the first hop only. The bad-mirror exercise in
Section 2.2.3 separates a connection failure - Could not connect - from a
name-resolution failure, whose message names the host instead.
| Symptom | First check | Likely causes and next step |
|---|---|---|
| No disk in the partitioner | lsblk, lspci -nnk, dmesg |
Controller mode, cable, missing module, firmware request |
| Firmware dialog during installation | The exact file name in the dialog | Load from a FAT stick; skip only if the device is not needed |
| No address from DHCP | ip -br addr, ip route |
Cable, switch, DHCP server, VLAN; configure manually |
| Name resolution fails | cat /etc/resolv.conf, getent hosts name |
Resolver address, route, firewall, or the DNS server |
| Mirror connection fails | sudo apt-get update, gateway ping |
DNS, proxy, mirror outage, wrong mirror URL |
| Installer cannot find packages | Mirror reachability and task selection | Mirror lacks the suite or component; use a DVD source |
2.6.2. Boot Loader and UEFI Boot Entry Problems
A machine that does not reach the GRUB menu has a firmware, disk, or boot-code problem. A machine that reaches GRUB but fails to start the kernel has a kernel, initramfs, root-device, or kernel-command-line problem. These are different layers, and the split is the first diagnostic: the firmware mode check from Section 2.1.3 tells you which boot-code layer to inspect.
On the example BIOS machine, GRUB's boot code lives in the MBR and its core
image in the post-MBR gap; the efibootmgr failure in Section 2.4.3 is the
expected result there. A BIOS machine that does not boot should first check
the firmware boot order and whether the disk is detected. If the disk is
detected but the MBR code is missing or damaged, GRUB must be reinstalled to
the disk from a rescue environment; the command is destructive to the boot
code, not to the filesystems, and it must name the correct disk.
On a UEFI machine, the firmware reads a boot entry from NVRAM and loads an
EFI binary from the EFI system partition. A missing entry, cleared NVRAM, a
reformatted ESP, or a Secure Boot rejection can all prevent boot while the
root filesystem is intact. Three read-only inspections identify the layer on
a UEFI system: efibootmgr -v lists the boot entries and their device
paths, findmnt /boot/efi confirms the ESP is mounted, and
ls /boot/efi/EFI/debian shows the installed Debian EFI binaries. These are
the documented UEFI checks; the example machine booted through BIOS, so they
were not run there. If the ESP is mounted but the directory is missing, the
boot loader was not installed there or the wrong partition was formatted. If
the directory exists but no entry points to it, the firmware needs a new
entry; grub-install with the EFI target and the correct ESP creates both
the binary and the entry. Running grub-install for the wrong target -
installing to a disk instead of the ESP, or vice versa - is a common way to
leave a UEFI machine unbootable. Chapter 7 gives the
full procedure for both modes, including Secure Boot.
| Symptom | BIOS/legacy path | UEFI path |
|---|---|---|
| No GRUB menu | Check firmware boot order and disk detection; reinstall GRUB to the disk | Check the Boot#### entry, the ESP mount, and \EFI\debian\grubx64.efi |
| GRUB menu but no kernel | Check /boot for kernel and initramfs; check the root UUID on the kernel line |
Same, and confirm the ESP is readable |
| Firmware ignores the disk | Put the disk first in the boot order | Put the Debian entry first in BootOrder; check Secure Boot |
| Boot loader lost after a disk change | Reinstall GRUB and regenerate the configuration | Recreate the ESP entry with the EFI grub-install target |
If the installer offered Continue Without Boot Loader, the system will not
boot until a loader is configured; the installed kernel and initramfs can be
inspected under /target/boot from the installer environment.
2.6.3. Using Installer Logs and Rescue Mode
The installer writes logs while it runs, and a successful installation saves
them to /var/log/installer/ on the installed system - the installer's
syslog and the records of the partitioning and package steps. The directory
is the first place to look when a question about what the installer did
arises later:
$ sudo ls -ld /var/log/installer
ls: cannot access '/var/log/installer': No such file or directory
On the example machine the directory does not exist, because the image was
not produced by the Debian installer; on a machine installed from official
media it is present. If the installation fails before completing, the
installer's main menu offers Save debug logs, which writes the same
material to a USB stick or a network location. The fourth virtual console
shows package unpacking and configuration progress during installation
(Left Alt+F4; Left Alt+F1 returns), and Left Alt+F2 opens a shell in the
installer environment. That shell is a limited rescue environment, not the
installed system, and manual changes in it can interfere with the running
installation.
The installed system's journal is a separate record, written by systemd from the first boot onward. Chapter 8 covers it in depth; the options used here are the first-boot subset.
| Option | Description |
|---|---|
--list-boots |
List boot IDs with the first and last entry of each. |
-b |
Show the current boot; -b -1 the previous one. |
-n count |
Show the last count entries. |
--no-pager |
Write directly to the terminal instead of a pager. |
-u unit |
Show entries for one systemd unit. |
-p priority |
Show entries at or above a syslog priority. |
$ sudo journalctl --list-boots --no-pager | tail -5
IDX BOOT ID FIRST ENTRY LAST ENTRY
-3 d1825bd183984e3b9f7ebf1c302777fe Mon 2026-11-16 05:51:59 UTC Mon 2026-11-16 05:55:54 UTC
-2 803ef6c85f0145e9ad62677d47297eff Mon 2026-11-16 05:56:08 UTC Mon 2026-11-16 06:00:35 UTC
-1 6d39b5873ba543f08698313756eaa806 Mon 2026-11-16 06:00:49 UTC Tue 2026-11-17 03:57:21 UTC
0 c057bdce14a04461beb04f3e8206b620 Tue 2026-11-17 04:19:55 UTC Wed 2026-11-18 07:01:49 UTC
The pipe keeps the header and the last four boots. Boot 0 is the current
boot; negative indexes count backwards. When a change breaks the system,
journalctl -b -1 shows the previous boot's final entries - often the last
clear picture before the failure. A short sample of the current boot shows
what the entries look like:
$ sudo journalctl -b --no-pager -n 10
Nov 18 07:01:49 trixie systemd-logind[535]: Session 11674 logged out. Waiting for processes to exit.
Nov 18 07:01:51 trixie sshd-session[294166]: Accepted publickey for vagrant from 192.168.121.1 port 39418 ssh2: ED25519 SHA256:2+wqTCcPgX4TXHV8HTJEWPyBLZu4qlCQ/my+LKUn6Ic
Nov 18 07:01:51 trixie sshd-session[294166]: pam_unix(sshd:session): session opened for user vagrant(uid=1000) by vagrant(uid=0)
[...]
Nov 18 07:01:51 trixie su[294181]: (to john) root on none
Selected output; four middle entries are omitted. The entries record a previous session being cleaned up, an incoming SSH public-key login, the session it opened, and - the last line - the switch to the john account that ran this very listing. The account names are whatever actually logged in; on a new installation they are the administrator's own sessions. Logs can contain addresses, account names, and command lines, so review them before sharing. Kernel errors and warnings have their own view:
$ sudo dmesg --level=err,warn | tail -10
[70884.301104] systemd-ssh-generator[160182]: Failed to query local AF_VSOCK CID: Cannot assign requested address
[70884.925057] systemd-ssh-generator[160225]: Failed to query local AF_VSOCK CID: Cannot assign requested address
[71002.674461] systemd-ssh-generator[160558]: Failed to query local AF_VSOCK CID: Cannot assign requested address
[71020.875675] systemd-ssh-generator[161170]: Failed to query local AF_VSOCK CID: Cannot assign requested address
[71021.346222] systemd-ssh-generator[161212]: Failed to query local AF_VSOCK CID: Cannot assign requested address
[71028.838975] systemd-ssh-generator[161293]: Failed to query local AF_VSOCK CID: Cannot assign requested address
[71037.464324] systemd-ssh-generator[161394]: Failed to query local AF_VSOCK CID: Cannot assign requested address
[71199.899157] systemd-ssh-generator[166746]: Failed to query local AF_VSOCK CID: Cannot assign requested address
[71202.647932] systemd-ssh-generator[166861]: Failed to query local AF_VSOCK CID: Cannot assign requested address
[71203.159394] systemd-ssh-generator[166917]: Failed to query local AF_VSOCK CID: Cannot assign requested address
The ten most recent warnings on the example machine are all one message: the
virtual machine's SSH generator probing for a VM-socket transport that is not
configured. It repeats, no unit has failed, and nothing depends on it - a
benign pattern for this environment. Read the message and its context before
acting on it: a warning that repeats without a failed unit or a failed
operation is usually noise, while a single I/O error line naming a disk is
not. A running system has no installer rescue directory of its own, which is
easy to confirm:
$ [ -d /target ] && echo present || echo absent
absent
The /target mount point exists only inside the installer environment, so
its absence here simply says this is the installed system, not a rescue
session.
Rescue mode provides a shell without reinstalling. Boot the installation
media and choose Advanced options, then rescue mode - or type rescue at
the boot prompt. The first screens are the installer's, with a note that
nothing will be overwritten; rescue mode reuses the installer's hardware
detection so that disks, RAID, LVM, and network devices are available.
Instead of the partitioner, it presents the partitions it found and asks
which one holds the root filesystem to repair. If it can run a shell in that
filesystem, the shell has the installed system's tools; if the filesystem is
too damaged, it offers a shell in the installer environment instead, with
the selected root mounted at /target. From a shell in the installed system,
the Installation Guide's example for restoring GRUB to the first disk's
master boot record is, in a rescue shell that is already root:
# grub-install '(hd0)'
This command is the documented rescue example; it was not run on the example
machine. The (hd0) device is GRUB's own numbering and may not match
/dev/vda - confirm the disk before writing boot code. After either shell,
exit returns and the system reboots. Rescue mode itself does not overwrite
the disk, but the commands run inside it can; make a backup before repairing
a filesystem or reinstalling a boot loader. Chapter 16
covers system recovery from the installed system's own rescue facilities, and
Chapter 7 the boot loader in depth.
The three log sources answer different questions. The installer logs say what the installer did before the first boot; the journal says what systemd and its services did after; the kernel ring buffer says how the hardware behaved. Collect the relevant one before changing the system, and keep the exact commands and outputs with the installation record from Section 2.5.3 so that a later failure can be compared with a known-good state.