Conflicts updating libcanberra

Are there some known issues due to the latest updates?
Couldn’t find any.

yay -Syu
:: Paketdatenbanken werden synchronisiert …
 core ist aktuell
 extra ist aktuell
 community ist aktuell
 multilib ist aktuell
 endeavouros ist aktuell
:: Vollständige Systemaktualisierung wird gestartet …
:: libcanberra-pulse durch extra/libcanberra ersetzen? [J/n] j
Abhängigkeiten werden aufgelöst …
Nach in Konflikt stehenden Paketen wird gesucht …

Pakete (16) alsa-lib-1.2.5-2  alsa-plugins-1:1.2.5-2  alsa-topology-conf-1.2.5-1  alsa-ucm-conf-1.2.5-1  alsa-utils-1.2.5-2  at-spi2-core-2.40.2-1  libcanberra-0.30+2+gc0620e4-4
            libcanberra-pulse-0.30+2+gc0620e4-3 [Entfernung]  libogg-1.3.5-1  libqmi-1.28.6-1  osinfo-db-20210531-1  pulseaudio-alsa-1:1.2.5-2  vte-common-0.64.2-1  vte3-0.64.2-1  wine-6.10-1
            youtube-dl-2021.06.06-1

If I choose not to replace libcanberra the update process is aborted.

there is no conflict, the package has been moved to a separate name probably but it’s still in the arch repo (under extra), it’s safe to say yes

looks so weird to see J/n… ja/nein?

2 Likes

Try

sudo pacman -Rdd libcanberra
sudo pacman -Syu

Hopefully this will install libcanberra-pulse when the second command has been run

:+1:
y/n (yes/no) :wink:

1 Like

It’s very rare you actually need to use Rdd (totally breaking the dependency system, horrible idea), it should be safe to just hit yes on the ja/nein prompt that pacman gives you. I did this update this morning without a hitch

3 Likes

Oh. I assumed the user already tried the Yes (‘Y’) option. If that did not work, one can bypass the problem with a -Rdd for the old package since the upgrade will install its replacement anyway.

After removing libcanberra I was at least able to update the rest of the packages.

yay -Syu
:: Paketdatenbanken werden synchronisiert …
 core ist aktuell
 extra ist aktuell
 community ist aktuell
 multilib ist aktuell
 endeavouros ist aktuell
:: Vollständige Systemaktualisierung wird gestartet …
:: libcanberra-pulse durch extra/libcanberra ersetzen? [J/n] n
Abhängigkeiten werden aufgelöst …
Nach in Konflikt stehenden Paketen wird gesucht …

Pakete (14) alsa-lib-1.2.5-2  alsa-plugins-1:1.2.5-2  alsa-topology-conf-1.2.5-1  alsa-ucm-conf-1.2.5-1  alsa-utils-1.2.5-2  at-spi2-core-2.40.2-1  libogg-1.3.5-1  libqmi-1.28.6-1
            osinfo-db-20210531-1  pulseaudio-alsa-1:1.2.5-2  vte-common-0.64.2-1  vte3-0.64.2-1  wine-6.10-1  youtube-dl-2021.06.06-1

Gesamtgröße des Downloads:              66,69 MiB
Gesamtgröße der installierten Pakete:  514,01 MiB
Größendifferenz der Aktualisierung:      3,78 MiB

:: Installation fortsetzen? [J/n] 
:: Pakete werden empfangen …
 alsa-topology-conf-1.2.5-1-any                                                              13,5 KiB   112 KiB/s 00:00 [------------------------------------------------------------------------] 100%
 alsa-ucm-conf-1.2.5-1-any                                                                   45,0 KiB   321 KiB/s 00:00 [------------------------------------------------------------------------] 100%
 alsa-plugins-1:1.2.5-2-x86_64                                                               77,6 KiB   449 KiB/s 00:00 [------------------------------------------------------------------------] 100%
 alsa-lib-1.2.5-2-x86_64                                                                    471,8 KiB  2,19 MiB/s 00:00 [------------------------------------------------------------------------] 100%
 at-spi2-core-2.40.2-1-x86_64                                                               260,0 KiB  1083 KiB/s 00:00 [------------------------------------------------------------------------] 100%
 libogg-1.3.5-1-x86_64                                                                      199,2 KiB  3,04 MiB/s 00:00 [------------------------------------------------------------------------] 100%
 alsa-utils-1.2.5-2-x86_64                                                                 1154,7 KiB  4,40 MiB/s 00:00 [------------------------------------------------------------------------] 100%
 osinfo-db-20210531-1-any                                                                   175,8 KiB  2,72 MiB/s 00:00 [------------------------------------------------------------------------] 100%
 libqmi-1.28.6-1-x86_64                                                                    1875,6 KiB  19,5 MiB/s 00:00 [------------------------------------------------------------------------] 100%
 pulseaudio-alsa-1:1.2.5-2-x86_64                                                             2,4 KiB  71,8 KiB/s 00:00 [------------------------------------------------------------------------] 100%
 vte-common-0.64.2-1-x86_64                                                                   6,8 KiB   263 KiB/s 00:00 [------------------------------------------------------------------------] 100%
 vte3-0.64.2-1-x86_64                                                                       358,8 KiB  8,15 MiB/s 00:00 [------------------------------------------------------------------------] 100%
 youtube-dl-2021.06.06-1-any                                                                  2,3 MiB  11,2 MiB/s 00:00 [------------------------------------------------------------------------] 100%
 wine-6.10-1-x86_64                                                                          59,9 MiB  55,3 MiB/s 00:01 [------------------------------------------------------------------------] 100%
 Gesamt (14/14)                                                                              66,7 MiB  47,9 MiB/s 00:01 [------------------------------------------------------------------------] 100%
(14/14) Schlüssel im Schlüsselbund werden geprüft                                                                       [------------------------------------------------------------------------] 100%
(14/14) Paket-Integrität wird überprüft                                                                                 [------------------------------------------------------------------------] 100%
(14/14) Paket-Dateien werden geladen                                                                                    [------------------------------------------------------------------------] 100%
(14/14) Auf Dateikonflikte wird geprüft                                                                                 [------------------------------------------------------------------------] 100%
:: Paketänderungen werden verarbeitet …
( 1/14) Aktualisierung läuft alsa-topology-conf                                                                         [------------------------------------------------------------------------] 100%
( 2/14) Aktualisierung läuft alsa-ucm-conf                                                                              [------------------------------------------------------------------------] 100%
( 3/14) Aktualisierung läuft alsa-lib                                                                                   [------------------------------------------------------------------------] 100%
WARNING: Non-backwards compatible changes to ALSA require restarting of audio engines (e.g. pulseaudio or pipewire) using it.
( 4/14) Aktualisierung läuft alsa-plugins                                                                               [------------------------------------------------------------------------] 100%
( 5/14) Aktualisierung läuft alsa-utils                                                                                 [------------------------------------------------------------------------] 100%
( 6/14) Aktualisierung läuft at-spi2-core                                                                               [------------------------------------------------------------------------] 100%
( 7/14) Aktualisierung läuft libogg                                                                                     [------------------------------------------------------------------------] 100%
( 8/14) Aktualisierung läuft libqmi                                                                                     [------------------------------------------------------------------------] 100%
( 9/14) Aktualisierung läuft osinfo-db                                                                                  [------------------------------------------------------------------------] 100%
(10/14) Aktualisierung läuft pulseaudio-alsa                                                                            [------------------------------------------------------------------------] 100%
(11/14) Aktualisierung läuft vte-common                                                                                 [------------------------------------------------------------------------] 100%
(12/14) Aktualisierung läuft vte3                                                                                       [------------------------------------------------------------------------] 100%
(13/14) Aktualisierung läuft wine                                                                                       [------------------------------------------------------------------------] 100%
(14/14) Aktualisierung läuft youtube-dl                                                                                 [------------------------------------------------------------------------] 100%
:: Post-transaction-Hooks werden gestartet …
( 1/10) Registering binary formats...
( 2/10) Reloading system manager configuration...
( 3/10) Reloading device manager configuration...
( 4/10) Arming ConditionNeedsUpdate...
( 5/10) Refreshing PackageKit...
( 6/10) Updating fontconfig cache...
( 7/10) Updating 32-bit fontconfig cache...
( 8/10) pacmerge.hook
( 9/10) Checking which packages need to be rebuilt
foreign cddb_get
foreign gnomecanvas-perl
foreign gnome-perl
foreign gnome-vfs-perl
foreign pamac-aur
foreign perl-gnome2-wnck
foreign perl-goo-canvas
foreign perl-goocanvas2-cairotypes
foreign perl-gtk2-imageview
foreign perl-io-socket-socks
foreign perl-json-maybexs
foreign perl-lwp-protocol-socks
foreign perl-uri-simple
foreign perl-webservice-gyazo-b
(10/10) Updating the desktop file MIME type cache...

