Skip to content

Conversation

LiaoU3
Copy link
Contributor

@LiaoU3 LiaoU3 commented Jul 17, 2025

Description

libasound2 is not a virtual package before noble (e.g. jammy), but it is in noble. Moreover, it seems like in the build for arm64 (currently it only happened on arm64 and if you search for "asound", you will find that it installed both packages on arm), snapcraft tried to package both libasound2t64 and liboss4-salsa-asound2, which should no happened (I will create a bug for snapcraft). Since these 2 packages conflict each other, and actually what we want is libasound2t64.

Overall, I not only to try to workaround the snapcraft issue, but also think it is better to point out the package we want.

$ sudo apt install libasound2
[sudo] password for vincent: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libasound2 is a virtual package provided by:
  libasound2t64 1.2.11-1ubuntu0.1 (= 1.2.11-1ubuntu0.1)
  liboss4-salsa-asound2 4.2-build2020-1ubuntu3
You should explicitly select one to install.

E: Package 'libasound2' has no installation candidate

Resolved issues

#1885

Documentation

N/A

Tests

I build a checkbox24 with replacing libasound2 with libasound2t64

Before

ubuntu@ubuntu:~$ checkbox.shell 
checkbox runtime shell, type 'exit' to quit the session
(checkbox-shell) ubuntu@ubuntu:~$ amixer 
amixer: error while loading shared libraries: libOSSlib.so: cannot open shared object file: No such file or directory

After

ubuntu@ubuntu:~$ checkbox.shell 
checkbox runtime shell, type 'exit' to quit the session
(checkbox-shell) ubuntu@ubuntu:~$ amixer 
ALSA lib conf.c:4579:(snd_config_update_r) Cannot access file /snap/checkbox/15760/usr/share/alsa/alsa.conf
ALSA lib conf.c:4579:(snd_config_update_r) Cannot access file /snap/checkbox/15760/usr/share/alsa/pcm/default.conf
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 65536 [100%] [on]
  Front Right: Playback 65536 [100%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 65536 [100%] [on]
  Front Right: Capture 65536 [100%] [on]

@LiaoU3
Copy link
Contributor Author

LiaoU3 commented Jul 17, 2025

I create canonical/snapcraft#5621 to track the snapcraft issue I mentioned above.

Copy link
Collaborator

@Hook25 Hook25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, currenly building:

@LiaoU3 LiaoU3 merged commit 8e3a99b into main Jul 17, 2025
55 checks passed
@LiaoU3 LiaoU3 deleted the libasound2 branch July 17, 2025 07:33
mreed8855 pushed a commit that referenced this pull request Jul 30, 2025
…gFix) (#2023)

Stage libasound2t64 instead of the virtual package libasound2
mreed8855 pushed a commit that referenced this pull request Jul 31, 2025
…gFix) (#2023)

Stage libasound2t64 instead of the virtual package libasound2
stanley31huang pushed a commit that referenced this pull request Aug 14, 2025
…gFix) (#2023)

Stage libasound2t64 instead of the virtual package libasound2
bladernr pushed a commit that referenced this pull request Aug 28, 2025
…gFix) (#2023)

Stage libasound2t64 instead of the virtual package libasound2
stanley31huang pushed a commit that referenced this pull request Oct 3, 2025
…gFix) (#2023)

Stage libasound2t64 instead of the virtual package libasound2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants