Skip to Content

일반적인 호환성 문제

시스템 업그레이드 후에는 다양한 호환성 문제가 발생할 수 있습니다. 이 문서에는 일반적인 문제와 해결 방법이 요약되어 있습니다.

26.04 특정 업그레이드 호환성 항목

Ubuntu 26.04 LTS는 하위 수준 구성 요소에 몇 가지 주요 변경 사항을 도입합니다. 이전 릴리스에서 업그레이드한 후에는 이러한 사항에 특별한 주의를 기울이십시오.

sudo-rs가 기본 sudo가 됨

26.04의 기본값은 전통적인 sudo-rs 대신 Rust 재작성인 sudo입니다. 일반적인 sudoers 구문과 호환되지만 일부 엣지 케이스 옵션과 플러그인은 아직 구현되지 않았습니다.

# Confirm the current sudo implementation sudo --version # If a script relies on a traditional sudo feature and fails, temporarily revert sudo apt install sudo # This takes over /usr/bin/sudo; switch back to sudo-rs once you've finished debugging

Rust-coreutils가 기본값이 됨

coreutils은 이제 Rust 기반 uutils 구현에 의해 제공됩니다. 일상적인 사용법은 동일하지만 몇 가지 GNU 관련 확장 옵션이 지원되지 않을 수 있습니다. 스크립트가 특정 GNU 확장에 의존하는 경우 GNU 버전을 설치하십시오.

sudo apt install gnu-coreutils

APT 3.1 apt-key를 제거합니다.

apt-key이 완전히 제거되었으며 /etc/apt/trusted.gpg에 남은 키는 더 이상 신뢰할 수 없습니다. 타사 소스를 signed-by + /etc/apt/keyrings/ 접근 방식으로 마이그레이션합니다.

# Export the key to a dedicated keyring curl -fsSL https://repo.example.com/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/example.gpg # Reference it via Signed-By in the .sources file # Signed-By: /etc/apt/keyrings/example.gpg

Dracut은 initramfs-tools를 대체합니다.

26.04은 dracut을 사용하여 initramfs를 생성합니다. 사용자 정의 initramfs-tools 후크는 dracut 모듈/구성(/etc/dracut.conf.d/)으로 마이그레이션되어야 하며 재구축 명령은 다음과 같이 변경됩니다.

# Old: sudo update-initramfs -u # New: sudo dracut -f

systemd 259 cgroup v1 제거

systemd 259는 더 이상 cgroup v1을 지원하지 않습니다(통합 cgroup v2만 해당). 이전 Docker, Kubernetes 및 Java 컨테이너 메모리 감지가 영향을 받을 수 있습니다. cgroup v2를 지원하는 버전으로 업그레이드하세요. 또한 26.04은 SysV init 스크립트를 지원하는 마지막 릴리스이므로 가능한 한 빨리 기본 systemd 장치로 마이그레이션하십시오.

Apache MemoryDenyWriteExecute가 mod_php에 영향을 미침

26.04의 Apache 2.4.66 서비스는 기본적으로 MemoryDenyWriteExecute=yes을 활성화하며 이로 인해 libapache2-mod-php이 충돌합니다. 공식적인 권장 사항은 PHP-FPM(mod_proxy_fcgi + php-fpm)으로 마이그레이션하는 것입니다. 서버 섹션의 Nginx/Apache 구성 참고 사항을 참조하세요.

PPA 및 타사 소스 문제

PPA는 새 버전을 지원하지 않습니다

업그레이드 후 가장 일반적인 문제는 PPA가 아직 새 버전에 대한 패키지를 제공하지 않았다는 것입니다.

# View disabled PPAs ls /etc/apt/sources.list.d/*.distUpgrade # Error example # E: The repository 'https://ppa.launchpadcontent.net/example/ppa/ubuntu resolute Release' does not have a Release file. # Check if the PPA supports 26.04 sudo add-apt-repository --list # Remove incompatible PPAs sudo add-apt-repository --remove ppa:example/ppa # Or manually delete sudo rm /etc/apt/sources.list.d/example-ppa.sources sudo apt update

타사 저장소 버전 코드 이름 불일치

# Many third-party sources use version codenames (e.g., noble, resolute) # These need to be updated after upgrading # Check the current codename lsb_release -cs # Output: resolute # Manually update the version codename in third-party source files sudo sed -i 's/noble/resolute/g' /etc/apt/sources.list.d/example.list # For DEB822 format sudo sed -i 's/noble/resolute/g' /etc/apt/sources.list.d/example.sources # Update index sudo apt update

만료된 GPG 키

# Error example # W: GPG error: https://repo.example.com ... EXPKEYSIG # Re-fetch the key curl -fsSL https://repo.example.com/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/example.gpg # Remove the expired old key sudo rm /etc/apt/trusted.gpg.d/example.gpg

드라이버 문제

NVIDIA 그래픽 드라이버

# The NVIDIA driver may need to be reinstalled after upgrading # Check driver status nvidia-smi # If the command is unavailable, reinstall the driver sudo ubuntu-drivers devices sudo ubuntu-drivers autoinstall # Let ubuntu-drivers pick the matching driver version automatically # The exact version number should follow the "recommended" line from ubuntu-drivers devices sudo ubuntu-drivers autoinstall # If stuck at low resolution or black screen # 1. Switch to TTY: Ctrl+Alt+F2 # 2. Reinstall the driver (version per ubuntu-drivers devices) sudo apt install --reinstall nvidia-driver-XXX sudo reboot

커널 모듈을 재컴파일해야 함

DKMS로 구축된 타사 커널 모듈을 다시 컴파일해야 할 수도 있습니다.

# Check DKMS status dkms status # If modules are not built sudo dkms autoinstall # Manually rebuild a specific module sudo dkms build module-name/version -k $(uname -r) sudo dkms install module-name/version -k $(uname -r) # Common modules that require DKMS # - VirtualBox Guest Additions # - NVIDIA driver # - ZFS # - WireGuard (older kernels)

Wi-Fi 및 블루투스 문제

# Check wireless devices rfkill list all iwconfig # Install missing firmware sudo apt install linux-firmware -y # If a specific network card doesn't work lspci | grep -i network lsusb | grep -i wireless # Check kernel logs for firmware errors dmesg | grep -i firmware dmesg | grep -i wifi # Reload the wireless module sudo modprobe -r iwlwifi && sudo modprobe iwlwifi

오디오 문제

# Check PipeWire (default in 26.04) or PulseAudio systemctl --user status pipewire pipewire-pulse # Restart audio services systemctl --user restart pipewire pipewire-pulse # If migrating from PulseAudio to PipeWire sudo apt install pipewire-audio

소프트웨어 버전 변경

Python 버전 변경

# Check Python version python3 --version # The Python minor version may change after upgrading (e.g., 3.12 -> 3.13) # Note: the 26.04 system Python is protected by PEP 668 and cannot install packages # directly with pip (including --user). Reinstall dependencies inside a virtual environment — # after a minor version change the old venv usually needs to be rebuilt: rm -rf venv/ python3 -m venv venv source venv/bin/activate pip install -r requirements.txt # For global command-line application tools, install/reinstall with pipx instead: # sudo apt install pipx # pipx reinstall-all

PHP 버전 변경

# Check PHP version php -v # The PHP version may change from 8.3 to 8.5 after upgrading # Web server configurations need to be updated # Nginx - update PHP-FPM socket path # Old: fastcgi_pass unix:/run/php/php8.3-fpm.sock; # New: fastcgi_pass unix:/run/php/php8.5-fpm.sock; sudo grep -r "php8." /etc/nginx/ # Apache - update modules sudo a2dismod php8.3 sudo a2enmod php8.5 sudo systemctl restart apache2 # Reinstall PHP extensions sudo apt install php8.5-mysql php8.5-curl php8.5-mbstring php8.5-xml -y

MySQL / MariaDB 업그레이드

