unable to install the latest version of liblarch

Bug #1038466 reported by Nimit Shah on 2012-08-18
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Getting Things GNOME!
High
Izidor Matušov

Bug Description

while updating GTG in my Ubuntu 11.10 , I am facing this error

dpkg: error processing /var/cache/apt/archives/python-liblarch_0.2.5.r130~oneiric1_all.deb (--unpack):
 trying to overwrite '/usr/share/pyshared/liblarch_gtk/treemodel.py', which is also in package python-liblarch-gtk 0.2.5-1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
 /var/cache/apt/archives/python-liblarch_0.2.5.r130~oneiric1_all.deb
Error in function:

I tried removing the deb file from apt cache but as expected, it did not help. I also removed liblarch_gtk folder from /usr/share/pyshared/ but it did not work.

MoLE (moleonthehill) wrote :

I have noticed the same error in precise, same package conflict but different file.
this is on ubuntu precise with the gtg-daily ppa enabled.

Output from sudo apt-get dist-upgrade

The following packages will be upgraded:
  python-liblarch
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/26.1 kB of archives.
After this operation, 41.0 kB of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 244082 files and directories currently installed.)
Preparing to replace python-liblarch 0.2.4-1 (using .../python-liblarch_0.2.5.r131~precise1_all.deb) ...
Unpacking replacement python-liblarch ...
dpkg: error processing /var/cache/apt/archives/python-liblarch_0.2.5.r131~precise1_all.deb (--unpack):
 trying to overwrite '/usr/share/pyshared/liblarch_gtk/__init__.py', which is also in package python-liblarch-gtk 0.2.4-1
Errors were encountered while processing:
 /var/cache/apt/archives/python-liblarch_0.2.5.r131~precise1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Izidor Matušov (izidor) wrote :

Okay... could you remove python-liblarch_gtk package?

sudo apt-get remove python-liblarch_gtk

It will probably remove gtg as well. Then install GTG from scratch:

sudo apt-get install gtg

Does it solve your problems?

Changed in gtg:
status: New → Incomplete
milestone: none → 0.3
tags: added: packaging
Changed in gtg:
assignee: nobody → Izidor Matušov (izidor)
Nimit Shah (nimit-svnit) wrote :

Izidor: it worked yes. Removed all both python-liblarch_gtk and python-liblarch and then reinstalled gtg.

Luca Falavigna (dktrkranz) wrote :

You probably require Breaks/Replaces field in debian/control.
This will appear in the official Debian/Ubuntu packages, but it could be worth applying to your PPA for the time being.

MoLE (moleonthehill) wrote :

I have noticed the same error in precise, same package conflict but different file.
this is on ubuntu precise with the gtg-daily ppa enabled.

Output from sudo apt-get dist-upgrade

The following packages will be upgraded:
  python-liblarch
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/26.1 kB of archives.
After this operation, 41.0 kB of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 244082 files and directories currently installed.)
Preparing to replace python-liblarch 0.2.4-1 (using .../python-liblarch_0.2.5.r131~precise1_all.deb) ...
Unpacking replacement python-liblarch ...
dpkg: error processing /var/cache/apt/archives/python-liblarch_0.2.5.r131~precise1_all.deb (--unpack):
 trying to overwrite '/usr/share/pyshared/liblarch_gtk/__init__.py', which is also in package python-liblarch-gtk 0.2.4-1
Errors were encountered while processing:
 /var/cache/apt/archives/python-liblarch_0.2.5.r131~precise1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I will try the workaround suggested.

Izidor Matušov (izidor) wrote :

I added "Replaces:" into liblarch's package and the upgrade works now (I tested it).

Commit with the change:
https://github.com/liblarch/liblarch/commit/dee331928a028c415805c83210fc700c8f153a44

Changed in gtg:
status: Incomplete → Fix Committed
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers