くろひょうのぶろぐ

yayコマンドでアップデート出来ない
2021-09-27 22:38
$ yay -Syu --noconfirm
 -> /var/lib/pacman/db.lck is present.
 -> There may be another Pacman instance running. Waiting...
$ ls -l /var/lib/pacman/db.lck 
---------- 1 root root 0 Sep 26 19:50 /var/lib/pacman/db.lck
$ sudo pacman -Syu --noconfirm
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)
$ sudo rm /var/lib/pacman/db.lck 
$ yay -Syu --noconfirm
:: Synchronizing package databases...
 core                            137.3 KiB   974 KiB/s 00:00 [################################] 100%
 extra                          1567.0 KiB  6.96 MiB/s 00:00 [################################] 100%
 community                         5.8 MiB  29.0 MiB/s 00:00 [################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

...

:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
:: Searching databases for updates...
:: Searching AUR for updates...
 there is nothing to do
# ArchLinux