我正在尝试测试我的 .deb 包是否安装正确,但我总是收到此错误:
dpkg (subprocess): cannot set security execution context for maintainer script: Invalid argument
dpkg: error processing package testpkg (--install):
installed testpkg package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
testpkg
这是什么?我的 postinst 脚本如下所示
#!/bin/bash
chmod +x /usr/bin/testpkg
exit 0
我非常困惑