Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.

Impossible to install - Error: While trying to apply extra data: apply_extra script failed, exit status 512 #49

Closed
healBvdb opened this issue Jan 21, 2021 · 7 comments · Fixed by #59
Labels
help wanted Extra attention is needed

Comments

@healBvdb
Copy link

I tried to update to the last version and I have a problem.
I removed the flatpak and tried to reinstall and I got the same error.

Any idea ?

Here is the log of a verbose install :

Installing… F: flatpak_dir_pull: Using commit 50d50c1a26163a110abf8dd0539b9f8e6642db09b0bc8abb25e8e221ab6d2571 for pull of ref app/com.microsoft.Teams/x86_64/stable from remote flathub

Installing… 0% 0 bytes/s
Installing… █ 5%F: Loading https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_1.3.00.30857_amd64.deb using libsoup

Installing… ██▏ 11% 3,2 MB/s
Installing… ███▍ 17% 4,1 MB/s
Installing… ████▌ 23% 4,3 MB/s
Installing… █████▊ 29% 4,4 MB/s 00:09
Installing… ██████▊ 34% 4,4 MB/s 00:09
Installing… ████████ 40% 4,5 MB/s 00:09
Installing… █████████▏ 46% 4,5 MB/s 00:08
Installing… ██████████▏ 51% 4,5 MB/s 00:07
Installing… ███████████▍ 57% 4,6 MB/s 00:06
Installing… ████████████▌ 63% 4,6 MB/s 00:05
Installing… █████████████▊ 69% 4,7 MB/s 00:04
Installing… ███████████████ 75% 4,7 MB/s 00:04
Installing… ████████████████▏ 81% 4,7 MB/s 00:03
Installing… █████████████████▍ 87% 4,7 MB/s 00:02
Installing… ██████████████████▌ 93% 4,7 MB/s 00:01
Installing… ███████████████████▊ 99% 4,7 MB/s 00:00
Installing… ████████████████████ 100% 4,8 MB/s 00:00F: Received 76334658 bytes
F: No checksum specified, getting tip of app/com.microsoft.Teams/x86_64/stable from origin flathub
F: tip resolved to: 50d50c1a26163a110abf8dd0539b9f8e6642db09b0bc8abb25e8e221ab6d2571
F: extracting extra data to /home/calisdecris/.local/share/flatpak/app/com.microsoft.Teams/x86_64/stable/.50d50c1a26163a110abf8dd0539b9f8e6642db09b0bc8abb25e8e221ab6d2571-JOUCX0/files/extra
F: Opening user flatpak installation at path /home/calisdecris/.local/share/flatpak
F: Disallowing ipc access
F: Disallowing network access
F: Running /app/bin/apply_extra
ar: error while loading shared libraries: libbfd-2.35.1.so: cannot open shared object file: No such file or directory
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Error: While trying to apply extra data: apply_extra script failed, exit status 512
error: Failed to install com.microsoft.Teams: While trying to apply extra data: apply_extra script failed, exit status 512

@Lctrs
Copy link
Collaborator

Lctrs commented Jan 21, 2021

Can't reproduce. Must be something with your system and/or internet connection.

@jcharaoui
Copy link

Got the same problem on Debian 10.7, the package is uninstallable with the same error message.

# find /usr -name libbfd\*
/usr/lib/x86_64-linux-gnu/libbfd-2.31.1-system.so

@Lctrs Lctrs added the help wanted Extra attention is needed label Mar 29, 2021
@Erick555
Copy link

Erick555 commented Apr 8, 2021

@Lctrs maybe you can try fixing this like it was proposed in flathub/com.parsecgaming.parsec#8 . I wonder if this is something related to old flatpak version or maybe when bwrap is setuid binary.

@Lctrs
Copy link
Collaborator

Lctrs commented Apr 8, 2021

Thanks for pointing this out @Erick555 ! Can someone test #57 ?

Lctrs added a commit that referenced this issue Apr 20, 2021
- bsdtar is already present in the Runtime
- extract only what's needed
- use a wildcard so the extraction won't fail if the chosen compression type changed

Closes #49
@Lctrs
Copy link
Collaborator

Lctrs commented Apr 20, 2021

Can someone test #59 ?

Lctrs added a commit that referenced this issue Apr 20, 2021
- bsdtar is already present in the Runtime
- extract only what's needed
- use a wildcard so the extraction won't fail if the chosen compression type changed

Closes #49
@bluewww
Copy link

bluewww commented Apr 20, 2021

I tested #59 and ar: error while loading shared libraries: libbfd-2.35.1.so: cannot open shared object file: No such file or directory doesn't happen for me anymore

@Lctrs
Copy link
Collaborator

Lctrs commented Apr 20, 2021

Thanks for your feedback.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
5 participants