# Check version mysql --version # Note: MySQL 8.4 removed the mysql_upgrade command; # the data dictionary upgrade is now performed automatically when mysqld starts, # so no manual step is needed. Only MariaDB still requires a manual upgrade: sudo mariadb-upgrade -u root -p # Check table compatibility sudo mysqlcheck -u root -p --all-databases --check-upgrade # If errors occur, try repair sudo mysqlcheck -u root -p --all-databases --auto-repair

PostgreSQL 업그레이드

# PostgreSQL may need data directory migration after upgrade # Check version pg_lsclusters # If there are multiple cluster versions (e.g., upgrading from 16 on 24.04 to 18 on 26.04) # The old cluster is preserved after upgrade sudo pg_upgradecluster 16 main 18 # After confirming the new cluster works, drop the old one sudo pg_dropcluster 16 main

Node.js 버전

# If installed via system packages node --version # It is recommended to use nvm for version management, unaffected by system upgrades curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash nvm install --lts

구성 파일 충돌

대체된 구성 찾기

# Configuration files where you chose "install the package maintainer's version" # during the upgrade -- old versions are backed up as .dpkg-old find /etc -name "*.dpkg-old" 2>/dev/null find /etc -name "*.dpkg-dist" 2>/dev/null find /etc -name "*.ucf-dist" 2>/dev/null # Compare differences diff /etc/ssh/sshd_config /etc/ssh/sshd_config.dpkg-old

구성 변경 사항 병합

# Use diff3 for a three-way merge # Requires the original config, your modifications, and the new version config # For debconf-managed configs sudo dpkg-reconfigure package-name # Reconfigure all ucf-managed configuration files sudo ucf --purge /etc/some/config sudo apt install --reinstall package-name

systemd 서비스 문제

서비스 파일 변경 사항

# Check if there are services that need reloading sudo systemctl daemon-reload # View overridden service files systemd-delta # Check if custom overrides are still effective systemctl cat your-service.service

서비스 이름 변경

# Some service names may change in the new version # For example: # iptables -> nftables # isc-dhcp-server -> kea-dhcp4-server # Check if a service exists systemctl list-unit-files | grep service-name

GRUB 및 부팅 문제

GRUB 업데이트 실패

# Reinstall GRUB sudo grub-install /dev/sda # or your boot disk sudo update-grub # View GRUB configuration cat /boot/grub/grub.cfg | grep menuentry

오래된 커널을 정리할 수 없습니다

# If autoremove cannot remove old kernels dpkg --list | grep linux-image # Manually remove a specific old kernel sudo apt purge linux-image-5.15.0-xx-generic sudo apt purge linux-headers-5.15.0-xx-generic sudo update-grub

데스크탑 환경 문제

GNOME 확장이 호환되지 않음

# GNOME Shell version may change after upgrading gnome-shell --version # Disable all extensions gsettings set org.gnome.shell disable-user-extensions true # Enable one at a time and test gnome-extensions list gnome-extensions enable extension-name@example.com # Update extensions # Visit https://extensions.gnome.org to reinstall

Wayland / X11 문제

# Check current display protocol echo $XDG_SESSION_TYPE # Some apps don't support Wayland; force X11 backend GDK_BACKEND=x11 application-name

기본 Ubuntu 데스크톱 세션은 26.04에서만 Wayland입니다. 워크플로우에 전체 X.org 세션이 필요한 경우 Xfce, MATE 또는 i3과 같이 X.org를 계속 제공하는 다른 데스크탑 환경을 평가하십시오.

Docker 호환성

# Check Docker service status sudo systemctl status docker # If the Docker repository codename hasn't been updated # Reconfigure the Docker source echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt update sudo apt install --only-upgrade docker-ce docker-ce-cli -y # Verify docker run hello-world docker compose version

일반적인 문제 해결 접근 방식

# 1. View system logs sudo journalctl -b -p err sudo journalctl -b -p warning | head -50 # 2. View specific service logs sudo journalctl -u service-name --since "1 hour ago" # 3. Check package integrity sudo debsums -c # check modified configuration files sudo debsums -s # silent mode, show errors only # 4. Reconfigure a package sudo dpkg-reconfigure package-name # 5. View upgrade logs less /var/log/dist-upgrade/main.log less /var/log/dist-upgrade/apt.log