Orphaned files in the Arch install
I've made an Arch install in an image file with XFCE, SSH, and VNC.
Upon installing many packages like go, sudo, nano, and pacman-contrib, I've been getting errors like the following:
error: failed to commit transaction (conflicting files)
nano: /usr/bin/nano exists in filesystem
This requires the use of pacman's --overwrite argument.
pacman -Qo /usr/bin/nano spits out error: No package owns /usr/bin/nano.
Exactly the same problem here. Is there any solution available?
I encounter similar problem, except I encountered failed to commit transaction (conflicting files) just after fresh install when I want to install neovim.
Following the guide on archwiki I did pacreport --unowned-files and the output is staggering 6k+ lines; it seems somehow pacman don't even know the OS install.
#!/bin/sh
pkgs=$(wget -q -O - "http://mirror.archlinuxarm.org/aarch64/core/core.db.tar.gz" | tar xOz | grep '.pkg.tar.xz$' | grep -v -e '^linux-' -e '^grub-' -e '^efibootmgr-' -e '^openssh-' | sort | sed 's/-[0-9].*$//')
pacman -S $pkgs --overwrite '*'
I fixed my install with these commands. These are the exact same packages linuxdeploy installs before pacman becomes aware of any packages.