首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Ubuntu 18.04没有找到包裹'alsa‘

在Ubuntu 18.04没有找到包裹'alsa‘
EN

Ask Ubuntu用户
提问于 2020-10-08 18:29:01
回答 1查看 9.5K关注 0票数 4

以下是我所尝试过的一切。我不知道现在还可以尝试什么来删除alsa没有找到的错误。请指点。

代码语言:javascript
复制
$ 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

..。

代码语言:javascript
复制
$ sudo apt-get install libasound2

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libasound2-data : Breaks: libasound2 (< 1.1.3-5ubuntu0.1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

..。

代码语言:javascript
复制
$ sudo apt-get install libasound2-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
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-dev : Depends: libasound2 (= 1.1.3-5)
 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: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

..。

代码语言:javascript
复制
$ 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

..。

代码语言:javascript
复制
$ sudo apt-get -f 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
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2020-10-08 19:28:27

对于大多数用户来说,apt install libasound2-dev可以解决原来的问题。

就像apt-get抱怨一样,您的安装有点坏了:

您已经在版本1.1.3-5ubuntu0.1中安装了包libasound2 -数据,但是apt没有找到相同版本的包libasound2。

这可能是从你的apt来源中删除“仿生更新”的结果。例如,如果您在sudo software-properties-gtk中的“更新”下取消选择“推荐更新”,就会发生这种情况。

在您的位置上,我将做以下工作:确保您的apt源定期得到更新:

  • 请确保已启用建议更新。或者通过sudo software-properties-gtk,或者通过编辑/etc/apt/sources.list来包含像deb http://de.archive.ubuntu.com/ubuntu/仿生更新这样的行
  • sudo apt update

在此之后,您的软件包应该按预期安装。

票数 6
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1281211

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档