LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   No package 'alsa' found on Ubuntu 18.04 (https://www.linuxquestions.org/questions/linux-newbie-8/no-package-alsa-found-on-ubuntu-18-04-a-4175683339/)

Aquarius_Girl 10-08-2020 05:43 AM

No package 'alsa' found on Ubuntu 18.04
 
Code:

$ make
Package alsa was not found in the pkg-config search path.
Perhaps you should add the directory containing `alsa.pc'
to the PKG_CONFIG_PATH environment variable
No package 'alsa' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Package gtk+-x11-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-x11-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-x11-3.0' found
Package alsa was not found in the pkg-config search path.
Perhaps you should add the directory containing `alsa.pc'
to the PKG_CONFIG_PATH environment variable
No package 'alsa' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Package gtk+-x11-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-x11-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-x11-3.0' found
Makefile:174: recipe for target 'check-pkg-config' failed
make: *** [check-pkg-config] Error 1


Code:


$ sudo apt install libasound2
Reading package lists... Done
Building dependency tree     
Reading state information... Done
libasound2 is already the newest version (1.1.3-5ubuntu0.1).
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-1091-oem linux-image-4.15.0-1091-oem linux-modules-4.15.0-1091-oem linux-oem-headers-4.15.0-1091
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

Code:


$ sudo apt-get install libasound2-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:
 libasound2-dev : Depends: libasound2 (= 1.1.3-5)
E: Unable to correct problems, you have held broken packages.

Using Ubuntu 18.04. I did run sudo apt-get update before running the above commands.


Please guide.

pan64 10-08-2020 05:52 AM

what is in your /etc/apt/sources.list?
I would probably try to remove libasound2 and install libasound2-dev (first)

Aquarius_Girl 10-08-2020 06:15 AM

Should I remove alsa altogether? https://howtoinstall.co/en/ubuntu/xe...?action=remove
Will this help? Then reinstall all of it?

Code:

$ sudo apt-get remove libasound2

After this operation, 4,032 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] yes
Abort.

Should I continue this removal?


Code:

$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 18.04 _Bionic_ - Build amd64 LIVE Binary 20180608-09:38]/ bionic main

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://in.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
# deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-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 http://in.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-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 http://in.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-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 http://in.archive.ubuntu.com/ubuntu/ bionic-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 http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
deb http://archive.canonical.com/ bionic partner
# deb-src http://archive.canonical.com/ bionic partner
$


knudfl 10-08-2020 06:58 AM

@TheIndependentAquarius
Quote:

No package 'alsa' found
... means no package config file :
Code:

/usr/lib/x86_64-linux-gnu/pkgconfig/alsa.pc
Provided by Ubuntu package libasound2-dev
https://packages.ubuntu.com/bionic-u...libasound2-dev
  • Please remember that packages to install for compiling / development are always (lib)name-dev.

-

Aquarius_Girl 10-08-2020 07:09 AM

Quote:

Originally Posted by knudfl (Post 6173632)
@TheIndependentAquarius

... means no package config file :
Code:

/usr/lib/x86_64-linux-gnu/pkgconfig/alsa.pc
Provided by Ubuntu package libasound2-dev
https://packages.ubuntu.com/bionic-u...libasound2-dev
  • Please remember that packages to install for compiling / development are always (lib)name-dev.

-

So what am I supposed to do now? I already tried to install it and that resulted in errors as shown in the above
output.


Please guide.

knudfl 10-08-2020 08:25 AM

Re #5.

How to install packages in Debian / Ubuntu when broken packages are reported:
The "apt fix command" is option -f

Code:

sudo apt install -f

Aquarius_Girl 10-08-2020 08:38 AM

Quote:

Originally Posted by knudfl (Post 6173650)
Re #5.

How to install packages in Debian / Ubuntu when broken packages are reported:
The "apt fix command" is option -f

Code:

sudo apt install -f




Code:

$ sudo apt install -f libasound2
Reading package lists... Done
Building dependency tree     
Reading state information... Done
libasound2 is already the newest version (1.1.3-5ubuntu0.1).
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-1091-oem linux-image-4.15.0-1091-oem linux-modules-4.15.0-1091-oem linux-oem-headers-4.15.0-1091
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

Code:


