LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2020, 05:43 AM   #1
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
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.
 
Old 10-08-2020, 05:52 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,002

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
what is in your /etc/apt/sources.list?
I would probably try to remove libasound2 and install libasound2-dev (first)
 
1 members found this post helpful.
Old 10-08-2020, 06:15 AM   #3
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
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
$
 
Old 10-08-2020, 06:58 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@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.

-
 
Old 10-08-2020, 07:09 AM   #5
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by knudfl View Post
@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.
 
Old 10-08-2020, 08:25 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
 
1 members found this post helpful.
Old 10-08-2020, 08:38 AM   #7
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by knudfl View Post
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.
 
Old 10-08-2020, 09:07 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,002

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
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.
 
Old 10-08-2020, 09:08 AM   #9
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
What should I uninstall and reinstall to make everything normal?
 
Old 10-08-2020, 10:41 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.


-
 
Old 10-08-2020, 10:48 AM   #11
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by knudfl View Post
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?
 
Old 10-08-2020, 11:50 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,002

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
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.
 
Old 10-08-2020, 12:59 PM   #13
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
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
 
Old 10-08-2020, 05:08 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@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
 
Old 10-08-2020, 07:23 PM   #15
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,366
Blog Entries: 28

Rep: Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162
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?
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] x-windows-system package not found, other packages not found. bwilky11 Debian 3 04-12-2012 12:39 PM
How to switch my alsa card 0 and alsa card 1 in ALSA? frenchn00b Debian 10 12-11-2009 12:16 PM
Package needs re-installation, but package cannot be found woodbase Debian 4 09-26-2006 01:07 PM
[ALSA 1.0.9b-4] No more sound, no more alsa-utils package Creak Debian 5 08-18-2005 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration