Comment 32 for bug 1662227

Revision history for this message
Vladimir Kolesnikov (vladikoles) wrote :

Using:

Ubuntu 14.04.5 LTS x86_64
Kernel: 3.13.0-116-generic

---

Problem:

LibreOffice 5.3.2.2 (1:5.3.2~rc2-0ubuntu1~trusty1)

1. PPA package libreoffice-common
DEBIAN/control -> Conflicts: ..., libreoffice-l10n-5.2, ...

2. PPA package libreoffice-l10n-ru
DEBIAN/control -> Provides: libreoffice-l10n-5.2

3. PPA package libreoffice-help-ru
DEBIAN/control -> Provides: libreoffice-help-5.2

May be -ru or -de or -it etc.

"Transaction failed: Package dependencies cannot be resolved"
The update to 5.3.2.2 (1:5.3.2~rc2-0ubuntu1~trusty1) is interrupted.

---

My temporary solution (example for -ru):

1. my-libreoffice-langpack-ru-reinstall.sh:

#!/bin/bash

sudo apt-get purge libreoffice-help-ru libreoffice-l10n-ru
sudo apt-get update
sudo apt-get upgrade

mkdir /var/tmp/my-libreoffice-l10n-ru
cd /var/tmp/my-libreoffice-l10n-ru
apt-get download libreoffice-l10n-ru
dpkg --extract *.deb .
dpkg --control *.deb .
sed -i 's/libreoffice-l10n-5.2/libreoffice-l10n-5.3/g' control
fakeroot tar czf data.tar.gz usr
fakeroot tar czf control.tar.gz control md5sums
echo 2.0 > debian-binary
ar -r my-libreoffice-l10n-ru_1%3a5.3.2~rc2-0ubuntu1~trusty1_all.deb debian-binary control.tar.gz data.tar.gz
sudo dpkg -i my-libreoffice-l10n-ru_1%3a5.3.2~rc2-0ubuntu1~trusty1_all.deb

mkdir /var/tmp/my-libreoffice-help-ru
cd /var/tmp/my-libreoffice-help-ru
apt-get download libreoffice-help-ru
dpkg --extract *.deb .
dpkg --control *.deb .
sed -i 's/libreoffice-help-5.2/libreoffice-help-5.3/g' control
fakeroot tar czf data.tar.gz usr
fakeroot tar czf control.tar.gz control md5sums
echo 2.0 > debian-binary
ar -r my-libreoffice-help-ru_1%3a5.3.2~rc2-0ubuntu1~trusty1_all.deb debian-binary control.tar.gz data.tar.gz
sudo dpkg -i my-libreoffice-help-ru_1%3a5.3.2~rc2-0ubuntu1~trusty1_all.deb

2. my-libreoffice-langpack-ru-list.sh:

#!/bin/bash

sudo sed -i 's/: libreoffice-l10n-5.2/: libreoffice-l10n-5.3/g' /var/lib/apt/lists/ppa.launchpad.net_libreoffice_ppa_ubuntu_dists_trusty_main_binary-amd64_Packages
sudo sed -i 's/: libreoffice-help-5.2/: libreoffice-help-5.3/g' /var/lib/apt/lists/ppa.launchpad.net_libreoffice_ppa_ubuntu_dists_trusty_main_binary-amd64_Packages

---

Alas, after each command 'apt-get update' run my-libreoffice-langpack-ru-list.sh again.
Not yet fixed in ppa.