Open afl-dev opened 12 months ago
resolved gpg error
key_url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C
key_url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x4AF9B16F75EF2FCA
key_url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x4EB27DB2A3B88B8B
there is still an error
Traceback (most recent call last):
File "/usr/local/bin/appimage-builder", line 8, in <module>
sys.exit(__main__())
File "/usr/local/lib/python3.10/dist-packages/appimagebuilder/__main__.py", line 50, in __main__
invoker.execute(commands)
File "/usr/local/lib/python3.10/dist-packages/appimagebuilder/invoker.py", line 29, in execute
command()
File "/usr/local/lib/python3.10/dist-packages/appimagebuilder/commands/apt_deploy.py", line 46, in __call__
deployed_packages = apt_deploy.deploy(
File "/usr/local/lib/python3.10/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 39, in deploy
self._prepare_apt_venv()
File "/usr/local/lib/python3.10/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 55, in _prepare_apt_venv
apt_core_packages = self._remove_old_packages(apt_core_packages)
File "/usr/local/lib/python3.10/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 93, in _remove_old_packages
if package > latest_packages[pkg_tuple]:
File "/usr/local/lib/python3.10/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.10/dist-packages/packaging/version.py", line 54, in parse
return Version(version)
File "/usr/local/lib/python3.10/dist-packages/packaging/version.py", line 200, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: '1.21.1ubuntu2.1'
Did you manage to solve this problem?
you need to set the version in the recipe according to the sementic versioning standard
so if you're app is version 2.3
you need to write it v2.3.0
in the recipe file
For those who is interested: appimage-builder uses packaging
module to parse versions which implements versioning specific to Python but it is not the same as for Debian packages: 1.21.1ubuntu2.1 is valid version for Debian package but invalid from the point of view of Python packaging. The offending package seems to be dpkg or its relative (libdpkg-perl or dpkg-dev) - in Ubuntu 22.04 it has version 1.21.1ubuntu2.2 in jammy-updates repository, 1.21.1ubuntu2.1 in jammy-security and 1.21.1ubuntu2 in jammy.
The issue should have been solved by https://github.com/AppImageCrafters/appimage-builder/commit/728998dc603b7a8e155fdc5d4c1295092edba9dd but it's not released yet.
For those who is interested: appimage-builder uses
packaging
module to parse versions which implements versioning specific to Python but it is not the same as for Debian packages: 1.21.1ubuntu2.1 is valid version for Debian package but invalid from the point of view of Python packaging. The offending package seems to be dpkg or its relative (libdpkg-perl or dpkg-dev) - in Ubuntu 22.04 it has version 1.21.1ubuntu2.2 in jammy-updates repository, 1.21.1ubuntu2.1 in jammy-security and 1.21.1ubuntu2 in jammy.
Yeah, i have same problem and search how to solve it. But i dont have a lot of experience in appimage packaging and my solution was to set up ubuntu-18 on virtual box and to try package appimages with builder on it