<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">You already got a response on this thread from Colin, quoted below:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in">On Tue, Jan 03, 2023 at 12:04:34PM +0530, probal basak wrote:<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in">> I am getting the below exception while trying to issue apt update:<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in">> Getting this issue since last week. Previously the same thing used to
<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in">> work perfectly fine.<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in">This is a bug in appimage-builder. As you can see from the fact that it's installed in /usr/local, it's not supplied by Ubuntu.<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in">The bug is that it's apparently trying to use the Python packaging.version library to parse and compare the version numbers of Ubuntu packages. Ubuntu package versions are not compatible with Python package
versions, and it is incorrect to use Python's packaging.version library to do this job.<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in">It looks like this bug was fixed in<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><a href="https://github.com/AppImageCrafters/appimage-builder/pull/281">https://github.com/AppImageCrafters/appimage-builder/pull/281</a>, although it doesn't seem that there's been a release since that fix landed.
I don't know how best to advise you to apply that fix to your system, but presumably you installed this program yourself and so have some idea of how best to upgrade it.<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:.5in">-- <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in">Colin Watson (he/him) [cjwatson@ubuntu.com]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Ubuntu-devel-discuss <ubuntu-devel-discuss-bounces@lists.ubuntu.com>
<b>On Behalf Of </b>probal basak<br>
<b>Sent:</b> Tuesday, January 3, 2023 1:36 AM<br>
<b>To:</b> ubuntu-devel-discuss@lists.ubuntu.com<br>
<b>Subject:</b> Getting Invalid version exception during apt update<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Hello Team,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I am getting the below exception while trying to issue apt update:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Getting this issue since last week. Previously the same thing used to work perfectly fine.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal">Get:13 <a href="http://security.ubuntu.com/ubuntu" target="_blank">
http://security.ubuntu.com/ubuntu</a> focal-security/restricted amd64 Packages [1385 kB]<br>
Fetched 17.1 MB in 5s (3617 kB/s) <br>
Reading package lists... Done<br>
Traceback (most recent call last):<br>
File "/usr/local/bin/appimage-builder", line 8, in <module><br>
sys.exit(__main__())<br>
File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/__main__.py", line 58, in __main__<br>
invoker.execute(commands)<br>
File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/invoker.py", line 41, in execute<br>
command()<br>
File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/commands/apt_deploy.py", line 46, in __call__<br>
deployed_packages = apt_deploy.deploy(<br>
File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 41, in deploy<br>
self._prepare_apt_venv()<br>
File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 57, in _prepare_apt_venv<br>
apt_core_packages = self._remove_old_packages(apt_core_packages)<br>
File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 113, in _remove_old_packages<br>
if package > latest_packages[pkg_tuple]:<br>
File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/package.py", line 79, in __gt__<br>
return version.parse(self.version) > version.parse(other.version)<br>
File "/usr/local/lib/python3.8/dist-packages/packaging/version.py", line 52, in parse<br>
return Version(version)<br>
File "/usr/local/lib/python3.8/dist-packages/packaging/version.py", line 197, in __init__<br>
raise InvalidVersion(f"Invalid version: '{version}'")<br>
packaging.version.InvalidVersion: Invalid version: '1.19.7ubuntu3'<o:p></o:p></p>
</div>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Can you please help me to understand what the issue is about? And how to resolve this issue please?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks in advance.<o:p></o:p></p>
</div>
<p class="MsoNormal"><br clear="all">
<br>
-- <o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<p class="MsoNormal">Probal Basak.<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>