You are not logged in.

#1 2024-03-30 22:16:58

Peels
Member
Registered: 2024-03-19
Posts: 5

[SOLVED] Removing a Broken AUR Package

I've landed myself in a confusing package situation that is likely to be my own fault, but I would very much appreciate any help resolving it.

A few weeks ago, I installed waybar through the AUR. I played around with configuring it and decided to stop using it for a little while.

Today, I decided to come back to it but realized three things:
1. Waybar kept returning:

waybar: error while loading shared libraries: libwireplumber-0.4.so.0: cannot open shared object file: No such file or directory

2. There was no default configuration file or directory in the place waybar's documentation said it should be.
3. Waybar was recently added to the extra repo.

I wanted to remove the waybar package that was obtained from the AUR and install the package from the official repo instead.

The problem that I am running into is that when I try to remove the AUR package using pacman, I get the following:

error: target not found: waybar

Here is what happens when I try to simply install the package from the official repo:

error: failed to commit transaction (conflicting files)
waybar: /usr/lib/systemd/user/waybar.service exists in filesystem
Errors occurred, no packages were upgraded.

I've noticed on the Arch Wiki pacman page, it says I can run "pacman -S --overwrite glob package" to force pacman to overwrite these files, but I am not sure if this is the safe/correct way to do it.

Where might I start with figuring out how to remove this waybar package? In this case, is it appropriate to use the --overwrite swtich when installing waybar from the official repo?

My apologies if I forgot to include any important information. Let me know and I'll provide it ASAP.

Thanks so much! smile

Last edited by Peels (2024-03-31 18:12:18)

Offline

#2 2024-03-30 22:21:07

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,808

Re: [SOLVED] Removing a Broken AUR Package

What AUR package did you actually install? Check your pacman log. Everything you've posted so far doesn't point to a package.

Offline

#3 2024-03-30 22:34:14

Peels
Member
Registered: 2024-03-19
Posts: 5

Re: [SOLVED] Removing a Broken AUR Package

Scimmia wrote:

What AUR package did you actually install? Check your pacman log. Everything you've posted so far doesn't point to a package.

I believe it was waybar-git. There's no mention of waybar in pacman.log which is a bit confusing since I know I had it running at some point.

Offline

#4 2024-03-31 00:32:05

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 12,163
Website

Re: [SOLVED] Removing a Broken AUR Package

Mod note : moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2024-03-31 03:02:40

Peels
Member
Registered: 2024-03-19
Posts: 5

Re: [SOLVED] Removing a Broken AUR Package

Is "pacman -S --overwrite glob package" applicable/safe for me to run in this situation? To be clear, I'm getting this idea from section 3.1 of the pacman entry in the Wiki.

Offline

#6 2024-03-31 03:27:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,923
Website

Re: [SOLVED] Removing a Broken AUR Package

What is the output from `pacman -Qo /usr/lib/systemd/user/waybar.service`?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2024-03-31 03:41:35

Peels
Member
Registered: 2024-03-19
Posts: 5

Re: [SOLVED] Removing a Broken AUR Package

Trilby wrote:

What is the output from `pacman -Qo /usr/lib/systemd/user/waybar.service`?

error: No package owns /usr/lib/systemd/user/waybar.service

Offline

#8 2024-03-31 11:23:44

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,394

Re: [SOLVED] Removing a Broken AUR Package

Then you can safely remove it manually using (requires root rights)

# rm usr/lib/systemd/user/waybar.service

and re-run pacman -Syu .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building to complicated ?
Try clean chroot manager by graysky

Offline

#9 2024-03-31 18:13:31

Peels
Member
Registered: 2024-03-19
Posts: 5

Re: [SOLVED] Removing a Broken AUR Package

Lone_Wolf wrote:

Then you can safely remove it manually using (requires root rights)

# rm usr/lib/systemd/user/waybar.service

and re-run pacman -Syu .

Great. Seems to have worked just fine. Thanks a ton!

Offline

Board footer

Powered by FluxBB