在使用vcpkg时,遇到了关于pacman的错误,错误日志如下:
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
if you're sure a package manager is not already
running, you can remove /var/lib/pacman/db.lck
暂时没有找到解决方法,广大码友如果知道解决方法,希望给我留言。我会继续寻找解决方法,如果有了解决方法第一时间更新。
删除db.lck文件即可。路径:“F:\wjb\code\vcpkg-master\downloads\tools\msys2-20200812\msys64\var\lib\pacman",其中”“F:\wjb\code\vcpkg-master”是个人vcpkg的本地路径。