Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian package conflict with installed openocd #1

Open
dpavlin opened this issue Apr 30, 2020 · 2 comments
Open

Debian package conflict with installed openocd #1

dpavlin opened this issue Apr 30, 2020 · 2 comments

Comments

@dpavlin
Copy link

dpavlin commented Apr 30, 2020

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.

@kost
Copy link
Member

kost commented Oct 7, 2020

debian package is created with alien. Alien does not support that field.

Only way I can see that it can be done is to create custom debian/ packaging.

@kost
Copy link
Member

kost commented Oct 12, 2020

Workaround for this is to remove openocd from the Debian:

apt-get remove --purge openocd

and then to install ulx3s package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants