You are not logged in.

#1 2024-04-22 14:19:03

X3N0N
Member
Registered: 2024-04-22
Posts: 14

[SOLVED] package conflict with removed package

Hi everyone,

This is my first post and I hope I adhere to all the standards.
If you need any information please let me know.

I installed pipewire following the wiki because I heard about the cool features, even tough I also heard there were problems with bluetooth.
Everything worked fine except for my bluetooth headphones, I got constant stuttering and short disconnects so I decided to change back to pulseaudio.
After none of the troubleshooting tips worked.

So I removed pipewire and installed pulseaudio again.
Some packages depend on either pulseaudio or pipewire so I had to remove them with sudo pacman -Rdd <package>

Now as I tried to upgrade my system it gave me the following error:
pipewire-pulse-1:1.0.5-1 and pulseaudio-17.0-3 are in conflict. Remove pulseaudio? [y/N]

So I tried to remove pipewire-pulse with sudo pacman -R pipewire-pulse but:
error: target not found: pipewire-pulse

So my question is: Why is in in conflict with a package, that doesn't even exist anymore?
What would you recommend to do?

❯ pacman -Q | grep pipewire
kpipewire 6.0.4-1
libpipewire 1:1.0.5-1
pipewire 1:1.0.5-1
pipewire-session-manager 1:1.0.4-4

❯ pacman -Q | grep pulse
libpulse 17.0-3
pulse-native-provider 1:1.0.4-4
pulseaudio 17.0-3
pulseaudio-alsa 1:1.2.7.1-2
pulseaudio-bluetooth 17.0-3
pulseaudio-equalizer 17.0-3
pulseaudio-jack 17.0-3

❯ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 23
Tile Size: 65472
User Name: nico
Host Name: Arch
Server Name: pulseaudio
Server Version: 17.0
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_0c_00.4.analog-stereo
Default Source: alsa_input.usb-Generic_WEB_CAMERA_M9_Pro_200901010001-02.analog-stereo
Cookie: 5df2:b7ee

Thanks in advance smile

Last edited by X3N0N (2024-04-23 16:53:06)

Offline

#2 2024-04-22 14:31:15

loqs
Member
Registered: 2014-03-06
Posts: 17,472

Re: [SOLVED] package conflict with removed package

Please post the full output of the command that generated the error in code tags.  pipewire-pulse still exists in the official repositories and is a dependency of many packages.  pacman may want to install pipewire-pulse to fulfill a dependency of another package which would require removing pulseaudio.

Offline

#3 2024-04-22 14:39:07

X3N0N
Member
Registered: 2024-04-22
Posts: 14

Re: [SOLVED] package conflict with removed package

Thanks for the quick response!

Here is the full output of the command that caused the error:
❯ sudo pacman -Syyu
[sudo] password for nico:
:: Synchronizing package databases...
core                  127,4 KiB   347 KiB/s 00:00 [-----------------] 100%
extra                   8,1 MiB  14,9 MiB/s 00:01 [-----------------] 100%
multilib              138,5 KiB   396 KiB/s 00:00 [-----------------] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
:: pipewire-pulse-1:1.0.5-1 and pulseaudio-17.0-3 are in conflict. Remove pulseaudio? [y/N] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: pipewire-pulse-1:1.0.5-1 and pulseaudio-17.0-3 are in conflict

This makes a lot of sense, thanks! Is there any other commands I should post? smile

Offline

#4 2024-04-22 14:46:25

seth
Member
Registered: 2012-09-03
Posts: 51,825

Re: [SOLVED] package conflict with removed package

Please use [code][/code] tags and say "y" when being asked whether to remoev pulseaudio.
Still problems?

Also check the pacman manpage for what it does and stop using the second "y" unless you really. REALLY. mean to.

Online

#5 2024-04-22 14:46:39

loqs
Member
Registered: 2014-03-06
Posts: 17,472

Re: [SOLVED] package conflict with removed package

pacman -Dk

Please use code tags.
Edit:
@seth broken dependency caused by the `pacman -Rdd`?

Last edited by loqs (2024-04-22 14:48:36)

Offline

#6 2024-04-22 14:56:25

X3N0N
Member
Registered: 2024-04-22
Posts: 14

Re: [SOLVED] package conflict with removed package

Thanks for the tips!

❯ pacman -Dk
error: missing 'wireplumber' dependency for 'pipewire-session-manager'
error: missing 'pipewire-pulse' dependency for 'pulse-native-provider'

A very handy command smile

