$ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libpurple0 telepathy-indicator telepathy-logger telepathy-gabble libpurple-bin telepathy-haze libtelepathy-farsight0 libgupnp-1.0-3 libgstfarsight0.10-0 libnice10 telepathy-butterfly python-telepathy libgupnp-igd-1.0-3 libmission-control-plugins0 python-farsight python-papyon libzephyr4 geoclue-ubuntu-geoip gstreamer0.10-nice libgssdp-1.0-2 telepathy-mission-control-5 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libreoffice-core The following NEW packages will be installed: libreoffice-core 0 upgraded, 1 newly installed, 0 to remove and 31 not upgraded. 17 not fully installed or removed. Need to get 0 B/38.6 MB of archives. After this operation, 120 MB of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 217932 files and directories currently installed.) Unpacking libreoffice-core (from .../libreoffice-core_1%3a3.5.0~beta2-2ubuntu2_amd64.deb) ... rmdir: failed to remove `usr/lib/libreoffice/basis3.4/program/': Directory not empty dpkg: error processing /var/cache/apt/archives/libreoffice-core_1%3a3.5.0~beta2-2ubuntu2_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 1 E: Sub-process /usr/bin/dpkg returned an error code (1)