As you can see I had to choose not to replace the package. If I would have chosen to replace it, the update would still have wanted to replace the needed stuff.

Tip: prefix your command with LANG=C to get a terminal output in English. If you want to of course.

2 Likes

After that was done I was able to update libcanberra itself.

yay -Syu
:: Paketdatenbanken werden synchronisiert …
 core ist aktuell
 extra ist aktuell
 community ist aktuell
 multilib ist aktuell
 endeavouros ist aktuell
:: Vollständige Systemaktualisierung wird gestartet …
:: libcanberra-pulse durch extra/libcanberra ersetzen? [J/n] 
Abhängigkeiten werden aufgelöst …
Nach in Konflikt stehenden Paketen wird gesucht …

Pakete (2) libcanberra-0.30+2+gc0620e4-4  libcanberra-pulse-0.30+2+gc0620e4-3 [Entfernung]

Gesamtgröße des Downloads:             0,09 MiB
Gesamtgröße der installierten Pakete:  0,43 MiB
Größendifferenz der Aktualisierung:    0,39 MiB

:: Installation fortsetzen? [J/n] 
:: Pakete werden empfangen …
 libcanberra-0.30+2+gc0620e4-4-x86_64                                                        91,5 KiB  1525 KiB/s 00:00 [------------------------------------------------------------------------] 100%
(1/1) Schlüssel im Schlüsselbund werden geprüft                                                                         [------------------------------------------------------------------------] 100%
(1/1) Paket-Integrität wird überprüft                                                                                   [------------------------------------------------------------------------] 100%
(1/1) Paket-Dateien werden geladen                                                                                      [------------------------------------------------------------------------] 100%
(1/1) Auf Dateikonflikte wird geprüft                                                                                   [------------------------------------------------------------------------] 100%
:: Paketänderungen werden verarbeitet …
(1/1) Entfernung läuft libcanberra-pulse                                                                                [------------------------------------------------------------------------] 100%
(1/1) Installation läuft libcanberra                                                                                    [------------------------------------------------------------------------] 100%
:: Post-transaction-Hooks werden gestartet …
(1/4) Reloading system manager configuration...
(2/4) Arming ConditionNeedsUpdate...
(3/4) Refreshing PackageKit...
(4/4) pacmerge.hook

I guess I have to think through, what was going on here. Feels a little strange. Maybe I’m just missing a simple detail.

Thanks for the hint. Makes stuff easier for you to read. Will try to remember next time. Not getting younger. :wink:

2 Likes

This is NOT the solution. In fact, there was no problem to solve to begin with…

1 Like

