root@odroid:~# apt install linux-image-xu3 Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: linux-image-4.14.5-92 The following packages will be upgraded: linux-image-xu3 1 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/974 B of archives. After this operation, 51.8 MB disk space will be freed. Do you want to continue? [Y/n] Y perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory dpkg: linux-image-4.14.5-92: dependency problems, but removing anyway as you requested: linux-image-xu3 depends on linux-image-4.14.5-92. (Reading database ... 43056 files and directories currently installed.) Removing linux-image-4.14.5-92 (20171211) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory /usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory Ok, proceeding with removing running kernel image. Examining /etc/kernel/prerm.d. locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.14.5-92 /boot/vmlinuz-4.14.5-92 update-initramfs: Deleting /boot/initrd.img-4.14.5-92 (Reading database ... 41356 files and directories currently installed.) Preparing to unpack .../linux-image-xu3_93-1_armhf.deb ... Unpacking linux-image-xu3 (93-1) over (92-1) ... Setting up linux-image-4.14.7-93 (20171217) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Hmm. There is a symbolic link /lib/modules/4.14.7-93/build However, I can not read it: No such file or directory Therefore, I am deleting /lib/modules/4.14.7-93/build Hmm. The package shipped with a symbolic link /lib/modules/4.14.7-93/source However, I can not read the target: No such file or directory Therefore, I am deleting /lib/modules/4.14.7-93/source Running depmod. Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.14.7-93 /boot/vmlinuz-4.14.7-93 run-parts: executing /etc/kernel/postinst.d/copy_dtb 4.14.7-93 /boot/vmlinuz-4.14.7-93 run-parts: executing /etc/kernel/postinst.d/copy_dtb2 4.14.7-93 /boot/vmlinuz-4.14.7-93 run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.14.7-93 /boot/vmlinuz-4.14.7-93 update-initramfs: Generating /boot/initrd.img-4.14.7-93 run-parts: executing /etc/kernel/postinst.d/uInitrd 4.14.7-93 /boot/vmlinuz-4.14.7-93 run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.14.7-93 /boot/vmlinuz-4.14.7-93 run-parts: executing /etc/kernel/postinst.d/zImage 4.14.7-93 /boot/vmlinuz-4.14.7-93 Setting up linux-image-xu3 (93-1) ... root@odroid:~#