在处理时有错误发生: trousers tpm-tools E: Sub-process /usr/bin/dpkg returned an error code (1)

简介: 在处理时有错误发生: trousers tpm-tools E: Sub-process /usr/bin/dpkg returned an error code (1)

使用场景:

sudo apt install python3-debian dh-make debmake build-essential -y

使用以上语句安装一些内容


结果报错(省略一些安装过程,只截取了最后一部分提示)


1.png


解决办法:将报错的这两个包删除之后,再重新运行代码

sudo dpkg -P tpm-tools

1.png

sudo dpkg -P trousers

1.png

dpkg -P + 包名 删除成功后,再运行最一开始的代码

sudo apt install python3-debian dh-make debmake build-essential -y

1.png


安装成功


相关文章
|
3月前
|
iOS开发
解决Error (Xcode): File not found:XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
解决Error (Xcode): File not found:XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
32 0
|
3月前
|
iOS开发 MacOS Python
Electron Mac 打包报 Error: Exit code: ENOENT. spawn /usr/bin/python ENOENT 解决方法
Electron Mac 打包报 Error: Exit code: ENOENT. spawn /usr/bin/python ENOENT 解决方法
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)
272 0
|
计算机视觉
谨慎试之:libopencv_core.so.3.4, needed by //usr/local/lib/libopencv_imgcodecs.so
谨慎试之:libopencv_core.so.3.4, needed by //usr/local/lib/libopencv_imgcodecs.so
352 0
|
JavaScript Linux Windows
imagemagick安装调用报错command failed
记录下通过nodejs调用imagemagick 的时候发现的一个错误,command failed -- crop .
imagemagick安装调用报错command failed
Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 1错误解决办法
Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 1错误解决办法
129 0
XOCDE构建提示Command /usr/bin/codesign failed with exit code 1的解决办法
XOCDE构建提示Command /usr/bin/codesign failed with exit code 1的解决办法
166 0