Pacman disconnected at proceed with installation Y/n

I was updating Manjaro over SSH. Pacman was displaying

:: Proceed with installation? [Y/n]

and the SSH was disconnected

client_loop: send disconnect: Connection reset

I reconnected to it and tried to update, but now it says:

sudo pacman -Syu
:: Synchronising package databases...
error: failed to synchronize all databases (unable to lock database)

I repeated the command, but the result was the same. What to do?

so because your ssh connection got kicked out it exited all the app’s while they were running.
This means Pacman left if’s lock file in place. If you are sure the other instance of pacman exited you can manually remove the lock file with
sudo rm /var/lib/pacman/db.lck

then run the updates to sync the DB files.
sudo pacman -Syu

I would advise checking out screen to avoid these issues with ssh getting booted out in the future. :slight_smile:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.