我正在运行 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
答案2
- 以恢复模式重新启动计算机
dpkg
从菜单中运行修复损坏的包。- 运行
df -h
检查分区是否安装正确 - 跑步
apt-get install imagemagick imagemagick-6.q16
。
问题解决了。