file conflict between python3-path and python3-path.py

Bug #1554028 reported by Andreas Hasenack
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Amulet
Fix Released
Critical
Marco Ceppi

Bug Description

This is not strictly an amulet bug, but on a dependency that only amulet requires: python3-path.py.

There is a conflict in xenial when installing python3-amulet:
root@nsn7:~# apt-get install python3-amulet
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libpython3-all-dev libpython3-dev libpython3.5-dev python3-all python3-all-dev python3-charmworldlib python3-dev python3-path python3-path.py python3.5-dev
The following NEW packages will be installed:
  libpython3-all-dev libpython3-dev libpython3.5-dev python3-all python3-all-dev python3-amulet python3-charmworldlib python3-dev python3-path python3-path.py
  python3.5-dev
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 37.8 MB of archives.
After this operation, 54.3 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://br.archive.ubuntu.com/ubuntu xenial/main amd64 libpython3.5-dev amd64 3.5.1-6ubuntu2 [37.3 MB]
Get:2 http://ppa.launchpad.net/juju/stable/ubuntu xenial/main amd64 python3-charmworldlib all 0.4.2-0ubuntu1~ubuntu16.04.1~ppa1 [5,968 B]
Get:3 http://ppa.launchpad.net/juju/stable/ubuntu xenial/main amd64 python3-path.py all 7.2-1ubuntu2~ubuntu16.04.1~ppa1 [23.9 kB]
Get:4 http://ppa.launchpad.net/juju/stable/ubuntu xenial/main amd64 python3-amulet all 1.12.1-0ubuntu1~ubuntu16.04.1~ppa1 [15.7 kB]
Get:5 http://br.archive.ubuntu.com/ubuntu xenial/main amd64 libpython3-dev amd64 3.5.1-1ubuntu2 [6,956 B]
Get:6 http://br.archive.ubuntu.com/ubuntu xenial/main amd64 libpython3-all-dev amd64 3.5.1-1ubuntu2 [1,004 B]
Get:7 http://br.archive.ubuntu.com/ubuntu xenial/main amd64 python3-all amd64 3.5.1-1ubuntu2 [984 B]
Get:8 http://br.archive.ubuntu.com/ubuntu xenial/main amd64 python3.5-dev amd64 3.5.1-6ubuntu2 [413 kB]
Get:9 http://br.archive.ubuntu.com/ubuntu xenial/main amd64 python3-dev amd64 3.5.1-1ubuntu2 [1,192 B]
Get:10 http://br.archive.ubuntu.com/ubuntu xenial/main amd64 python3-all-dev amd64 3.5.1-1ubuntu2 [1,006 B]
Get:11 http://br.archive.ubuntu.com/ubuntu xenial/universe amd64 python3-path all 8.1.2+dfsg-1 [24.7 kB]
Fetched 37.8 MB in 19s (1,948 kB/s)
Selecting previously unselected package libpython3.5-dev:amd64.
(Reading database ... 244205 files and directories currently installed.)
Preparing to unpack .../libpython3.5-dev_3.5.1-6ubuntu2_amd64.deb ...
Unpacking libpython3.5-dev:amd64 (3.5.1-6ubuntu2) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../libpython3-dev_3.5.1-1ubuntu2_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.5.1-1ubuntu2) ...
Selecting previously unselected package libpython3-all-dev:amd64.
Preparing to unpack .../libpython3-all-dev_3.5.1-1ubuntu2_amd64.deb ...
Unpacking libpython3-all-dev:amd64 (3.5.1-1ubuntu2) ...
Selecting previously unselected package python3-all.
Preparing to unpack .../python3-all_3.5.1-1ubuntu2_amd64.deb ...
Unpacking python3-all (3.5.1-1ubuntu2) ...
Selecting previously unselected package python3.5-dev.
Preparing to unpack .../python3.5-dev_3.5.1-6ubuntu2_amd64.deb ...
Unpacking python3.5-dev (3.5.1-6ubuntu2) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../python3-dev_3.5.1-1ubuntu2_amd64.deb ...
Unpacking python3-dev (3.5.1-1ubuntu2) ...
Selecting previously unselected package python3-all-dev.
Preparing to unpack .../python3-all-dev_3.5.1-1ubuntu2_amd64.deb ...
Unpacking python3-all-dev (3.5.1-1ubuntu2) ...
Selecting previously unselected package python3-path.
Preparing to unpack .../python3-path_8.1.2+dfsg-1_all.deb ...
Unpacking python3-path (8.1.2+dfsg-1) ...
Selecting previously unselected package python3-charmworldlib.
Preparing to unpack .../python3-charmworldlib_0.4.2-0ubuntu1~ubuntu16.04.1~ppa1_all.deb ...
Unpacking python3-charmworldlib (0.4.2-0ubuntu1~ubuntu16.04.1~ppa1) ...
Preparing to unpack .../python3-path.py_7.2-1ubuntu2~ubuntu16.04.1~ppa1_all.deb ...
Unpacking python3-path.py (7.2-1ubuntu2~ubuntu16.04.1~ppa1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-path.py_7.2-1ubuntu2~ubuntu16.04.1~ppa1_all.deb (--unpack):
 trying to overwrite '/usr/lib/python3/dist-packages/test_path.py', which is also in package python3-path 8.1.2+dfsg-1
Selecting previously unselected package python3-amulet.
Preparing to unpack .../python3-amulet_1.12.1-0ubuntu1~ubuntu16.04.1~ppa1_all.deb ...
Unpacking python3-amulet (1.12.1-0ubuntu1~ubuntu16.04.1~ppa1) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/python3-path.py_7.2-1ubuntu2~ubuntu16.04.1~ppa1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@nsn7:~#

python3-path.py comes from the juju stable ppa:

root@nsn7:~# apt-cache policy python3-path python3-path.py python3-amulet
python3-path:
  Installed: 8.1.2+dfsg-1
  Candidate: 8.1.2+dfsg-1
  Version table:
 *** 8.1.2+dfsg-1 500
        500 http://br.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://br.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
        100 /var/lib/dpkg/status
python3-path.py:
  Installed: (none)
  Candidate: 7.2-1ubuntu2~ubuntu16.04.1~ppa1
  Version table:
     7.2-1ubuntu2~ubuntu16.04.1~ppa1 500
        500 http://ppa.launchpad.net/juju/stable/ubuntu xenial/main amd64 Packages
        500 http://ppa.launchpad.net/juju/stable/ubuntu xenial/main i386 Packages
python3-amulet:
  Installed: 1.12.1-0ubuntu1~ubuntu16.04.1~ppa1
  Candidate: 1.12.1-0ubuntu1~ubuntu16.04.1~ppa1
  Version table:
 *** 1.12.1-0ubuntu1~ubuntu16.04.1~ppa1 500
        500 http://ppa.launchpad.net/juju/stable/ubuntu xenial/main amd64 Packages
        500 http://ppa.launchpad.net/juju/stable/ubuntu xenial/main i386 Packages
        100 /var/lib/dpkg/status

Marco Ceppi (marcoceppi)
Changed in amulet:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Marco Ceppi (marcoceppi)
Revision history for this message
Marco Ceppi (marcoceppi) wrote :

Fixed in 1.12.1-0ubuntu3~ubuntu16.04.1~ppa1

Changed in amulet:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.