Can't update OS

[ion@ion-desk ~]$ sudo pacman -Syu                                  
[sudo] password for ion: 
:: Synchronising package databases...
error: failed to synchronize all databases (unable to lock database)
[ion@ion-desk ~]$ 

Any suggestion?

Wait a few minutes and try again. Sometimes an updated or some other application will have the DB locked.

If it persists, and you are sure there are no other updates or pacman processes running, you can delete the file /var/lib/pacman/db.lck

Did you update the mirrors before?

Edit: and or what dalto said :backhand_index_pointing_up:

1 Like

Do you have file /etc/pacman.d/endeavouros-mirrorlist?
If not, run commands

sudo touch /etc/pacman.d/endeavouros-mirrorlist
eos-rankmirrors

I did that and the error changes to…

[ion@ion-desk ~]$ sudo pacman -Syu                                  
:: Synchronising package databases...
 endeavouros is up to date
 core is up to date
 extra.db failed to download
 multilib is up to date
 chaotic-aur is up to date
error: failed retrieving file 'extra.db' from mirror.arizona.edu : Failure writing output to destination, passed 1368 returned 1001
error: failed retrieving file 'extra.db' from mirror.arizona.edu : Failure writing output to destination, passed 16375 returned 269
error: failed to synchronize all databases (failed to retrieve some files)
[ion@ion-desk ~]$ 

How might I change my mirror? Thanks in advance.

Are you sure the disk space is not running out?
Check with e.g.

/bin/df -hT

You can update the arch mirrors from the Welcome app.

Good question!

[ion@ion-desk ~]$ /bin/df -hT
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/sda2      ext4      108G  103G     0 100% /
devtmpfs       devtmpfs  4.0M     0  4.0M   0% /dev
tmpfs          tmpfs     2.9G     0  2.9G   0% /dev/shm
efivarfs       efivarfs  128K   26K   98K  21% /sys/firmware/efi/efivars
tmpfs          tmpfs     1.2G  1.5M  1.2G   1% /run
tmpfs          tmpfs     1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
tmpfs          tmpfs     2.9G   16K  2.9G   1% /tmp
/dev/sda1      vfat      2.0G  186M  1.9G  10% /efi
/dev/sdb1      ext4      916G   98G  772G  12% /home/ion/DATA
tmpfs          tmpfs     585M  124K  585M   1% /run/user/1000
[ion@ion-desk ~]$ 

How do I locate the problem file that's causing it?


Looks like this could be a problem.

Edit: How could it be full?

You can probably get some breathing room by cleaning up your pacman cache:

sudo paccache -ruk 3

Thanks for the help, but I caused the problem with a backup that somehow created many large /mnt files. Sorry to bother all of you.

1 Like