The last big update, i.e. 0719 stable update, is quite a hard time for me since I switched to manjaro.
As usual, I just ran sudo pacman -Syu
in konsole to initiate an update. As first, everything ran as normal. Suddenly, the terminal got stuck at upgrading a package (seems to be gnome-grub
if I remember correctly). Shortly after that, the whole system got frozen. I waited for a while and nothing changed. I had no choice but to cut off the power. Not surprised, the computer could not boot into the system.
Fortunately, I have learned a little so that I know how to deal this situation. I just used a usb image to boot in and tried to run pacman again to finish the update. But the awful things are there were many file conflicts which forces me to run pacman with the --overwrite
option. Then I rebooted the computer and this time, I could log into the desktop. I thought that "Hi, although a bit trouble, nothing serious really." But I'm wrong. I found that I could not open any applications even the application launcher! It seems that my kde environment broke totally and I had no idea about how to amend it.
I must say I fell into panic in a certain degree. Especially, after searching the forum, I found no direct answer to the problem I met. At last, I decided to reinstall all the packages by
sudo pacman -Syu $(pacman -Qqen) --overwrite '*"
.
Luckily, this command saves my kde desktop. After reboot, everything seems working in a right way although I still suspect this broken update may leave some bad side effects I haven't notice yet.
This is not the first time I met that system gets frozed when updating in a terminal. I've heard it may be saver to log into a tty before the update and run the update in the tty. Is that true? Any more advices to avoid a broken update?