Skip to content

Debian package conflict with installed openocd #1

@dpavlin

Description

@dpavlin
dpavlin@nuc:/tmp$ sudo dpkg -i ulx3s-toolchain_2020.04.26-2_amd64.deb
[sudo] password for dpavlin:
Selecting previously unselected package ulx3s-toolchain.
(Reading database ... 295966 files and directories currently installed.)
Preparing to unpack ulx3s-toolchain_2020.04.26-2_amd64.deb ...
Unpacking ulx3s-toolchain (2020.04.26-2) ...
dpkg: error processing archive ulx3s-toolchain_2020.04.26-2_amd64.deb (--install):
 trying to overwrite '/usr/bin/openocd', which is also in package openocd 0.10.0-6+b1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.30-4) ...
Errors were encountered while processing:
 ulx3s-toolchain_2020.04.26-2_amd64.deb

I think this can be solved by declaring Conflict with openpcd which would force de-install of it, see https://www.debian.org/doc/debian-policy/ch-relationships.html#s-conflicts

I'm not sure if Replaces is better choice, but I would not expect to have both packages installed, so I'm removing openocd manually before toolchain install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions