mlytle0
November 26, 2022, 1:20pm
1
I installed Motivewave using Debtap, then I removed it successfully with pacman, as I am trying to reinstall from the aur so that I can get updates, so I get:
“error: failed to commit transaction (conflicting files)
motivewave: /usr/bin/motivewave exists in filesystem
Errors occurred, no packages were upgraded.”
Do I just go in and delete this directory so that this program can be reinstalled, or is there more to it?
pebcak
November 26, 2022, 1:26pm
2
Couldn’t you just uninstall first motivewave that you installed with:
sudo pacman -R motivewave ## or the actual name of the package
?
Also:
I can’t install or update a package because I get (something like) this:
error: could not prepare transaction
error: failed to commit transaction (conflicting files)
libname: /insert/file/name/here exists in filesystem
Errors occurred, no packages were upgraded.
Why is this happening?
The package manager, pacman , has detected an unexpected file already exists on disk. By design it will not overwrite files that already exist. This is a design feature, not a flaw - package managers are de…
1 Like
mlytle0
November 26, 2022, 1:29pm
3
I actually did this: pacman -Rns motivewave, and I’m stuck. It did say removed sucessfully, but it looks like the file structure is different or something when you install it the way I did, and it doesn’t like it, but I’m not sure.
pebcak
November 26, 2022, 1:31pm
4
mlytle0:
I’m stuck
That means it removed the package and left behind some files which give you
?
In that case look into the post I linked to above.
mlytle0
November 26, 2022, 1:48pm
5
I can’t find the files that are in the way. A search turns up nothing, and it won’t let me delete the offending directory.
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [--------------------------------] 100%
(1/1) checking package integrity [--------------------------------] 100%
(1/1) loading package files [--------------------------------] 100%
(1/1) checking for file conflicts [--------------------------------] 100%
error: failed to commit transaction (conflicting files)
motivewave: /usr/bin/motivewave exists in filesystem
Errors occurred, no packages were upgraded.
[mark@mark-optiplex9020 ~]$ pacman -Qo /usr/bin/motivewave
error: No package owns /usr/bin/motivewave
[mark@mark-optiplex9020 ~]$ pacman -Qo /usr/bin/motivewave
error: No package owns /usr/bin/motivewave
[mark@mark-optiplex9020 ~]$ rm /usr/bin/motivewave
rm: cannot remove ‘/usr/bin/motivewave’: Permission denied
[mark@mark-optiplex9020 ~]$
It says in your link pacman has an override function, since this is in the aur, I will have to use paru or yay. Same syntax would work?
pebcak
November 26, 2022, 1:52pm
6
You need to be root to remove that file:
sudo rm /usr/bin/motivewave
You could also build it locally yourself with makepkg command line and use pacman with --overwrite option to install it.
1 Like
mlytle0
November 26, 2022, 1:54pm
7
I should have known that, duh. Thanks for helping me out.
1 Like
pebcak
November 26, 2022, 1:55pm
8
No problem! Glad I could help!
system
Closed
November 28, 2022, 1:56pm
9
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.