Long ago I had this concept working, but in trying it right now with some new packages on a different system, it doesn't appear to be working for me. Can someone help me figure out what I'm doing wrong? In short, two very simple packages, "project1" & "project2", both provide the virtual package "project", but when I try to install "project2" while "project1" is present I'm getting errors.
Package 1:
DEBIAN/control
Code: Select all
Package: project1
Version: 1.0
Priority: optional
Section: misc
Architecture: armhf
Provides: project
Conflicts: project
Replaces: project
Maintainer: Me
Description: Project1 Package.
Code: Select all
Project1
Package 2:
DEBIAN/control
Code: Select all
Package: project2
Version: 1.0
Priority: optional
Section: misc
Architecture: armhf
Provides: project
Conflicts: project
Replaces: project
Maintainer: Me
Description: Project2 Package.
Code: Select all
Project2
Code: Select all
user@rpi:~/pkgs $ sudo dpkg -i project1_1.0_armhf.deb
Selecting previously unselected package project1.
(Reading database ... 70668 files and directories currently installed.)
Preparing to unpack project1_1.0_armhf.deb ...
Unpacking project1 (1.0) ...
Setting up project1 (1.0) ...
Code: Select all
user@rpi:~/pkgs $ sudo dpkg -i project2_1.0_armhf.deb
Selecting previously unselected package project2.
dpkg: regarding project2_1.0_armhf.deb containing project2:
project1 conflicts with project
project2 provides project and is to be installed.
dpkg: error processing archive project2_1.0_armhf.deb (--install):
conflicting packages - not installing project2
Errors were encountered while processing:
project2_1.0_armhf.deb