我正在尝试在 Ubuntu 上编译并安装一个开源应用程序。我可以制作应用程序、制作安装程序并制作软件包。在这些步骤中我没有看到任何错误。当我发出 dpkg -i 来安装它时,如果失败并出现以下错误。
dpkg:处理存档 application.deb 时出错(--install): 损坏的文件系统 tarfile - 损坏的包存档 dpkg-deb:错误:子进程粘贴被信号终止(管道损坏)
我只能在下载文件时找到解决问题的引用,并说要发出 apt-get clean 和 purge。我已经这样做了,但它不起作用,而且似乎不适用,因为我正在创建安装文件。当我发出 dpkg -c application.deb 时,它会显示内容,因此文件并未完全损坏。
关于如何安装此应用程序有什么建议吗?
最佳答案
遵循https://github.com/Brewtarget/brewtarget上的描述在新安装的 Ubuntu 14.04.3 上给我一个可以安装的 .deb。
这些是我运行的命令:
$ sudo apt-get install cmake git qtbase5-dev qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5webkit5-dev libqt5sql5-sqlite libqt5svg5 libqt5multimedia5-plugins doxygen
$ git clone https://github.com/Brewtarget/brewtarget.git
$ mkdir brewtarget-build
$ cd brewtarget-build
$ cmake ../brewtarget
$ make
$ make package
$ sudo apt-get install libphonon4 libqt4-webkit phonon phonon-backend-vlc
$ sudo dpkg -i brewtarget*.deb
Selecting previously unselected package brewtarget_2.2.0.
(Reading database ... 175209 files and directories currently installed.)
Preparing to unpack brewtarget_2.2.0_x86_64.deb ...
Unpacking brewtarget_2.2.0 (2.2.0-1) ...
Setting up brewtarget_2.2.0 (2.2.0-1) ...
$ file *.deb
brewtarget_2.2.0_x86_64.deb: Debian binary package (format 2.0)
您运行的 Ubuntu 版本是什么?
奇怪的是,您的错误消息显示“application.deb”,因为按照说明操作时,我得到了一个名为“brewtarget_2.2.0_x86_64.deb”的.deb。
关于linux - 损坏的文件系统 tarfile - 损坏的软件包存档 Ubuntu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31895473/