Unmet dependencies on install librtaudio-dev

I get the following when trying to install librtaudio-dev. Please advise. 16.2 Core. Thanks!

$ sudo apt -y install librtaudio-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
librtaudio-dev : Depends: libasound2-dev but it is not going to be installed
Depends: libpulse-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
allen@allen-shack:~/Downloads$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 217 not upgraded.
allen@allen-shack:~/Downloads$

Please run

sudo apt --fix-broken install

sudo apt update && sudo apt install libasound2-dev

sudo apt install librtaudio-dev

If those two above are not working - launch Software & Updates and in the first tab, check what Regional Server you are on under "Download From". Try switching that to Main Server. Then sudo apt update and try the install again.

Thanks. I tried those before I posted, but here are the results:

/$ sudo apt --fix-broken install
[sudo] password for allen:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 217 not upgraded.
allen@allen-shack:/$ sudo apt update && sudo apt install libasound2-dev
Hit:1 Index of /ubuntu focal InRelease
Hit:2 Index of /ubuntu focal-security InRelease
Hit:3 Index of /ok2cqr/ppa/ubuntu focal InRelease
Hit:4 Index of /stable/ focal InRelease
Hit:5 Index of /patches/ focal InRelease
Hit:6 Index of /zorinos/apps/ubuntu focal InRelease
Hit:7 Index of /apps/ focal InRelease
Hit:8 Index of /drivers/ focal InRelease
Hit:9 Index of /zorinos/drivers/ubuntu focal InRelease
Hit:10 Index of /zorinos/patches/ubuntu focal InRelease
Hit:11 Index of /zorinos/stable/ubuntu focal InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
217 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libasound2-dev : Depends: libasound2 (= 1.2.2-2.1)
E: Unable to correct problems, you have held broken packages.
allen@allen-shack:/$ sudo apt install librtaudio-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
librtaudio-dev : Depends: libasound2-dev but it is not going to be installed
Depends: libpulse-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
allen@allen-shack:/$

Switched to "Download from: Main server". Then sudo apt update still NG:

sudo apt -y install librtaudio-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
librtaudio-dev : Depends: libasound2-dev but it is not going to be installed
Depends: libpulse-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Is there a reason you have done no upgrades?

If not then...

sudo apt --fix-broken install

sudo apt full-upgrade

Reboot
Check that you are still on main server, then try installing the libraries again. I am on main server and tested installing both and both went through just fine.
If you still cannot install - have you added any Jammy or Hirsute or other Non-Focal repositories at some point?

All upgraded, but same result:

$ sudo apt -y install librtaudio-dev
[sudo] password for allen:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
librtaudio-dev : Depends: libasound2-dev but it is not going to be installed
Depends: libpulse-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
allen@allen-shack:/$

and making sure the repository is added:

$ sudo add-apt-repository universe
[sudo] password for allen:
'universe' distribution component is already enabled for all sources.

so here: Focal (20.04) : rtaudio package : Ubuntu

It appears librtaudio-dev is included when you make rtaudio?

In the app Software & Updates, on the first tab, are all four boxes checked ON?
The fifth box (source code) can be Unchecked.

Screenshot from 2023-07-20 17-15-33

The packages are present:

Please post the terminal output of:

cat /etc/apt/sources.list

[quote="Aravisian, post:10, topic:28635"]
cat /etc/apt/sources.list
[/quote]

/$ cat /etc/apt/sources.list
# deb cdrom:[Zorin-OS 16.2 Core 64bit]/ focal main restricted

# See UpgradeNotes - Community Help Wiki for how to upgrade to
# newer versions of the distribution.
deb Index of /ubuntu focal main restricted
# deb-src Index of /ubuntu focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
# deb-src Index of /ubuntu focal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb Index of /ubuntu focal universe
# deb-src Index of /ubuntu focal universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-updates universe

**## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu **
**## team, and may not be under a free licence. Please satisfy yourself as to **
**## your rights to use the software. Also, please note that software in **
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb Index of /ubuntu focal multiverse
# deb-src Index of /ubuntu focal multiverse
# deb-src Index of /ubuntu focal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src Index of /ubuntu focal-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb Index of /ubuntu focal partner
# deb-src Index of /ubuntu focal partner

deb Index of /ubuntu focal-security main restricted
# deb-src Index of /ubuntu focal-security main restricted
deb Index of /ubuntu focal-security universe
# deb-src Index of /ubuntu focal-security universe
deb Index of /ubuntu focal-security multiverse
# deb-src Index of /ubuntu focal-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
allen@allen-shack:/$

Everything here looks normal.
And you are on Main Server, I see.

I am honestly stumped.
Testing this, I have no dependency errors and they install just fine.
However... I also do a lot of other development and as such - I very likely already have a lot of -dev packages installed. Those present packages may have something to do with why I am having no trouble...
But... Looking this up on the web (Instructions to install librtaudio-dev) all say to only run sudo apt install librtaudio-dev. This implies that really should be all that is needed for anyone.

apt search librtaudio-dev
Sorting... Done
Full Text Search... Done
librtaudio-dev/focal 5.0.0~ds-3build1 amd64
  C++ library for realtime audio input/ouput (development files)

Checking depends:
libjack-jackd2-0
libasound2-dev
libjack-dev
libjack0
libpulse-dev

Here is the .deb package for librtaudio-dev:
http://archive.ubuntu.com/ubuntu/pool/universe/r/rtaudio/librtaudio-dev_5.0.0~ds-3build1_amd64.deb

I highly recommend using Gdebi

sudo apt install gdebi

Then right click the downloaded .deb package from above and select to open with Gdebi.

Once open, it should say at the top whether all dependencies are satisfied, whether additional packages need to be installed - or if the package cannot be installed due to unsatisfiable dependencies.

May as well try the sudo apt install -f command.
It's not my usual go to - since a missing dependency is a missing dependency... But it might work.

Its answer was to remove the package. This means that it cannot function without the dependencies.
Ok.

While this is certainly an unusual case... Let's go ahead and persist down the Dependency Rabbit Hole.

Here is the .deb package for libsound:
http://archive.ubuntu.com/ubuntu/pool/main/a/alsa-lib/libasound2-dev_1.2.2-2.1_amd64.deb

And here is libpulse:
http://archive.ubuntu.com/ubuntu/pool/main/p/pulseaudio/libpulse-dev_13.99.1-1ubuntu3_amd64.deb

Start with seeing if either of those will install. You also can try installing both simultaneously by opening a terminal within the directory that contains them and running

sudo dpkg -i *.deb

"File not downloaded. Potential security risk." for both file when attempting download from links.
Yikes.

What on EARTH gave that warning?

Those are vetted packages that passed through Lintian. I mean Look at the source: http://archive.ubuntu.com/ubuntu/pool/main

Firefox?? v 115.0.2

Sigh...

I assure you that they are not security risks. At all.

You can use wget instead if you have no other browsers installed.

wget http://archive.ubuntu.com/ubuntu/pool/main/a/alsa-lib/libasound2-dev_1.2.2-2.1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/p/pulseaudio/libpulse-dev_13.99.1-1ubuntu3_amd64.deb