![“libasound.so.2:无法打开共享对象文件:没有此文件或目录”](https://linux22.com/image/856255/%E2%80%9Clibasound.so.2%EF%BC%9A%E6%97%A0%E6%B3%95%E6%89%93%E5%BC%80%E5%85%B1%E4%BA%AB%E5%AF%B9%E8%B1%A1%E6%96%87%E4%BB%B6%EF%BC%9A%E6%B2%A1%E6%9C%89%E6%AD%A4%E6%96%87%E4%BB%B6%E6%88%96%E7%9B%AE%E5%BD%95%E2%80%9D.png)
我正在尝试安装转录软件 Express Scribe。我已经在 HP Chromebook 14 上成功安装了它,但现在我正尝试在台式机上安装它。以下是我开始的步骤:
sudo su
tar -xvzf scribe.tar.gz
sudo apt-get install libgtk2.0-0:i386
到目前为止一切都运行正常;事实上,在我的 HP Chromebook 14 上,我只需输入以下内容:
./scribe
并且它会自动安装。
然而,在我运行 Ubuntu 14.04 的桌面上,事情显然没那么简单。输入最后一条命令后,我得到了以下内容:
Please wait while installer is initialising.....
Release Date: Fri Jan 30 00:51:58 IST 2009
Express Scribe 4.31
/tmp/selfextract.FKS8f2/bin/scribe: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
Installation cancelled
因此我尝试了以下方法:
sudo apt-get install ia32-libs
我收到以下消息:
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
lib32z1 lib32ncurses5 lib32bz2-1.0
E: Package 'ia32-libs' has no installation candidate
所以我想我被困住了?不太确定接下来该怎么办...
答案1
希望您能找到解决方案!看起来他们已经从 14.04 仓库中拉出了 ia32-libs。您可以使用以下方式安装任何具有 32 位兼容性的软件包program:i386
sudo apt-get install libasound2:i386
答案2
在 Ubuntu 18.04 上,我们可以使用以下命令安装:
sudo apt-get install libasound2
答案3
sudo apt search libasound
v libasound-dev -
v libasound-dev:i386 -
i libasound2 - shared library for ALSA applications
p libasound2:i386 - shared library for ALSA applications
i libasound2-data - Configuration files and profiles for ALSA
v libasound2-data:i386 -
p libasound2-dev - shared library for ALSA applications -- de
p libasound2-dev:i386 - shared library for ALSA applications -- de
p libasound2-doc - documentation for user-space ALSA applicat
p libasound2-plugin-equal - equalizer plugin for ALSA
p libasound2-plugin-equal:i386 - equalizer plugin for ALSA
p libasound2-plugin-smixer - smixer plugin for ALSA library
p libasound2-plugin-smixer:i386 - smixer plugin for ALSA library
i libasound2-plugins - ALSA library additional plugins
p libasound2-plugins:i386 - ALSA library additional plugins
p libasound2-plugins-extra - ALSA library additional plugins
p libasound2-plugins-extra:i386 - ALSA library additional plugins
v libasound2-plugins:i386 -
v libasound2:i386 -
答案4
有些程序想要的libportaudio.so
正是我的系统有的libportaudio.so.2
所以答案很明显...... simlink:
sudo ln -s /lib/x86_64-linux-gnu/libportaudio.so.2 /lib/x86_64-linux-gnu/libportaudio.so