error while loading shared libraries: libasound.so.2 问题描述:今天在linux中执行Appimage文件的时候提示报错。 报错信息:error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory 第一次尝试:根据报错信息,网上的说法是没有打包libasound2,给出的解决方案是: sudo su # 切换到su 用户 apt update apt install libasound2 执行到第二条命令,出现以下提示: 根据报错信息再次搜索,了解到此错误的原因: linux系统分为两种系列: RedHat系列,包括Redhat、Centos、Fedora... Debian系列,报货Debian、Ubuntu等 RedHat系列的包管理工具使用的是:yum Debian系列的包管理工具使用的是:apt-get 于是使用命令查看我的linux属于哪种系列: cat /proc/version 使用yum进行第二次尝试,在执行yum install libasound2 命令之后报错: Error:Unable to find a match 很明显是找不到这个包,所以系统应该没安装这个包。 于是执行安装命令,进行第三次尝试: //安装libasound.so.2的命令: yum install alsa-lib-devel 安装成功: