File: arch-restore-boot-failure.txt
Date: 13-Oct-2017
From: https://www.ostechnix.com/restore-broken-arch-linux-previous-working-state/
If you are an Arch Linux user, you probably know that the recent Linux Kernel
4.13.x branch is causing a lot of issues. Yesterday, I did a full system
upgrade using command "sudo pacman -Syu", and ended up with a broken system.
My Arch Linux would not boot into graphical mode, and kept displaying the error
messages "dependency failed multi-user system" and "dependency failed for
graphical interface". The only option I had is to login to single user
mode and try to rollback the updated packages to their previous versions.
First, login in single user mode. To do so, enter "e" when you see the Grub menu.
Then, find the line that starts with word linux:
linux /boot/vmlinuz-linux root-UUID=d474f2-e6a2-4cc3-9899-aa98af13 rw quiet
At the end of the above line, type the following line:
init=/bin/bash
Then, press F10 or CTRL+X to continue. After couple seconds, you will be landed
into single user mode.
Type the following command to mount your root (/) file system in read/write mode.
mount -n -o remount,rw /
Now, you need to find when you did the full system upgrade. You can easily
find this by looking at your pacman.log file. This file saves all pacman
entries you did in the past.
tail -n 200 /var/log/pacman.log | less
pacman saves all downloaded packages in /var/cache/pacman/pkgs/ folder.
I noted down all updated packages from the screenshot and downgraded them one
by one to earlier version from the cache like below.
(Or use nano to make a simple script file)
pacman -U /var/cache/pacman/pkg/qt5-base-5.9.1-3-x86_64.pkg.tar.xz
... for all the rest of the upgraded packages
After downgrading all packages, type the following command to apply the changes
and start your Arch Linux in to normal mode.
exec /sbin/init