linuxdeploy icon indicating copy to clipboard operation
linuxdeploy copied to clipboard

Orphaned files in the Arch install

Open hacker1024 opened this issue 5 years ago • 3 comments

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.

hacker1024 avatar Oct 04 '20 14:10 hacker1024

Exactly the same problem here. Is there any solution available?

sunarowicz avatar Sep 05 '21 19:09 sunarowicz

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.

LIParadise avatar Dec 30 '21 23:12 LIParadise

#!/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.

linus307 avatar Mar 29 '22 20:03 linus307