apt-get 或 dpkg 解包问题

apt-get 或 dpkg 解包问题

我在 Ubuntu 14.04.5 LTS 上更新 Libreoffice 时遇到问题。 libreoffice-common 上存在未满足的依赖关系,但当我运行 sudo apt-get install -f 时,我得到了以下信息:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libreoffice-common
Suggested packages:
  libreoffice-style-crystal libreoffice-style-hicontrast
  libreoffice-style-human libreoffice-style-sifr libreoffice-style-tango
The following NEW packages will be installed
  libreoffice-common
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
18 not fully installed or removed.
Need to get 0 B/19.9 MB of archives.
After this operation, 76.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package libreoffice-common.
(Reading database ... 118950 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a4.2.8-0ubuntu5.2_all.deb ...
Unpacking libreoffice-common (1:4.2.8-0ubuntu5.2) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a4.2.8-0ubuntu5.2_all.deb (--unpack):
 unable to open '/usr/lib/libreoffice/share/gallery/sg36.sdg.dpkg-new': Operation not permitted
rmdir: failed to remove â/var/lib/libreoffice/share/prereg/â: No such file or directory
rmdir: failed to remove â/var/lib/libreoffice/share/â: No such file or directory
rmdir: failed to remove â/var/lib/libreoffice/program/â: No such file or directory
rmdir: failed to remove â/var/lib/libreofficeâ: No such file or directory
rmdir: failed to remove â/var/lib/libreofficeâ: No such file or directory
Processing triggers for desktop-file-utils (0.22-1ubuntu1.1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a4.2.8-0ubuntu5.2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我猜 dpkg 在解压 deb 文件时遇到了问题?我尝试重新下载了几次,但没有任何变化。

相关内容