Issue with PyCharm flatpak updates requiring admin privileges on Zorin OS 17.2

Hello Zorin Community,

I've encountered an issue with updating PyCharm on Zorin OS 17.2 and I am seeking your insights.

Background:

  • System: Zorin OS 17.2
  • PyCharm Installation: 2024.3.1.1 Installed via the native Zorin App interface using Flatpak.
  • Previous Experience: In Zorin OS 16 and 17, PyCharm updates were installed without requiring admin or sudo privileges.

Current Issue:

Upon attempting to update PyCharm, I receive a notification indicating that administrative privileges are now required.

Running the Pycharm as sudo does not resolve the issue:

sudo -i flatpak run com.jetbrains.PyCharm-Community

Troubleshooting Steps Taken:

  1. Checked Flatpak Permissions:

    flatpak info --show-permissions com.jetbrains.PyCharm-Community
    

    Output (I do not see any issues):

    [Context]
    shared=network;ipc;
    sockets=x11;pulseaudio;session-bus;
    devices=all;
    filesystems=xdg-run/keyring;host;
    
    [Session Bus Policy]
    org.freedesktop.Notifications=talk
    org.freedesktop.secrets=talk
    
    [Environment]
    PYCHARM_JDK=${FLATPAK_DEST}/pycharm/jre64/
    PATH=/app/bin:/usr/bin:/app/extensions/bin:/app/packages/bin
    PYTHONPATH=/app/packages/python
    
  2. Attempted to Override Filesystem Permissions:

    flatpak override --user --filesystem=/app/pycharm com.jetbrains.PyCharm-Community
    

    This did not resolve the issue.

  3. Reinstalled PyCharm:

    flatpak uninstall com.jetbrains.PyCharm-Community
    flatpak install flathub com.jetbrains.PyCharm-Community
    

    The problem persists after reinstallation.

Request for Assistance or Opinion:

Has anyone else experienced this issue with PyCharm or other Flatpak applications on Zorin OS 17.2? Any suggestions on how to resolve this or insights into potential causes would be greatly appreciated.

Thank you in advance for your help!

Previously did you have this installed via Flatpak or via a deb package? From my experience, if a Flatpak app is attempting to update, it's going to fail because the flatpak itself is doing the configuration of that program. If the program itself tries to update, it might think it's installed as a traditional package when it really isnt't. I've had this happen a few times in the past, though not recently.

Typically in the Flatpak sense, you need to wait for whoever is doing the Flatpak version to update that, then update through the Software Centre as you would other flatpaks. Discord used to be quite infamous in my limited experience at trying to get you to update if you had the Flatpak version installed, but it would always fail because it wasn't installed as a deb. Maybe they fixed that issue recently, but unsure presently.

1 Like

I might have had pycharm installed via snap. But always using the Zorin Software app.

Yeah, it crossed my mind that flatpak would not allow reaching out from the app container.