pkg2appimage
pkg2appimage copied to clipboard
Cannot stat appimage
I am trying to package CKAN as an AppImage. However, when I use pkg2appimage, I keep hitting two errors:
+ apt-get -o Acquire::AllowInsecureRepositories=true -o Acquire::Languages=none -o Acquire::AllowDowngradeToInsecureRepositories=true -o Debug::NoLocking=1 -o APT::Cache-Limit=125829120 -o Dir::Etc::sourcelist=./sources.list -o Dir::State=./tmp -o Dir::Cache=./tmp -o Dir::State::status=./status -o Dir::Etc::sourceparts=- -o APT::Get::List-Cleanup=0 -o APT::Get::AllowUnauthenticated=1 -o Debug::pkgProblemResolver=true -o Debug::pkgDepCache::AutoInstall=true -o APT::Install-Recommends=0 -o APT::Install-Suggests=0 update
Get:1 file:/mnt/oldopt/CKAN/appimage/ckan ./ InRelease
Ign:1 file:/mnt/oldopt/CKAN/appimage/ckan ./ InRelease
Get:2 file:/mnt/oldopt/CKAN/appimage/ckan ./ Release
Ign:2 file:/mnt/oldopt/CKAN/appimage/ckan ./ Release
Get:3 file:/mnt/oldopt/CKAN/appimage/ckan ./ Packages
Ign:3 file:/mnt/oldopt/CKAN/appimage/ckan ./ Packages
Get:3 file:/mnt/oldopt/CKAN/appimage/ckan ./ Packages
Ign:3 file:/mnt/oldopt/CKAN/appimage/ckan ./ Packages
Get:3 file:/mnt/oldopt/CKAN/appimage/ckan ./ Packages
Ign:3 file:/mnt/oldopt/CKAN/appimage/ckan ./ Packages
Get:3 file:/mnt/oldopt/CKAN/appimage/ckan ./ Packages [346 B]
Ign:4 http://archive.ubuntu.com/ubuntu trusty InRelease
Hit:5 http://archive.ubuntu.com/ubuntu trusty Release
Hit:6 http://ppa.launchpad.net/djcj/libcurl-slim/ubuntu xenial InRelease
Reading package lists... Error!
W: The repository 'file:/mnt/oldopt/CKAN/appimage/ckan ./ Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: There is no public key available for the following key IDs:
40976EAF437D05B5
E: flAbsPath on ./status failed - realpath (22: Invalid argument)
E: Could not open file - open (2: No such file or directory)
E: Problem opening
E: The package lists or status file could not be parsed or opened.
+ true
++ apt-get --allow-unauthenticated -o Apt::Get::AllowUnauthenticated=true -o Debug::NoLocking=1 -o APT::Cache-Limit=125829120 -o Dir::Etc::sourcelist=./sources.list -o Dir::State=./tmp -o Dir::Cache=./tmp -o Dir::State::status=./status -o Dir::Etc::sourceparts=- -o APT::Get::List-Cleanup=0 -o APT::Get::AllowUnauthenticated=1 -o Debug::pkgProblemResolver=true -o Debug::pkgDepCache::AutoInstall=true -o APT::Install-Recommends=0 -o APT::Install-Suggests=0 -y install --print-uris mono-complete
++ cut -d \' -f 2
++ grep -e '^http'
E: flAbsPath on ./status failed - realpath (22: Invalid argument)
E: Could not open file - open (2: No such file or directory)
E: Problem opening
E: The package lists or status file could not be parsed or opened.
and
+ '[' -z /tmp/.mount_pkg2apFfL8eJ/usr/bin//appimagetool ']'
++ which appimagetool
+ appimagetool=/tmp/.mount_pkg2apFfL8eJ/usr/bin//appimagetool
+ '[' '' ']'
+ '[' -z ']'
++ glibc_needed
++ find . -name '*.so' -or -name '*.so.*' -or -type f -executable -exec strings '{}' ';'
++ grep '^GLIBC_2'
++ sed s/GLIBC_//g
++ sort --version-sort
++ uniq
++ tail -n 1
+ GLIBC_NEEDED=2.3
+ VERSION_EXPANDED=.glibc2.3
+ set +x
appimagetool, continuous build (commit cddcc2e), build 2034 built on 2019-01-22 15:01:38 UTC
+ mkdir -p ../out/
+ mv '*.AppImage*' ../out/
mv: cannot stat '*.AppImage*': No such file or directory
This is my cmake.yml:
app: ckan
ingredients:
dist: trusty
sources:
- deb http://archive.ubuntu.com/ubuntu/ trusty main universe
packages:
- mono-complete
script:
- wget https://github.com/KSP-CKAN/CKAN/releases/download/v1.25.4/ckan_1.25.4_all.deb -O ckan.deb
script:
- wget https://raw.githubusercontent.com/KSP-CKAN/CKAN/master/assets/ckan-256.png -O usr/share/icons/hicolor/256x256/apps/ckan.png
- sed -i 's@/usr/share/icons/ckan.ico@/usr/share/icons/hicolor/256x256/apps/ckan.png@' ckan.desktop
Which distribution and version are you running this on?
I am using debian/sid. I tried doing this in a docker container, but kept hitting issues with running the program.
Just for fun, can you try the same on Ubuntu 14.04 (e.g., a Live ISO)? I'd like to know whether the host OS makes a difference or whether we have to search for the issue in either pkg2appimage itself or the yml recipe.