Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Fabian peter Hammerle Newsgroups: linux.debian.user Subject: apt-get install refuses to installs older versions of dependencies Date: Mon, 01 Jul 2019 09:40:02 +0200 Message-ID: References: X-Original-To: "debian-user@lists.debian.org" X-Mailbox-Line: From debian-user-request@lists.debian.org Mon Jul 1 07:32:32 2019 Old-Return-Path: X-Amavis-Spam-Status: No, score=0 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, THREADTOPIC=2] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 Thread-Topic: apt-get install refuses to installs older versions of dependencies Thread-Index: AQHVIEWqRzEPgOFbM0yNFZGNRtCVCqa1fQWK Accept-Language: de-AT, en-US Content-Language: de-AT X-Originating-IP: [185.225.96.67] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailing-List: archive/latest/750592 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/c55788fcd5304a9eb353d4a87bf2fced@catalysts.cc Approved: robomod@news.nic.it Lines: 50 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Moritz Wanzenboeck , Daniel Marth , Lukas Bindreiter X-Original-Date: Mon, 1 Jul 2019 07:32:20 +0000 X-Original-Message-ID: X-Original-References: <8f4c28472a464855affc2f1f4897ff30@catalysts.cc> Xref: csiph.com linux.debian.user:210517 Dear Debian Users, I set up an=A0APT repository containing 2 packages: foo and bar The repository contains 2 versions of foo: 1.0.0 and 2.0.0 and 2 versions of bar: 3.0.0 and 4.0.0 foo 1.0.0 depends on bar 3.0.0 foo 2.0.0 depends on bar 4.0.0 I can easily install the latest version of foo via ``` $ sudo apt-get install foo [...] The following NEW packages will be installed: =A0 foo bar [...] Setting up bar (4.0.0) ... Setting up foo (2.0.0) ... ``` I get the same result when running `sudo apt-get install foo=3D2.0.0` However, apt-get fails to install foo 1.0.0 ``` $ sudo apt-get install foo=3D1.0.0 Reading package lists... Done Building dependency tree=A0 =A0 =A0 =A0 Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: =A0foo=A0: Depends: bar (=3D 3.0.0) but 4.0.0 is to be installed E: Unable to correct problems, you have held broken packages. ``` Currently, I workaround this issue by running `sudo apt-get install foo=3D1= .0.0 bar=3D3.0.0`. How can I instruct apt-get to automatically install an older version of bar= as required by foo? Or in other words: How can I make `apt-get install foo=3D1.0.0` install bot= h foo 1.0.0 and bar 3.0.0 (dependency of foo 1.0.0). Thanks, Fabian =