当我将Heroku工具带安装到Ubuntu上(它位于Vagrant上的VM上)时,我遇到以下错误:
Unpacking heroku-toolbelt (from .../heroku-toolbelt_3.12.1_all.deb) ...
dpkg-deb: file `/var/cache/apt/archives/heroku-toolbelt_3.12.1_all.deb' contains ununderstood data member data.tar.xz , giving up
dpkg: error processing /var/cache/apt/archives/heroku-toolbelt_3.12.1_all.deb (--unpack):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/heroku-toolbelt_3.12.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)我用了cmd wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
发布于 2015-03-12 14:25:32
出现此错误的原因是,可用的dpkg版本低于1.15.6,因此不支持heroku-toolbelt打包中使用的xz压缩。
值得庆幸的是,heroku-toolbelt是一个元软件包,它不安装任何工具,但依赖于提供与heroku.com服务交互所需的工具的软件包!也就是说,heroku工具带依赖于: git-core,foreman,heroku
到目前为止,这些依赖项都没有使用xz压缩,所以我已经成功地安装了它们,并使用这些工具访问heroku.com的服务。我删除了heroku-toolbelt,这样我就不会在每次更新时都收到新的安装错误。重要的包--git-core、foreman和heroku--仍然可以自动更新。
https://stackoverflow.com/questions/26367607
复制相似问题