If you are among those brave (foolhardy?) enough to have already updated systems to Ubuntu’s Precise Pangolin, you may have encountered the following error while updating your system over the last 24 hours or so:
Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-core_1%3a3.5.0~beta2-2ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Fortunately, there is a relatively easy fix. I am not sure exactly what is causing this, but it occurred on two of my systems yesterday, and still this morning on a third. Initially I thought it might have occurred on the one system because it has been upgraded through several releases, but when it started occurring on freshly installed systems that idea went out the window.
Regardless, the following commands should help get your system back on track.
sudo mv /usr/lib/libreoffice/basis3.4/program/ /usr/lib/libreoffice/basis3.4/program.old
sudo mkdir /usr/lib/libreoffice/basis3.4/program
sudo apt-get install -f
sudo mv /usr/lib/libreoffice/basis3.4/program.old/ /usr/lib/libreoffice/basis3.4/programGood luck!









