两天来,我一直尝试在 Raspbian Jesse (4.9) 上安装 ImageMagick,无论我遵循了什么建议,我就是无法安装它,总是出现以下失败:
sudo apt-get install imagemagick
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
ghostscript imagemagick-6.q16 imagemagick-common libdjvulibre-text libdjvulibre21 libgs9 libgs9-common libijs-0.35 libjbig2dec0 liblqr-1-0
libmagickcore-6.q16-2 libmagickcore-6.q16-2-extra libmagickwand-6.q16-2 libnetpbm10 libpaper-utils libpaper1 libwmf0.2-7 netpbm
Suggested packages:
ghostscript-x imagemagick-doc autotrace enscript ffmpeg gimp gnuplot grads graphviz hp2xx html2ps libwmf-bin mplayer povray radiance
sane-utils texlive-base-bin transfig ufraw-batch inkscape
The following NEW packages will be installed:
ghostscript imagemagick imagemagick-6.q16 imagemagick-common libdjvulibre-text libdjvulibre21 libgs9 libgs9-common libijs-0.35 libjbig2dec0
liblqr-1-0 libmagickcore-6.q16-2 libmagickcore-6.q16-2-extra libmagickwand-6.q16-2 libnetpbm10 libpaper-utils libpaper1 libwmf0.2-7 netpbm
0 upgraded, 19 newly installed, 0 to remove and 33 not upgraded.
Need to get 0 B/8,340 kB of archives.
After this operation, 27.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package imagemagick-common.
dpkg: unrecoverable fatal error, aborting:
files list file for package 'qdbus' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
有很多帖子涉及以下内容:
Sub-process /usr/bin/dpkg returned an error code (2)
但没有提到任何解决我安装失败的补救措施。显然文件列表存在问题qdbus
:
files list file for package 'qdbus' is missing final newline
但我不知道如何解决,在 Raspberrypi@stackexchange、LinuxQuestions、AskUbuntu 甚至 Raspberry Pi 论坛上都找不到答案。我可以直接破解列表并添加换行符吗?如果可以,怎么做?
这不是空间问题,我有 24Gb 的可用 SD 卡空间。
我已经执行:
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
任何指导或帮助都将不胜感激。