question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Package Lookup Failed on Sample Application

See original GitHub issue

Hey folks,

I’m having an issue with creating the app image mentioned in the Tutorial. I’m on AMD 64 Debian 10 (Testing). I’ve tested both using the native install as well as the docker image.

I can build the application and run it manually at qt-appimage-template/AppDir/usr/bin/qt-appimage-template but when running appimage-builder --generate get this error:

INFO:Generator:Analysing application runtime dependencies
INFO:AppRuntimeAnalyser:strace -f -e trace=openat -E LD_DEBUG=libs /home/jack/qt-appimage-template/AppDir/usr/bin/qt-appimage-template $@
INFO:Generator:Guessing APT configuration
INFO:dpkg-query:/usr/bin/dpkg-query -S
WARNING:dpkg-query:dpkg-query: error: --search needs at least one file name pattern argument
WARNING:dpkg-query:
WARNING:dpkg-query:Use --help for help about querying packages.
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 77, in __main__
    generator = RecipeGenerator()
  File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/generator/generator.py", line 69, in __init__
    self.apt_includes = AptRecipeGenerator.resolve_includes(
  File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/generator/apt_recipe_generator.py", line 41, in resolve_includes
    packages = AptRecipeGenerator._map_files_to_packages(runtime_libs)
  File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/generator/apt_recipe_generator.py", line 50, in _map_files_to_packages
    packages = dpkg_query.search(runtime_libs)
  File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/commands/dpkg_query.py", line 31, in search
    raise DpkgQueryError("Package lockup failed")
appimagebuilder.commands.dpkg_query.DpkgQueryError: Package lockup failed

I’m using the default arguments for basic information:

~/qt-appimage-template$ appimage-builder --generate
INFO:Generator:Searching AppDir
INFO:Generator:Searching desktop entries
INFO:Generator:Reading desktop entry: /home/jack/qt-appimage-template/AppDir/usr/share/applications/QtQuickControls2Application.desktop
Basic Information :
? ID [Eg: com.example.app] : QtQuickControls2Application
? Application Name : SimpleQtApp
? Icon : QtQuickControls2Application
? Version : latest
? Executable path relative to AppDir [usr/bin/app] : usr/bin/qt-appimage-templat
e
? Arguments [Default: $@] : $@
? Update Information [Default: guess] : guess
? Architecture : amd64

I’m not totally convinvced that it’s not my install, but do you have any idea of things to try? Thanks for your help!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
azubietacommented, Jan 5, 2021

I didn’t see the error message when I ran without strace though?

Did you upgraded appimage-builder and removed strace? The check was added to the generate method only, so if you are running appimage-builder without the --generate it will not be required.

Should it also be added here?

It’s done, I just pushed to the wrong repo.

0reactions
azubietacommented, Feb 15, 2021

@stormchaser3000 the ‘–generate’ feature needs to be able to run the application in order to analyze the runtime dependencies. In a cross compilation environment this is usually not possible. But you can still create a recipe manually, here is one for arm64 that you can adapt to armhf.

Fell free to ping me on the #appimage irc channel if you have any other questions

Read more comments on GitHub >

github_iconTop Results From Across the Web

lookup failed to find ..." error in template deployment outputs ...
The bug can be worked around by removing the output from the tf file (but leaving it in the template json), running apply...
Read more >
how to identify why lookup failed in SSIS - DBA Stack Exchange
i have created an ETL package and having a lookup to match userid in db. i checked in dataviewer what data is going...
Read more >
Ejb3 GlassFish - JNDI Lookup failed in SerialContext
In Netbeans you can try ic.lookup("java:global/classes/TestBean");. because the compile classe (even package and subpackage ar).
Read more >
JNDI lookup Failed error while running Sample JMS ...
I am getting the following error while executing the SimpleQueueSender Application as specified in the tutorial. The error is : JNDI lookup ......
Read more >
Agents installation failing - Flexera Community
Hello Community, we have installed agents on windows server 2019 . communication from devices to beacon server is open (telnet sucessfull, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found