1、首先,添加apt源 使其包含包所在的网址 以树莓派5安装的 debain bookworm稳定版为例:
sudo nano /etc/apt/sources.list
# 确保你之前已经更换过国内的apt源,加入下面代码
deb http://ftp.de.debian.org/debian bookworm main
2、更新apt
sudo apt-get upgrade
3、下载libpthread的包
sudo apt install libpthread-stubs0-dev
4、安装完成后,如果还报上面的问题,就去到相应的目录 把libpthread.so.0 复制一份为libpthread.so即可。
如果上述方法不行,请对应自己的系统版本 在http://ftp.de.debian.org中搜索 libpthread-stubs0-dev 下载后对应的deb包 使用deb安装(以我的为例 我的系统为arm64版本的) 安装后注意第4步
sudo dpkg -i libpthread-stubs0-dev_0.4-1_arm64.deb