Today, when I updated Arch Linux as usual, then suddenly it brought me to the TTY, which didn’t allow me to change to other TTY (due to NVIDIA graphic card issue which has been attached with my laptop for quite a long time.)
Because I could do nothing, and not sure whether the upgrade was completed, so I made a hard reset.
Then I boot with fallback initrmfs just in case has any error. Luckily, there was no problem to boot.
Then I did a quick check on the database. And found that it was locked. Meaning, I had restarted without finishing the update. This is serious if it happened when upgrading the kernel.
Reading the /var/log/pacman.log, I found that some packages were not updated. Then I just simply did a pacman command, and I got these message,
ldconfig: File /usr/lib/libqca.so is empty, not checked. ldconfig: File /usr/lib/libQt5QuickTest.so is empty, not checked. ldconfig: File /usr/lib/libQt5QuickParticles.so is empty, not checked. ...
Read the forum, the solution to re-install the packages that own these files. So I used pkgfile to search fo the owner of these files. Then, re-installed each packages found.
Then I just made sure all the packages were installed properly with
pacman -Dk #previously is testdb