Open konceptosociala opened 1 year ago
same problem. now i cant even build the example appimage in the tutorial
console output:
~/qt-appimage-template$ appimage-builder
INFO:main:Running main script
INFO:main:Running apt deploy
INFO:apt:apt-get update
获取:1 http://old-releases.ubuntu.com/ubuntu impish InRelease [270 kB]
忽略:1 http://old-releases.ubuntu.com/ubuntu impish InRelease
获取:2 http://old-releases.ubuntu.com/ubuntu impish-security InRelease [110 kB]
忽略:2 http://old-releases.ubuntu.com/ubuntu impish-security InRelease
获取:3 http://old-releases.ubuntu.com/ubuntu impish/main amd64 Packages [1,396 kB]
获取:4 http://old-releases.ubuntu.com/ubuntu impish/universe amd64 Packages [13.1 MB]
获取:5 http://old-releases.ubuntu.com/ubuntu impish/multiverse amd64 Packages [209 kB]
获取:6 http://old-releases.ubuntu.com/ubuntu impish-security/universe amd64 Packages [207 kB]
获取:7 http://old-releases.ubuntu.com/ubuntu impish-security/main amd64 Packages [238 kB]
获取:8 http://old-releases.ubuntu.com/ubuntu impish-security/multiverse amd64 Packages [4,776 B]
已下载 15.5 MB,耗时 17秒 (906 kB/s)
正在读取软件包列表... 完成
W: GPG 错误:http://old-releases.ubuntu.com/ubuntu impish InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 871920D1991BC93C
W: GPG 错误:http://old-releases.ubuntu.com/ubuntu impish-security InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 871920D1991BC93C
Traceback (most recent call last):
File "/usr/local/bin/appimage-builder", line 8, in <module>
sys.exit(__main__())
File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/__main__.py", line 50, in __main__
invoker.execute(commands)
File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/invoker.py", line 29, in execute
command()
File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/commands/apt_deploy.py", line 46, in __call__
deployed_packages = apt_deploy.deploy(
File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 39, in deploy
self._prepare_apt_venv()
File "/usr/local/lib/python3.9/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.9/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.9/dist-packages/appimagebuilder/modules/deploy/apt/package.py", line 79, in __gt__
return version.parse(self.version) > version.parse(other.version)
File "/home/mcumbrella/.local/lib/python3.9/site-packages/packaging/version.py", line 54, in parse
return Version(version)
File "/home/mcumbrella/.local/lib/python3.9/site-packages/packaging/version.py", line 200, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: '1.20.9ubuntu2'
AppImageBuilder.yml:
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
version: 1
AppDir:
path: /home/mcumbrella/qt-appimage-template/AppDir
app_info:
id: QtQuickControls2Application
name: SimpleQtApp
icon: QtQuickControls2Application
version: latest
exec: usr/bin/qt-appimage-template
exec_args: $@
apt:
arch:
- amd64
allow_unauthenticated: true
sources:
- sourceline: deb [trusted=yes] http://old-releases.ubuntu.com/ubuntu impish main
- sourceline: deb [trusted=yes] http://old-releases.ubuntu.com/ubuntu impish universe
- sourceline: deb [trusted=yes] http://old-releases.ubuntu.com/ubuntu impish multiverse
- sourceline: deb [trusted=yes] http://old-releases.ubuntu.com/ubuntu impish-security main
- sourceline: deb [trusted=yes] http://old-releases.ubuntu.com/ubuntu impish-security universe
- sourceline: deb [trusted=yes] http://old-releases.ubuntu.com/ubuntu impish-security multiverse
include:
- breeze-icon-theme
- fcitx-frontend-qt5:amd64
- hwdata
- kubuntu-settings-desktop
- language-pack-zh-hans-base
- libbz2-1.0:amd64
- libcap2:amd64
- libgamin0
- libgcrypt20:amd64
- libkf5iconthemes-bin
- liblz4-1:amd64
- libnvidia-common-515
- libnvidia-gl-515:amd64
- libpcre3:amd64
- libsm6:amd64
- libsystemd0:amd64
- libxcb-render-util0:amd64
- libxcb-sync1:amd64
- libxcb-xinerama0:amd64
- libxcb-xkb1:amd64
- libxdmcp6:amd64
- libxext6:amd64
- libxfixes3:amd64
- libxrender1:amd64
- plasma-integration
- plasma-workspace-data
- qml-module-qtquick-controls2:amd64
- qml-module-qtquick-layouts:amd64
- qml-module-qtquick-templates2:amd64
- qml-module-qtquick-window2:amd64
- qml-module-qtquick2:amd64
- qt5-gtk-platformtheme:amd64
- qttranslations5-l10n
- qtvirtualkeyboard-plugin:amd64
- qtwayland5:amd64
- tzdata
files:
include:
- /home/mcumbrella/.icons/KDE-classic/cursors/ibeam
- /home/mcumbrella/.icons/KDE-classic/cursors/left_ptr
- /home/mcumbrella/.local/share/icons/Memphis98/index.theme
- /lib/x86_64-linux-gnu/libGLX_nvidia.so.0
- /lib/x86_64-linux-gnu/libKF5KIOFileWidgets.so.5
- /lib/x86_64-linux-gnu/libKF5Notifications.so.5
- /lib/x86_64-linux-gnu/libKF5WaylandClient.so.5
- /lib/x86_64-linux-gnu/libQt5QmlWorkerScript.so.5
- /lib/x86_64-linux-gnu/libQt5QuickControls2.so.5
- /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
- /lib/x86_64-linux-gnu/libXcursor.so.1
- /usr/lib/locale/locale-archive
- /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
- /usr/lib/x86_64-linux-gnu/libbz2.so.1.0.4
- /usr/lib/x86_64-linux-gnu/libc.so.6
- /usr/lib/x86_64-linux-gnu/libcap.so.2.44
- /usr/lib/x86_64-linux-gnu/libcom_err.so.2.1
- /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.19.13
- /usr/lib/x86_64-linux-gnu/libdl.so.2
- /usr/lib/x86_64-linux-gnu/libexpat.so.1.8.1
- /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
- /usr/lib/x86_64-linux-gnu/libgpg-error.so.0.29.0
- /usr/lib/x86_64-linux-gnu/libkeyutils.so.1.9
- /usr/lib/x86_64-linux-gnu/liblzma.so.5.2.5
- /usr/lib/x86_64-linux-gnu/libm.so.6
- /usr/lib/x86_64-linux-gnu/libpcre.so.3.13.3
- /usr/lib/x86_64-linux-gnu/libpthread.so.0
- /usr/lib/x86_64-linux-gnu/libresolv.so.2
- /usr/lib/x86_64-linux-gnu/librt.so.1
- /usr/lib/x86_64-linux-gnu/libselinux.so.1
- /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
- /usr/local/share/fonts/l/Lyusung_210618.ttf
exclude:
- usr/share/man
- usr/share/doc/*/README.*
- usr/share/doc/*/changelog.*
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
test:
fedora-30:
image: appimagecrafters/tests-env:fedora-30
command: ./AppRun
debian-stable:
image: appimagecrafters/tests-env:debian-stable
command: ./AppRun
archlinux-latest:
image: appimagecrafters/tests-env:archlinux-latest
command: ./AppRun
centos-7:
image: appimagecrafters/tests-env:centos-7
command: ./AppRun
ubuntu-xenial:
image: appimagecrafters/tests-env:ubuntu-xenial
command: ./AppRun
AppImage:
arch: x86_64
update-information: guess
looks like my problem is related to python. I opened "~/.local/lib/python3.9/site-packages/packaging/version.py", inserted version = version.split("ubuntu")[0]
after def __init__(self, version: str) -> None:
and got my problem fixed
looks like my problem is related to python. open "~/.local/lib/python3.9/site-packages/packaging/version.py", insert
version = version.split("ubuntu")[0]
afterdef __init__(self, version: str) -> None:
resolved my problem
could you please create a mr?
could you please create a mr?
@thuvh i can't, as the problem i encountered is not appimage-builder's bug
System: Ubuntu 20.04
I can't find any information about such issue