likes
comments
collection
share

electron打包deb失败

作者站长头像
站长
· 阅读数 33

错误代码:

cannot execute  cause=exit status 1
                    out={:timestamp=>"2022-05-20T17:51:47.432236+0800", :message=>"Debian packaging tools generally labels all files in /etc as config files, as mandated by policy, so fpm defaults to this behavior for deb packages. You can disable this default behavior with --deb-no-default-config-files flag", :level=>:warn}
    {:timestamp=>"2022-05-20T17:53:00.643899+0800", :message=>"Need executable 'ar' to convert dir to deb", :level=>:error}

原因:fpm 工具需要 ar 命令才能打包deb, 需要binutils

解决方法:sudo apt install binutils