probonopd / go-appimage

Go implementation of AppImage tools
MIT License
818 stars 71 forks source link

can not run on ubuntu- 20.04.4 #212

Open xiaoyifang opened 2 years ago

xiaoyifang commented 2 years ago

2022/06/17 13:16:44 libraryLocations: [/home/runner/work/goldendict/Qt/6.3.1/gcc_64/lib appdir/usr/bin /usr/lib64 /lib64 /usr/lib /lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /lib32 /usr/lib32 /opt/hostedtoolcache/Python/3.9.13/x64/lib /home/qt/work/install/lib /home/qt/icu_install/lib /lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders /lib/x86_64-linux-gnu/gdk-pixbuf-2.0 /lib/x86_64-linux-gnu/gstreamer-1.0 /usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0] 2022/06/17 13:16:44 len(allELFs): 240 2022/06/17 13:16:44 Bundling alsa-lib directory (for )... 2022/06/17 13:16:44 Could not find alsa-lib directory

probonopd commented 2 years ago

Does it really say 2022/06/17 13:16:44 Bundling alsa-lib directory (for )... - is that the whole line or did you remove something there?

xiaoyifang commented 2 years ago

image github has done something to the text.

probonopd commented 2 years ago

This is the code in question:

https://github.com/probonopd/go-appimage/blob/36cf7d1b81a2407aed8e89e03f8a68fb10d4659b/src/appimagetool/appdirtool.go#L648-L668

Please sudo apt-get -y install alsa-lib and retry.

xiaoyifang commented 2 years ago
Reading state information...
E: Unable to locate package alsa-lib

ubuntu does not have alsa-lib package

I also tried sudo apt-get install libasound2 also does not work.

probonopd commented 2 years ago

E: Unable to locate package alsa-lib

Sorry, my mistake, that's a source package.

libasound2 should work...