This is weird wireplumber and pipewire-session-manager should be mutually exclusive, right?

Offline

#7 2024-04-22 14:59:46

loqs
Member
Registered: 2014-03-06
Posts: 17,472

Re: [SOLVED] package conflict with removed package

X3N0N wrote:

This is weird wireplumber and pipewire-session-manager should be mutually exclusive, right?

Di you use something like the following which would ignore all dependency checks such as being mutually exclusive?

pacman -Rdd
pacman -Sdd

Offline

#8 2024-04-22 15:11:56

X3N0N
Member
Registered: 2024-04-22
Posts: 14

Re: [SOLVED] package conflict with removed package

I usually don't use it, as I know that it's dangerous, but I was following a guide and found out that there really wasn't a better way other than uninstalling and reinstalling many core packages that all depended on either pipewire or pulseaudio, so I removed as much as possible without the -Rdd (everything that directly depends on pipewire) and only pipewire itself was removed ignoring dependency checks, if I remember correctly.

Last edited by X3N0N (2024-04-22 15:18:57)

Offline

#9 2024-04-22 15:25:21

loqs
Member
Registered: 2014-03-06
Posts: 17,472

Re: [SOLVED] package conflict with removed package

pacman -Q | grep pipewire
kpipewire 6.0.4-1
libpipewire 1:1.0.5-1
pipewire 1:1.0.5-1
pipewire-session-manager 1:1.0.4-4

pipewire and pipewire-session-manager are still installed plus pulse-native-provider.

Last edited by loqs (2024-04-22 15:26:55)

Offline

#10 2024-04-22 15:35:22

X3N0N
Member
Registered: 2024-04-22
Posts: 14

Re: [SOLVED] package conflict with removed package

Yes I know, pipewire-session manager is required by kwin for some reason and the official Arch wiki for pipewire recommends to install it even if you want to use pulseaudio.
Do you know what I could use instead of pipewire-session manager other than wireplumber?

wireplumber does not seem to be installed:

❯ pacman -Q wireplumber
error: package 'wireplumber' was not found

I installed pipewire when the problem was already present and thought it might remove something with which it is mutually exclusive, but now it would once again break dependencies:

❯ sudo pacman -R pipewire
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing pipewire breaks dependency 'pipewire' required by obs-studio
:: removing pipewire breaks dependency 'pipewire' required by xdg-desktop-portal

I could remove pulse-native-provider without any problems if you think it would solve anything.
I just assumed that it belongs to pulseaudio.

Offline

#11 2024-04-22 15:59:24

loqs
Member
Registered: 2014-03-06
Posts: 17,472

Re: [SOLVED] package conflict with removed package

What happens if you remove pulse-native-provider which is also provided by pulseaudio and install wireplumber?  Does `pacman -Dk` then report any issues?

Last edited by loqs (2024-04-22 16:00:06)

Offline

#12 2024-04-22 16:05:37

X3N0N
Member
Registered: 2024-04-22
Posts: 14

Re: [SOLVED] package conflict with removed package

Yes, thanks you very much! I am able to upgrade my system now.

❯ sudo pacman -R pulse-native-provider
[sudo] password for nico: 
checking dependencies...
:: libpulse optionally requires pulse-native-provider: PulseAudio backend

Packages (1) pulse-native-provider-1:1.0.4-4


:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/1) removing pulse-native-provider               [-----------------] 100%
❯ pacman -Dk
error: missing 'wireplumber' dependency for 'pipewire-session-manager'
❯ sudo pacman -S wireplumber
resolving dependencies...
looking for conflicting packages...

Packages (2) libwireplumber-0.5.1-2  wireplumber-0.5.1-2

Total Download Size:   0,48 MiB
Total Installed Size:  2,49 MiB
Net Upgrade Size:      0,97 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 wireplumber-0.5....   229,7 KiB   643 KiB/s 00:00 [-----------------] 100%
 libwireplumber-0...   263,4 KiB   652 KiB/s 00:00 [-----------------] 100%
 Total (2/2)           493,1 KiB  1147 KiB/s 00:00 [-----------------] 100%
(2/2) checking keys in keyring                     [-----------------] 100%
(2/2) checking package integrity                   [-----------------] 100%
(2/2) loading package files                        [-----------------] 100%
(2/2) checking for file conflicts                  [-----------------] 100%
(2/2) checking available disk space                [-----------------] 100%
:: Processing package changes...
(1/2) upgrading libwireplumber                     [-----------------] 100%
(2/2) installing wireplumber                       [-----------------] 100%
Created symlink /etc/systemd/user/pipewire-session-manager.service → /usr/lib/systemd/user/wireplumber.service.
Created symlink /etc/systemd/user/pipewire.service.wants/wireplumber.service → /usr/lib/systemd/user/wireplumber.service.
Optional dependencies for wireplumber
    wireplumber-docs: Documentation
:: Running post-transaction hooks...
(1/2) Reloading user manager configuration...
(2/2) Arming ConditionNeedsUpdate...
❯ pacman -Dk
No database errors have been found!

How do I now properly switch back to pulseaudio though?
Do you think something like this will happen again if I do the route of removing pipewire with -Rdd?

Offline

#13 2024-04-22 16:10:31

loqs
Member
Registered: 2014-03-06
Posts: 17,472

Re: [SOLVED] package conflict with removed package

You have pulseaudio installed on the system?  Is it enabled and can you use it?  Is pipewire running in the user session but not actually connected to any audio devices?

Offline

#14 2024-04-22 16:22:23

X3N0N
Member
Registered: 2024-04-22
Posts: 14

Re: [SOLVED] package conflict with removed package

I am using pulseaudio according to:

❯ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 44
Tile Size: 65472
User Name: nico
Host Name: Arch
Server Name: pulseaudio
Server Version: 17.0
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_0c_00.4.analog-stereo
Default Source: alsa_input.usb-Generic_WEB_CAMERA_M9_Pro_200901010001-02.analog-stereo
Cookie: 5df2:b7ee

But after I would restart my system it might be different.
When I installed wireplumbler it created a symlink to its service and might use that instead.

I suspect pulseaudio might not be installed correctly, at least when it comes to bluetooth.
It runs fine using speakers.
Before switching my bluetooth headphone ran perfectly fine, but under pipewire it was practically unusable.
After I switched to pulse again, there where disconnects followed by very low audio bitrate that gradually got better after a few seconds.

I maked the pipewire service so it wouldn't run(as recommended in the guide to switching back to pulseaudio):

❯ systemctl --user status pipewire
○ pipewire.service
     Loaded: masked (Reason: Unit pipewire.service is masked.)
     Active: inactive (dead)
TriggeredBy: ○ pipewire.socket

Wireplumber is now enabled after the install, but no active since I have not restarted the system/started it manually:

❯ systemctl --user status wireplumber
○ wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset
: enabled)
     Active: inactive (dead)

Pulseaudio is still enabled and active:

❯ systemctl --user status pulseaudio
● pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; preset: 
enabled)
     Active: active (running) since Mon 2024-04-22 14:06:43 CEST
; 4h 13min ago
TriggeredBy: ● pulseaudio.socket
   Main PID: 2651 (pulseaudio)
      Tasks: 10 (limit: 38351)
     Memory: 54.2M (peak: 55.1M)
        CPU: 57.498s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pu
lseaudio.service
             ├─2651 /usr/bin/pulseaudio --daemonize=no --log-ta
rget=journal
             └─2826 /usr/lib/pulse/gsettings-helper

Apr 22 14:06:41 Arch systemd[2638]: Starting Sound Service...
Apr 22 14:06:43 Arch systemd[2638]: Started Sound Service.
Apr 22 14:07:23 Arch pulseaudio[2651]: Battery Leve
l: 80%

Last edited by X3N0N (2024-04-22 16:24:37)

Offline

#15 2024-04-22 16:39:43

X3N0N
Member
Registered: 2024-04-22
Posts: 14

Re: [SOLVED] package conflict with removed package

Thanks a lot again for you time and help! smile
Unfortunately I need to leave now for today as I have an appointment hmm
But I already manged to upgrade my system and that is all thanks to your advice!

If you have any good ideas I'd of course still love to try them when I come back!
Have a nice day smile

Offline

#16 2024-04-22 18:41:12

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,827

Re: [SOLVED] package conflict with removed package

wireplumber and pulseaudio will logically conflict, you should either opt for pipewire-media-session or switch your stack to pipewire by installing pipewire-pulse now.

Online

#17 2024-04-23 06:21:47

X3N0N
Member
Registered: 2024-04-22
Posts: 14

Re: [SOLVED] package conflict with removed package

Yes, that makes sense, however I am in a bit of a weird situation now.
Back when I was following the advice here and installed wireplumber, as pacman thought it was required for pipewire-media-session.
So I have both installed now.

When trying to reinstall pipewire-media-session I get the following and it doesn't make any sense to me xD

