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.

Pacman linux target is broken

See original GitHub issue
  • Version: 21.2.0

My app is available here: https://github.com/azerothcore/Keira3

  • Target: Linux
  "linux": {
    "icon": "dist",
    "category": "Development",
    "target": [
      "AppImage",
      "deb",
      "snap",
      "pacman",
      "rpm"
    ]
  }

As soon as I add "pacman" to the list of linux targets, the build fails:

  • packaging       platform=linux arch=x64 electron=6.0.4 appOutDir=release/linux-unpacked
  • building        target=AppImage arch=x64 file=release/Keira3-3.0.0-alpha.1.AppImage
  • building        target=snap arch=x64 file=release/Keira3_3.0.0-alpha.1_amd64.snap
  • building        target=deb arch=x64 file=release/Keira3_3.0.0-alpha.1_amd64.deb
  • building        target=pacman arch=x64 file=release/Keira3-3.0.0-alpha.1.pacman
  ⨯ cannot execute  cause=exit status 1
                    out={:timestamp=>"2019-08-24T23:29:17.375971+0200", :message=>"Process failed: /usr/bin/zsh failed (exit code 127). Full command was:[\"/usr/bin/zsh\", \"-c\", \"LANG=C bsdtar -czf .MTREE --format=mtree --options='!all,use-set,type,uid,gid,mode,time,size,md5,sha256,link' opt .INSTALL usr .PKGINFO\"]", :level=>:error}
    
                    command=/home/shin/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86_64/fpm -s dir --force -t pacman -d c-ares -d ffmpeg -d gtk3 -d http-parser -d libevent -d libvpx -d libxslt -d libxss -d minizip -d nss -d re2 -d snappy -d libnotify -d libappindicator-gtk3 -d libappindicator-sharp --pacman-compression xz --architecture amd64 --name Keira3 --after-install /tmp/t-NVFlgz/4-after-install --after-remove /tmp/t-NVFlgz/2-after-remove --description '
     Database Editor for AzerothCore' --version 3.0.0-alpha.1 --package /home/shin/sources/Keira3/release/Keira3-3.0.0-alpha.1.pacman --maintainer 'Francesco Borzi'"'"' <borzifrancesco@gmail.com>' --url https://github.com/AzerothCore/Keira3 --vendor 'Francesco Borzi'"'"' <borzifrancesco@gmail.com>' /home/shin/sources/Keira3/release/linux-unpacked/=/opt/Keira3 /home/shin/sources/Keira3/dist/favicon.256x256.png=/usr/share/icons/hicolor/256x256/apps/keira3.png /home/shin/sources/Keira3/dist/favicon.512x512.png=/usr/share/icons/hicolor/512x512/apps/keira3.png /tmp/t-NVFlgz/7-Keira3.desktop=/usr/share/applications/keira3.desktop
                    workingDir=
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Keira3@3.0.0-alpha.1 electron:linux: `npm run build:prod && electron-builder build --linux`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the Keira3@3.0.0-alpha.1 electron:linux script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/shin/.npm/_logs/2019-08-24T21_29_17_452Z-debug.log

Without pacman, the other targets work fine.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

16reactions
cata-codecommented, Aug 15, 2020

Error is:

Process failed: bash failed (exit code 127). Full command was:["bash", "-c", "LANG=C bsdtar -czf .MTREE --format=mtree --options=‘!all,use-set,type,uid,gid,mode,time,size,md5,sha256,link’ .INSTALL opt usr .PKGINFO"]

On Ubuntu 20.04, I tried sudo apt install bsdtar and I get this

Package bsdtar is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: libarchive-tools:i386 libarchive-tools E: Package ‘bsdtar’ has no installation candidate

Instead you need to install libarchive-tools

sudo apt install libarchive-tools

Then it works to build for archlinux in debian/ubuntu

1reaction
wagyourtailcommented, Jul 15, 2020

I did some testing and I could build for pacman on archlinux, but not on ubuntu.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SOLVED} pacman not finding some targets - Arch Linux Forums
Re: [SOLVED} pacman not finding some targets​​ Your conf is broken. You have subsituted curly braces for brackets in the enabled repos.
Read more >
Pacman: "error: target not found" [closed] - Unix Stack Exchange
To install yaourt , open the terminal and run git clone https://aur.archlinux.org/package-query.git cd package-query makepkg -si cd .. git ...
Read more >
Pacman says target not found even though it is clearly in the ...
Started to pull the packages bspwm and sxhkd using pacman but sudo pacman -S sxhkd returns "target not found: sxhkd". Any ideas why?...
Read more >
linux - Fixing "Target not found" in pacman (Maybe mirrorlist of ...
pacman cannot find the target because it only searches the official repositories. And pacaur, actually lives in the AUR.
Read more >
SOLVED: Pacman Wouldn't Let Me Run An Update! - YouTube
If you run Arch Linux or a distribution based on Arch Linux, you will occasionally encounter errors when using the package manager (...
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