<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Yes, looks like the '--best' option works fine here. It is ok to leave python2-for-tests with broken dependencies. Once you update python2 itself to a modular package, you should be able to remove python2-for-tests without any problems.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> jehan Procaccia tem-tsp <jehan.procaccia@tem-tsp.eu><br>
<b>Sent:</b> Friday, July 30, 2021 12:33 PM<br>
<b>To:</b> OpenVZ users <users@openvz.org>; Denis Silakov <dsilakov@virtuozzo.com><br>
<b>Subject:</b> Re: [Users] vzlinux 8 pb update package python2</font>
<div> </div>
</div>
<div>
<div class="x_moz-cite-prefix">Ok I try to remove it , but it wants to remove mongo-db packages which a dependent .
<br>
</div>
<div class="x_moz-cite-prefix"><br>
</div>
<div class="x_moz-cite-prefix"><i><font size="-1"># dnf remove python2-for-tests<br>
Failed to set locale, defaulting to C.UTF-8<br>
Dependencies resolved.<br>
==================================================================================================================================================================================<br>
Package Architecture Version Repository Size<br>
==================================================================================================================================================================================<br>
Removing:<br>
python2-for-tests x86_64 2.7.17-1.vl8.1 @virtuozzolinux-base 21 k<br>
Removing dependent packages:<br>
mongodb-org x86_64 4.2.12-1.el8 @mongodb-org-4.2 0
<br>
Removing unused dependencies:<br>
mongodb-org-mongos x86_64 4.2.12-1.el8 @mongodb-org-4.2 39 M<br>
mongodb-org-server x86_64 4.2.12-1.el8 @mongodb-org-4.2 71 M<br>
mongodb-org-shell x86_64 4.2.12-1.el8 @mongodb-org-4.2 46 M<br>
mongodb-org-tools x86_64 4.2.12-1.el8 @mongodb-org-4.2 128 M<br>
python2 x86_64 2.7.17-1.vl8.1 @virtuozzolinux-base 80 k<br>
python2-libs x86_64 2.7.17-1.vl8.1 @virtuozzolinux-base 25 M<br>
<br>
Transaction Summary<br>
==================================================================================================================================================================================<br>
Remove 8 Packages</font></i><br>
<br>
</div>
<div class="x_moz-cite-prefix">this CT serve a rocketchat service that needs mongodb, I don't want to break the databse service .</div>
<div class="x_moz-cite-prefix"><br>
</div>
<div class="x_moz-cite-prefix">as suggested by DNF , there's the "--nobest" option which seems to go further , but with this warning
<br>
</div>
<div class="x_moz-cite-prefix"><br>
</div>
<div class="x_moz-cite-prefix"><i><font size="-1">Enabling module streams:<br>
httpd 2.4
<br>
mariadb 10.3
<br>
Skipping packages with conflicts:<br>
(add '--best --allowerasing' to command line to force their upgrade):<br>
python2-libs x86_64 2.7.18-4.module_vl8+478+7570e00c virtuozzolinux-base 6.0 M<br>
Skipping packages with broken dependencies:<br>
python2-for-tests x86_64 2.7.17-1.vl8.2 virtuozzolinux-base 79 k</font></i><br>
<br>
</div>
<div class="x_moz-cite-prefix">is this the "best" option ? <br>
</div>
<div class="x_moz-cite-prefix">thanks .<br>
</div>
<div class="x_moz-cite-prefix"><br>
</div>
<div class="x_moz-cite-prefix"><br>
</div>
<div class="x_moz-cite-prefix">Le 30/07/2021 à 11:16, Denis Silakov a écrit :<br>
</div>
<blockquote type="cite">
<div>Hi,</div>
<div><br>
</div>
<div>this looks like a subsequence of python2 installed from the main repo and not from module. I remember that for some time we indeed didn't have python2 in module so this could happen easily.</div>
<div><br>
</div>
<div>I'd suggest to simply remove python2-for-tests package.</div>
<div><br>
</div>
<div>And in general this is how new modules/streams work - you can have multiple versions of the same package in repos in different streams (python2-libs in our case), but you still can't install them simultaneously. And modular package always has s higher
priority unless you configure a special option in the repo file.</div>
<hr tabindex="-1">
<div id="x_divRplyFwdMsg" dir="ltr"><b>From:</b> <a class="x_moz-txt-link-abbreviated" href="mailto:users-bounces@openvz.org">
users-bounces@openvz.org</a> <a class="x_moz-txt-link-rfc2396E" href="mailto:users-bounces@openvz.org">
<users-bounces@openvz.org></a> on behalf of jehan Procaccia tem-tsp <a class="x_moz-txt-link-rfc2396E" href="mailto:jehan.procaccia@tem-tsp.eu">
<jehan.procaccia@tem-tsp.eu></a><br>
<b>Sent:</b> Friday, July 30, 2021 11:55 AM<br>
<b>To:</b> OpenVZ users <a class="x_moz-txt-link-rfc2396E" href="mailto:users@openvz.org">
<users@openvz.org></a><br>
<b>Subject:</b> [Users] vzlinux 8 pb update package python2
<div> </div>
</div>
<div>
<p>Hello</p>
<p>I've moved some CTs to vl8 , but now at least with this one , I have dependancy problemes<br>
</p>
<p><i># yum update<br>
Failed to set locale, defaulting to C.UTF-8<br>
Last metadata expiration check: 0:29:59 ago on Fri Jul 30 10:16:54 2021.<br>
Error: <br>
Problem 1: <b>package python2-for-tests-2.7.17-1.vl8.2.x86_64 requires python2-libs(x86-64) = 2.7.17-1.vl8.2, but none of the providers can be installed</b><br>
- cannot install the best update candidate for package python2-for-tests-2.7.17-1.vl8.1.x86_64<br>
- package python2-libs-2.7.17-1.vl8.2.x86_64 is filtered out by modular filtering<br>
Problem 2: package python2-for-tests-2.7.17-1.vl8.1.x86_64 requires python2-libs(x86-64) = 2.7.17-1.vl8.1, but none of the providers can be installed<br>
- problem with installed package python2-for-tests-2.7.17-1.vl8.1.x86_64<br>
- cannot install both python2-libs-2.7.18-4.module_vl8+478+7570e00c.x86_64 and python2-libs-2.7.17-1.vl8.1.x86_64<br>
- package python2-for-tests-2.7.17-1.vl8.2.x86_64 requires python2-libs(x86-64) = 2.7.17-1.vl8.2, but none of the providers can be installed<br>
- cannot install the best update candidate for package python2-libs-2.7.17-1.vl8.1.x86_64<br>
- package python2-libs-2.7.17-1.vl8.2.x86_64 is filtered out by modular filtering<br>
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)<br>
</i></p>
<p>is there a repository inconsistancy ? <br>
</p>
<p><i># dnf repolist <br>
Failed to set locale, defaulting to C.UTF-8<br>
repo id repo name<br>
epel Extra Packages for Enterprise Linux 8 - x86_64<br>
epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64<br>
mongodb-org-4.2 MongoDB Repository<br>
nodesource Node.js Packages for Enterprise Linux 8 - x86_64<br>
virtuozzolinux-base VirtuozzoLinux Base<br>
virtuozzolinux-updates VirtuozzoLinux Updates<br>
</i></p>
<p>thanks . <br>
</p>
</div>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
Users mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:Users@openvz.org">Users@openvz.org</a>
<a class="x_moz-txt-link-freetext" href="https://lists.openvz.org/mailman/listinfo/users">https://lists.openvz.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<p><br>
</p>
</div>
</body>
</html>