[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to force a "hold" on a missing package during an apt-get upgrade



On 2015-03-21, tandread <tandread@otenet.gr> wrote:
> dear debian users,
>
> I really need to have a program compiled from source
> (that is, a src dir, not a debian source package)
> Let's say, the mysql server source distribution
>
> I can remove the mysql-* deb packages  with
> "dpkg --purge --force-depends"
> (I know this causes dangling lib*.so dependencies,
> but they will be fixed after the mysql src
> compilation)
>
> but a later "apt-get --ignore-missing" insists
> on fetching what mysql-* was dpkg-purged
>
> I have tried a semi-fix of getting a
> "--get-selections", adding the purged packages
> as "hold" and doing a "--set-selections",
> but it has side effects (all mysql dependent
> packages get uninstalled in the apt-get upgrade)
>
> So, is there a way to for "apt-get upgrade"
> to keep ignoring broken dependencies caused
> by "dpkg --force-depends --purge"?
>
>
> thanks for any answer
>
>

The 'equivs' package might be the way forward. From its description:
"Another use is to circumvent dependency checking: by letting dpkg think
a particular package name and version is installed when it isn't"

-- 

Liam



Reply to: