Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reinstall option ignored when installing a .flatpak bundle #2489

Open
lazka opened this issue Dec 27, 2018 · 4 comments · May be fixed by #5546
Open

reinstall option ignored when installing a .flatpak bundle #2489

lazka opened this issue Dec 27, 2018 · 4 comments · May be fixed by #5546
Labels
cli Issues involving the flatpak command enhancement

Comments

@lazka
Copy link

lazka commented Dec 27, 2018

Linux distribution and version

Debian sid

Flatpak version

Flatpak 1.0.6

Description of the problem

When I install a flatpak and pass --reinstall it still errors out and says that the version is already installed.

Steps to reproduce

  1. Create a bundle with flatpak build-bundle
  2. Run flatpak install --reinstall some.flatpak two times

Example:

flatpak install --reinstall build/io.github.quodlibet.QuodLibet.flatpak 
Installing in system:
io.github.quodlibet.QuodLibet/x86_64/master io.github.quodlibet.QuodLibet-origin 710bbdb1fa56
  permissions: ipc, network, pulseaudio, wayland, x11
  file access: /tmp, host, xdg-config/gtk-3.0:ro, xdg-run/dconf, ~/.config/dconf:ro
  dbus access: ca.desrt.dconf, com.canonical.Unity.Launcher, org.enlightenment.wm.service, org.freedesktop.Avahi, org.freedesktop.FileManager1, org.freedesktop.Notifications, org.freedesktop.Telepathy.AccountManager, org.gajim.dbus, org.gnome.ScreenSaver, org.gnome.SessionManager, org.gnome.SettingsDaemon.MediaKeys, org.kde.StatusNotifierWatcher, org.kde.plasmashell, org.mate.SettingsDaemon, org.xfce.FileManager
  dbus ownership: org.gnome.UPnP.MediaServer2.QuodLibet, org.mpris.MediaPlayer2.quodlibet, org.mpris.quodlibet
Is this ok [y/n]: y
Installing: io.github.quodlibet.QuodLibet/x86_64/master from bundle io.github.quodlibet.QuodLibet.flatpak
error: Failed to install bundle io.github.quodlibet.QuodLibet/x86_64/master: This version of io.github.quodlibet.QuodLibet is already installed
@matthiasclasen
Copy link
Collaborator

Looks like reinstall is simply not wired up for bundle installs.

@tchernobog
Copy link

I can confirm this, it makes installing for debug on a dev machine rather impractical.

E.g.:

[0/1] Installing the flatpak archive for eu.montecristosoftware.GAdv, and running gdb on it

eu.montecristosoftware.GAdv permissions:
    fallback-x11    pulseaudio    wayland    x11    dri    file access [1]   dbus access [2]

    [1] home, xdg-run/dconf, ~/.config/dconf:ro
    [2] ca.desrt.dconf


        ID                                     Arch             Branch           Remote                Download
 1. [✗] eu.montecristosoftware.GAdv            x86_64           master           gadv-origin           < 0 bytes

Error: eu.montecristosoftware.GAdv already installed
error: Failed to install bundle eu.montecristosoftware.GAdv: This version of eu.montecristosoftware.GAdv is already installed
FAILED: CMakeFiles/flatpak-debug 
cd /home/matteo/Projects/builds/gadv/debug && /usr/bin/flatpak install --user --reinstall -y gadv.flatpak && /usr/bin/flatpak run --user "--command=gdb /app/bin/gadv" --devel eu.montecristosoftware.GAdv
ninja: build stopped: subcommand failed.

@TingPing TingPing added the bug label Jun 5, 2020
@ergoithz
Copy link

ergoithz commented Apr 7, 2023

Four years.

@a1batross
Copy link

Still reproducible. :)

Mstrodl added a commit to Mstrodl/flatpak that referenced this issue Oct 2, 2023
@Mstrodl Mstrodl linked a pull request Oct 2, 2023 that will close this issue
@hfiguiere hfiguiere added enhancement cli Issues involving the flatpak command and removed bug labels Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Issues involving the flatpak command enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants