Getting Invalid version exception during apt update
probal basak
probal31 at gmail.com
Tue Jan 3 06:34:34 UTC 2023
Hello Team,
I am getting the below exception while trying to issue apt update:
Getting this issue since last week. Previously the same thing used to work
perfectly fine.
Get:13 http://security.ubuntu.com/ubuntu focal-security/restricted amd64
> Packages [1385 kB]
> Fetched 17.1 MB in 5s (3617 kB/s)
> Reading package lists... Done
> Traceback (most recent call last):
> File "/usr/local/bin/appimage-builder", line 8, in <module>
> sys.exit(__main__())
> File
> "/usr/local/lib/python3.8/dist-packages/appimagebuilder/__main__.py", line
> 58, in __main__
> invoker.execute(commands)
> File
> "/usr/local/lib/python3.8/dist-packages/appimagebuilder/invoker.py", line
> 41, in execute
> command()
> File
> "/usr/local/lib/python3.8/dist-packages/appimagebuilder/commands/apt_deploy.py",
> line 46, in __call__
> deployed_packages = apt_deploy.deploy(
> File
> "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py",
> line 41, in deploy
> self._prepare_apt_venv()
> File
> "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py",
> line 57, in _prepare_apt_venv
> apt_core_packages = self._remove_old_packages(apt_core_packages)
> File
> "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py",
> line 113, in _remove_old_packages
> if package > latest_packages[pkg_tuple]:
> File
> "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/package.py",
> line 79, in __gt__
> return version.parse(self.version) > version.parse(other.version)
> File "/usr/local/lib/python3.8/dist-packages/packaging/version.py", line
> 52, in parse
> return Version(version)
> File "/usr/local/lib/python3.8/dist-packages/packaging/version.py", line
> 197, in __init__
> raise InvalidVersion(f"Invalid version: '{version}'")
> packaging.version.InvalidVersion: Invalid version: '1.19.7ubuntu3'
>
Can you please help me to understand what the issue is about? And how to
resolve this issue please?
Thanks in advance.
--
Thanks,
Probal Basak.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20230103/e5fd716b/attachment.html>
More information about the ubuntu-devel
mailing list