升级 imagemagick 失败

升级 imagemagick 失败

我正在运行 Ubuntu 16.04,但无法升级 imagemagick。以下是aptitude命令的输出,它提供的信息比 更多信息apt-get

Accept this solution? [Y/n/q/?] Y
The following packages will be upgraded:
  imagemagick-6.q16 
The following partially installed packages will be configured:
  imagemagick 
1 packages upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
Need to get 0 B/387 kB of archives. After unpacking 0 B will be used.
Do you want to continue? [Y/n/?] Y
(Reading database ... 543355 files and directories currently installed.)
Preparing to unpack .../imagemagick-6.q16_8%3a6.8.9.9-7ubuntu5.6_amd64.deb ...
Unpacking imagemagick-6.q16 (8:6.8.9.9-7ubuntu5.6) over (8:6.8.9.9-7ubuntu5.3) ...
dpkg: error processing archive /var/cache/apt/archives/imagemagick-6.q16_8%3a6.8.9.9-7ubuntu5.6_amd64.deb (--unpack):
 unable to make backup link of './usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/import' before installing new version: Invalid cross-device link
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/imagemagick-6.q16_8%3a6.8.9.9-7ubuntu5.6_amd64.deb

这是该文件的权限:

ls -lah /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/import
crw-rw-rw- 1 root root 1, 3 Mar 31 09:41 /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/import

问题:

为什么是import设备类型?在这种情况下c我该如何升级?imagemagick

答案1

为什么不直接运行更新,Image Magic 就会随之更新。如果 ImageMagic 的新版本中存在您当前系统无法满足的较新依赖项,则尝试单独更新 ImageMagic 会失败,这是完全可以理解的。

sudo apt update && sudo apt dist-upgrade

或者 :

更新

答案2

  1. 以恢复模式重新启动计算机
  2. dpkg从菜单中运行修复损坏的包。
  3. 运行df -h检查分区是否安装正确
  4. 跑步apt-get install imagemagick imagemagick-6.q16

问题解决了。

相关内容