ERROR: Invalid pkgver '3.x.x' in APKBUILD:…
- User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
ERROR: Invalid pkgver '3.x.x' in APKBUILD: /home/user/.local/var/pmbootstrap/cache_git/pmaports/device/testing/linux-samsung-a3y17lte/APKBUILD
~/pmbootstrap$ pmbootstrap log File "/home/user/pmbootstrap/pmb/init.py", line 111, in main run_command(args) File "/home/user/pmbootstrap/pmb/commands/init.py", line 56, in run_command getattr(frontend, args.action)(args) File "/home/user/pmbootstrap/pmb/helpers/frontend.py", line 421, in install pmb.install.install(args) File "/home/user/pmbootstrap/pmb/install/_install.py", line 1468, in install create_device_rootfs(args, step, steps) File "/home/user/pmbootstrap/pmb/install/_install.py", line 1329, in create_device_rootfs pmb.chroot.init(chroot) File "/home/user/pmbootstrap/pmb/meta/init.py", line 42, in call self.cache.cache[key] = self.func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/chroot/init.py", line 135, in init pmb.chroot.mount(chroot) File "/home/user/pmbootstrap/pmb/chroot/mount.py", line 150, in mount pmb.chroot.binfmt.register(arch) File "/home/user/pmbootstrap/pmb/chroot/binfmt.py", line 29, in register pmb.chroot.apk.install(["qemu-" + arch_qemu], chroot) File "/home/user/pmbootstrap/pmb/chroot/apk.py", line 222, in install pmb.build.packages(context, to_add, arch) File "/home/user/pmbootstrap/pmb/build/_package.py", line 572, in packages all_dependencies += process_package( ^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/build/_package.py", line 343, in process_package base_aports, base_apkbuild = get_apkbuild(pkgname) ^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/build/_package.py", line 200, in get_apkbuild pmaport, apkbuild = pmb.helpers.pmaports.get_with_path(pkgname, False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/meta/init.py", line 42, in call self.cache.cache[key] = self.func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/helpers/pmaports.py", line 308, in get_with_path pmaport = find(pkgname, must_exist, subpackages, with_extra_repos) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/meta/init.py", line 42, in call self.cache.cache[key] = self.func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/helpers/pmaports.py", line 253, in find if _find_package_in_apkbuild(package, path_current): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/helpers/pmaports.py", line 152, in _find_package_in_apkbuild apkbuild = pmb.parse.apkbuild(path) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/meta/init.py", line 42, in call self.cache.cache[key] = self.func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/parse/_apkbuild.py", line 376, in apkbuild raise RuntimeError(f"Invalid pkgver '{ret['pkgver']}' in APKBUILD: {path}") RuntimeError: Invalid pkgver '3.x.x' in APKBUILD: /home/user/.local/var/pmbootstrap/cache_git/pmaports/device/testing/linux-samsung-a3y17lte/APKBUILD
(021448) [11:09:51] % cd /home/user/.local/var/pmbootstrap/cache_git/pmaports; git rev-parse --abbrev-ref HEAD (021448) [11:09:51] % cd /home/user/.local/var/pmbootstrap/cache_git/pmaports; git status --porcelain
This error indicates that the APKBUILD for the target device contains an invalid version identifier (pkgver) of "3.x.x". This may happen because the package metadata isn’t finalized or is being developed.
Possible fixes:
Switch branches:
Check if there’s another branch in the pmaports repository with a valid APKBUILD for your device.
Edit the APKBUILD:
Manually change the pkgver in
~/.local/var/pmbootstrap/cache_git/pmaports/device/testing/linux-samsung-a3y17lte/APKBUILD
to a valid version (e.g., if you know the correct version number).
Report the issue:
If this is unexpected, consider filing an issue on the postmarketOS GitLab for further guidance.
These steps should help resolve or work around the error.