❯ sudo pacman -S pipewire-media-session
[sudo] password for nico: 
resolving dependencies...
looking for conflicting packages...
:: pipewire-media-session-1:0.4.2-2 and wireplumber-0.5.1-2 are in conflict. Remove wireplumber? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing wireplumber breaks dependency 'wireplumber' required by pipewire-session-manager

❯ sudo pacman -R wireplumber
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing wireplumber breaks dependency 'wireplumber' required by pipewire-session-manager

I know I can use -Rdd, but that's probably how I ended up here so I want to make sure this time.
Is there a way to fix this dependency hell?
Can you somehow edit the packages to point to pulseaudio instead of pipewire or recalculate the dependencies or repair the database

Currently installed:

❯ pacman -Q | grep wire
kpipewire 6.0.4-1
libpipewire 1:1.0.5-1
libwireplumber 0.5.1-2
pipewire 1:1.0.5-1
pipewire-session-manager 1:1.0.5-1
wireguard-tools 1.0.20210914-2
wireplumber 0.5.1-2
❯ pacman -Q | grep pulse
libpulse 17.0-3
pulseaudio 17.0-3
pulseaudio-alsa 1:1.2.7.1-2
pulseaudio-bluetooth 17.0-3
pulseaudio-equalizer 17.0-3
pulseaudio-jack 17.0-3
❯ pacman -Dk
No database errors have been found!

Last edited by X3N0N (2024-04-23 06:24:15)

Offline

#18 2024-04-23 06:32:22

seth
Member
Registered: 2012-09-03
Posts: 51,825

Re: [SOLVED] package conflict with removed package

installed wireplumber, as pacman thought it was required for pipewire-media-session

Most likely not, they're reversely conflicted. You're meaning pipewire-session-manager.

pacman -Qi pipewire-session-manager

It likely was required by pipewire-pulse and now isn't a dependency for anything anymore (unless you've xdg-desktop-portal-wlr or kwin) so you might be able to remove it.

Sorry I didn't read your OP until now.
nb. there were recent issues in bluez that might have caused those symptoms.

Online

#19 2024-04-23 06:48:40

X3N0N
Member
Registered: 2024-04-22
Posts: 14

Re: [SOLVED] package conflict with removed package

Yeah, I'd say the same xD
It's not supposed to be like that, right?

❯ pacman -Qi pipewire-session-manager
Name            : pipewire-session-manager
Version         : 1:1.0.5-1
Description     : Session manager for PipeWire (default provider)
Architecture    : x86_64
URL             : https://pipewire.org
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : wireplumber
Optional Deps   : None
Required By     : kwin
Optional For    : pipewire
Conflicts With  : None
Replaces        : None
Installed Size  : 0,00 B
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : Mo 15 Apr 2024 18:17:57 CEST
Install Date    : Mo 22 Apr 2024 18:03:41 CEST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature


❯ pacman -Qi wireplumber
Name            : wireplumber
Version         : 0.5.2-1
Description     : Session / policy manager implementation for PipeWire
Architecture    : x86_64
URL             : https://pipewire.pages.freedesktop.org/wireplumber/
Licenses        : MIT
Groups          : None
Provides        : pipewire-session-manager
Depends On      : libwireplumber=0.5.2-1  gcc-libs  glibc
                  libglib-2.0.so=0-64  libgobject-2.0.so=0-64
                  libgio-2.0.so=0-64  libpipewire  libpipewire-0.3.so=0-64
                  libsystemd.so=0-64  lua  pipewire  systemd-libs
Optional Deps   : wireplumber-docs: Documentation
Required By     : kwin  pipewire-session-manager
Optional For    : pipewire
Conflicts With  : pipewire-media-session
Replaces        : None
Installed Size  : 996,56 KiB
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : Mo 22 Apr 2024 19:01:57 CEST
Install Date    : Di 23 Apr 2024 08:19:02 CEST
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : Signature

Well it says, pipewire-session-manager depends on wireplumber. I know that's incorrect, but how could I fix it?

Do you think the bluetooth issues I had, might be fixed now with pipewire?

Offline

#20 2024-04-23 06:59:02

seth
Member
Registered: 2012-09-03
Posts: 51,825

Re: [SOLVED] package conflict with removed package

pipewire-session-manager depends on wireplumber. I know that's incorrect, but how could I fix it?

https://archlinux.org/packages/extra/x8 … n-manager/
It's not "incorrect"

"kwin depends on pipewire-session-manager depends on wireplumber" - you're not getting away from it w/o removing kwin (though it doesn't seem to have a direct dependency on wireplumber, https://archlinux.org/packages/extra/x86_64/kwin/ )
=> disable or mask wireplumber, you can't remove the package w/o causing further dependency errors.
(You could replace it w/ a dummy but if kwin links one of the libraries it'll just crash)

Does your sound actually perform better now and did you update bluez during any of this?

Online

#21 2024-04-23 07:38:42

X3N0N
Member
Registered: 2024-04-22
Posts: 14

Re: [SOLVED] package conflict with removed package

Ohhh thank you very much! That makes so much sense, I confused it with pipewire-media-session xD (I'm still a bit tired)

I somehow managed to install pipewire-media-session now, I think it was uninstalling and reinstalling pipewire-session-manager.
(The installed size was 0.00B from the -Qi command, so something was wrong)

Than when installing pipewire-media-session it removed wireplumber and pipewire-session-manager.

I think it might be fixed now big_smile

Does this look right to you:

❯ pacman -Q | grep pulse
libpulse 17.0-3
pulseaudio 17.0-3
pulseaudio-alsa 1:1.2.7.1-2
pulseaudio-bluetooth 17.0-3
pulseaudio-equalizer 17.0-3
pulseaudio-jack 17.0-3
❯ pacman -Q | grep pipewire
kpipewire 6.0.4-1
libpipewire 1:1.0.5-1
pipewire 1:1.0.5-1
pipewire-media-session 1:0.4.2-2
❯ systemctl --user status wireplumber
Unit wireplumber.service could not be found.
❯ systemctl --user status pipewire-media-session
○ pipewire-media-session.service - PipeWire Media Session Manager
     Loaded: loaded (/usr/lib/systemd/user/pipewire-media-session.service; 
enabled; preset: enabled)
     Active: inactive (dead)
❯ systemctl --user status pipewire
○ pipewire.service
     Loaded: masked (Reason: Unit pipewire.service is masked.)
     Active: inactive (dead)
TriggeredBy: ○ pipewire.socket
❯ systemctl --user status pulseaudio
● pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; preset: 
enabled)
     Active: active (running) since Mon 2024-04-22 14:06:43 CEST
; 19h ago
TriggeredBy: ● pulseaudio.socket
   Main PID: 2651 (pulseaudio)
      Tasks: 10 (limit: 38351)
     Memory: 54.2M (peak: 55.2M)
        CPU: 1min 8.873s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pu
lseaudio.service
             ├─2651 /usr/bin/pulseaudio --daemonize=no --log-ta
rget=journal
             └─2826 /usr/lib/pulse/gsettings-helper

Apr 22 14:06:41 Arch systemd[2638]: Starting Sound Service...
Apr 22 14:06:43 Arch systemd[2638]: Started Sound Service.
Apr 22 14:07:23 Arch pulseaudio[2651]: Battery Level: 80%

Is there anything else I should check or do?

Offline

#22 2024-04-23 07:43:54

seth
Member
Registered: 2012-09-03
Posts: 51,825

Re: [SOLVED] package conflict with removed package

According to https://archlinux.org/packages/extra/x86_64/kwin/ kwin hard-depends on pipewire-session-manager, pipewire-session-manager depends on wireplumber and wireplumber reverse-conficts w/ pipewire-media-session

pacman -Dk

should expose that?
Or did you remove kwin?

Online

#23 2024-04-23 08:02:28

X3N0N
Member
Registered: 2024-04-22
Posts: 14

Re: [SOLVED] package conflict with removed package

I didn't have to remove kwin and didn't have to use -Rdd
also pacman -Dk said that there were no database errors.

❯ pacman -Dk
No database errors have been found!

I don't have pipewire-session-manager installed anymore, it got removed when I installed pipewire-media-session.
Maybe that is an alternative when using pulseaudio or what do think smile

Offline

#24 2024-04-23 08:16:31

seth
Member
Registered: 2012-09-03
Posts: 51,825

Re: [SOLVED] package conflict with removed package

Edit: scratch that - https://archlinux.org/packages/extra/x8 … n-manager/ provides pipewire-session-manager

Last edited by seth (2024-04-23 08:18:19)

Online

#25 2024-04-23 08:21:27

X3N0N
Member
Registered: 2024-04-22
Posts: 14

Re: [SOLVED] package conflict with removed package

Ohh nice so I should be good to go? smile

Offline

Board footer

Powered by FluxBB