This looks pretty normal to me. It is telling you that the package libcanberra-pulse has been replaced by the package libcanberra. When you say “Yes”, it is removing libcanberra-pulse and installing libcanberra.

I think you would have been fine just entering ‘j’ there.

1 Like

@ReemZ @dalto @pebcak @codic12
I assumed that user would have already tried both yes and no options and had errors/conflicts. I give them the benefit of doubt and assume that they would have tried a simple Y/n before creating a forum post here. There are indeed situations when replacement of a package fails. I am not sure if this is one of those situations, but I assume so for the sake of treating the user as knowledgeable.

2 Likes

You assume completely wrong. For one: never do pacman -Rdd for any reason. It breaks stuff. Options like those are for testing purposes, not for normal maintenance.

Here’s a tip: don’t assume, ever.

The question was: “Is there a conflict?”
Your answer, like the answer above your post, should have been “No, there’s no conflict”, instead of helping OP getting close to breaking his system.

If you actually look at the terminal outputs pasted, the net effect has been the same as the correct way: just running the upgrade, answering yes to the replacement, and not worry about bloody libcanberra-pulse being removed because it needs to be removed. OP has, fortunately, ended up with a system with libcanberra and without libcanberra-pulse.

@Trekkie00 please UNmark that post as the solution, as it does nothing to solve anything, it carries great risk which you are clearly unaware of, and you never had a problem in need of a solution to begin with. In future, when pacman asks you to replace one package with another, it’s obviously fine to come and ask about it, but usually the replacement will be intentional and not much more than a name change.

1 Like

I wasn’t trying to criticize your response. I was just providing my feedback based on the information available which is more than what was available when you initially posted.

There are complex dependency situations where pacman -Rdd is needed, it isn’t only for testing.

That being said, I don’t think this is one of those situations.

1 Like

True, but it’s a one-in-a-million situation that a normal user is very unlikely to experience.

For practical intents and purposes: don’t use pacman -Rdd.

Okay, let me phrase it this way:

Don’t use pacman -Rdd unless instructed to do so by a developer actually working on EndeavourOS, or by the package maintainer.

@Trekkie00 Try this command, it won’t make any changes, only show you information, so it’s safe to use:

pacman -Qi libcanberra

Then look at the packages mentioned after Provides, you’ll see that libcanberra-pulse is now in fact part of libcanberra (simplifying), and that should be the reason libcanberra replaces libcanberra-pulse.
Have a look at the output of the -Qi option (-Si for not-installed packages) and see what information it provides, that could be useful in the future.

1 Like

No. That was not the case.

When choosing yes :

Packages to upgrade :

alsa-lib-1.2.5-2  alsa-plugins-1:1.2.5-2  alsa-topology-conf-1.2.5-1  alsa-ucm-conf-1.2.5-1  alsa-utils-1.2.5-2  at-spi2-core-2.40.2-1  libcanberra-0.30+2+gc0620e4-4
            libcanberra-pulse-0.30+2+gc0620e4-3 

Packages to remove (Entfernung) :

[Entfernung]  libogg-1.3.5-1  libqmi-1.28.6-1  osinfo-db-20210531-1  pulseaudio-alsa-1:1.2.5-2  vte-common-0.64.2-1  vte3-0.64.2-1  wine-6.10-1
            youtube-dl-2021.06.06-1

I would have expected the procedure you described. But that wasn’t an option. Because of that reason I chose no

It was the solution for ME. So I marked it as such. I guess that’s still my decision.
There was a problem to solve and the path I chose solved it.
Just using yay -R was not an option because too many packages would have been forced to be removed.

I think there may be a misunderstanding about the pacman output. It doesn’t remove all the packages after [Entfernung]. It puts [Entfernung] after each package it is removing. In the output you included in the first post, it was only removing libcanberra-pulse

2 Likes

I think you’re right. :rofl:
Strange way to inform the user of coming actions. I guess I have to get used to pacman even more. I appreciate the information.

2 Likes