$ sudo apt install -f libasound2-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:
 libasound2-dev : Depends: libasound2 (= 1.1.3-5)
E: Unable to correct problems, you have held broken packages.


This didn't help.

pan64 10-08-2020 09:07 AM

I think you have something mixed in /etc/apt/sources.list. Otherwise libasound2 and libasound2-dev cannot conflict with each other.
We cannot help you without knowing how it was really configured.
You may try to force install libasound2 1.1.3-5 but I'm not really sure if it was even a good idea.

Aquarius_Girl 10-08-2020 09:08 AM

What should I uninstall and reinstall to make everything normal?

knudfl 10-08-2020 10:41 AM

Re #7.

The "fix command" is '$ sudo apt install -f ' with no argument / package name.
$ sudo apt install -f libasound2, $ sudo apt install -f libasound2-dev
... are wrong commands.


-

Aquarius_Girl 10-08-2020 10:48 AM

Quote:

Originally Posted by knudfl (Post 6173674)
Re #7.

The "fix command" is '$ sudo apt install -f ' with no argument / package name.
$ sudo apt install -f libasound2, $ sudo apt install -f libasound2-dev
... are wrong commands.


-


Code:


$ sudo apt install -f



Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-1091-oem linux-image-4.15.0-1091-oem linux-modules-4.15.0-1091-oem linux-oem-headers-4.15.0-1091
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

Code:

$ sudo apt install libasound2-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:
 libasound2-dev : Depends: libasound2 (= 1.1.3-5)
E: Unable to correct problems, you have held broken packages.


Code:

$ sudo apt install libasound2



Reading package lists... Done

Building dependency tree     
Reading state information... Done
libasound2 is already the newest version (1.1.3-5ubuntu0.1).
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-1091-oem linux-image-4.15.0-1091-oem linux-modules-4.15.0-1091-oem linux-oem-headers-4.15.0-1091
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.


Didn't seem to help?

pan64 10-08-2020 11:50 AM

repeating the same thing does not help. You could already read the man page of apt to find out how can you force [re]install a package using a given version.
your apt configuration is still wrong (at least it looks like), I think first you must fix that.

Aquarius_Girl 10-08-2020 12:59 PM

Well I followed this thread and I am in trouble now:

https://bugs.launchpad.net/ubuntu/+s...ib/+bug/264534

I ran:
Quote:

sudo dpkg -P --force-depends libasound2 && sudo apt-get -f install
Code:

$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 alsa-utils : Depends: libasound2 (>= 1.1.1)
 gnome-settings-daemon : Depends: libasound2 (>= 1.0.16)
 google-chrome-stable : Depends: libasound2 (>= 1.0.16)
 gstreamer1.0-alsa : Depends: libasound2 (>= 1.0.27)
 ibm-java80-jre : Depends: libasound2
 libasound2-plugins : Depends: libasound2 (>= 1.0.27)
 libcanberra0 : Depends: libasound2 (>= 1.0.16)
 libpcaudio0 : Depends: libasound2 (>= 1.0.16)
 libqt5webenginecore5 : Depends: libasound2 (>= 1.0.16)
 libsdl1.2debian : Depends: libasound2 (>= 1.0.16)
 libsndio6.1 : Depends: libasound2 (>= 1.0.17)
 openjdk-8-jre : Depends: libasound2 (>= 1.0.16)
 pulseaudio : Depends: libasound2 (>= 1.0.24.1)
 skypeforlinux : Depends: libasound2 (>= 1.0.16)
 speech-dispatcher-audio-plugins : Depends: libasound2 (>= 1.0.16)
 spice-vdagent : Depends: libasound2 (>= 1.0.16)
 vlc-plugin-base : Depends: libasound2 (>= 1.0.27)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies


knudfl 10-08-2020 05:08 PM

@TheIndependentAquarius

Seems your OS has lost the data base entry about the already installed libasound2.

Have you tried to reinstall ?
Code:

sudo apt install --reinstall libasound2

frankbell 10-08-2020 07:23 PM

Going back to the subject line of this thread, the name of the package may not be simply "alsa." It's probably "alsa-something-something."

Try

Code:

locate *alsa*
I'm curious.

OP, what exactly are you trying to do?


All times are GMT -5. The time now is 01:34 AM.