以下是我所尝试过的一切。我不知道现在还可以尝试什么来删除alsa没有找到的错误。请指点。
$ 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..。
$ 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)...。
$ 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)...。
$ 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..。
$ 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发布于 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在此之后,您的软件包应该按预期安装。
https://askubuntu.com/questions/1281211
复制相似问题