Background-Story: I did a “flatpak update” on a remote client and every package wants the PW for downloading and for installing again. I had to enter the password like 30 times or more.

  • SuperIce@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    It sounds like you’re trying to update system-wide flatpak packages as non-root. Most distros use polkit to allow you to update those without a password from the desktop (i.e. a local user), but usually require a password for remote users (like ssh). Just run as root: “sudo flatpak update”.

    You could also migrate to a user flatpak installation instead a system-wide one. That’s what I’ve done. IMO that’s how it should be done, but that’s not the default on most distros for some reason.

  • corsicanguppy@lemmy.ca
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    I like this.

    Flatpak is so bad for single-source-of-truth for install state that you should have to put in your password every time just to confirm you understand the pain you’re signing up for.

    My only advice here would be if they can change the prompt to say

    THANK YOU SIR!  MAY I HAVE ANOTHER!
    password:  *******
    
  • graham1@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I know a lot of people enjoy flatpak, and I enjoyed it for a couple apps that had annoying update processes in other package managers, but I’m really not impressed with it overall. Maybe it’s an unpopular opinion

    • acockworkorange@mander.xyz
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      Nah, it’s pretty popular. Flatpack for the things you can’t / won’t use your regular package manager is the most common behavior.

    • stepanzak@iusearchlinux.fyi
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Given the shortage of people working on FOSS apps, I’m all in for anything that makes their lifes easier, so tgey can focus on the programming part and don’t have to care about packaging. That can be solved with community packaging like AUR, but that has it’s own problems.

      • taladar@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        But Flatpak is one of the technologies that explicitly has the developer deal with packaging, something they are usually quite bad at because they don’t do it very often, unlike distro maintainers.

    • li10@feddit.uk
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Maybe I’m talking out my ass, but it seems to be something devs like because it makes their life easier.

      Flatpak/snaps are always a hard miss for me as a user, unless there’s no other option.

      • Kusimulkku@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        For users it can mean a lot better app availability since not every distro has enough maintainers to have timely updates for all their repo packages and the maintainer obviously doesn’t want to maintain it for every single distro. Less work for maintainers/devs all around, with the benefit of better app availability to the user.

  • quicksand@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I love that this post just turned into people giving helpful solutions and not bullying. Lemmy be awesome

  • Kerb@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    huh?
    why would you need to enter a password to update flatpacks?

    why would flatpack ask for your pw multiple times when every other package manager only needs to ask once?

    • SuperIce@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Because he tried to update a system-wide flatpak install as a non-root user. Flatpak uses polkit for root permissions. Polkit is usually set up to allow non-root local users to update flatpak without a password, but not remote ones, hence having to continually enter the password for polit when using SSH. He could just run the update with sudo like a normal package manager and would only have to enter the password once. But then he wouldn’t be able to complain on Lemmy.

    • somethingsomethingidk@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      For every sever install I’ve had, flatpak defaults to the system install which requires a password. You have to explicity pass the --user flag.

      I’m not sure how to make it the default

    • corsicanguppy@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Sudo su

      … for a brief period exposes you to risk. And its double-child kills a lot of context you may want. And it’s ghetto like

      cat file | grep string | cat | more

      try sudo -i and join us in this millennium.