I have a package in my own local repo that is a newer version of a package normally available on public repo. They have the same name but different version, however, whenever I try to switch between them I get
trying to overwrite '/usr/lib/x86_64-linux-gnu/somefile.so', which is also in package somepackage 2.0. But they are different versions of the same package, so they should be able to overwrite each other's file, that's the whole point of upgrading/downgrading.
When creating the local version of the package are there any other settings, other then the name that would tell apt that this is the same package just different version, so it has to overwrite the files that are also in the other package?