Ubuntu 18.04: Nvidia + Flatpak not working












2














I upgraded from 16.04 and then installed this https://flatpak.org/setup/Ubuntu/ - It works to find and install flatpaks from the ubuntu software center, but no flatpak app works to launch.



To give you an example of the error, here's what I get from Kdenlive:



tio@tio:~$ flatpak run org.kde.kdenlive
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Could not initialize GLX


I have Nvidia 396.24.02 installed. Thing is, if I switch to X.Org (Nouveau) they work just fine. Problem is, with X.Org I get a laggy desktop environment. So I understand that Flatpak doesn't like Nvidia? Is there any way to make these work with Nvidia?



I searched and searched and didn't find any answer.



EDIT: It seems the issue is with graphical tools like Kdenlive or Krita. Not with apps like Riot or Signal. I suppose the graphical tools need access to Nvidia and they can't find it?! I hope someone can help. Thanks!



EDIT 2: GIMP for example works. Riot works, Signal works, and most flatpak work. Kdenlive and Krita do not. Same error for both. Very strange.



EDIT 3: I have a better answer after investigating. It seems some packages were missing from the Nvidia install so I installed Kdelive from the flathub website: flatpak run org.kde.kdenlive. That installed some flatpak dependencies, and after Kdenlive was successfully installed all the other apps that didn't work, worked again.










share|improve this question
























  • did you try running it as root or changing the owner and permitions of .nv in your home folder ?
    – Yvain
    Jun 24 at 0:31










  • @Yvain as root is the same flatpak run org.kde.kdenlive libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Could not initialize GLX
    – Tio TROM
    Jun 24 at 0:37






  • 1




    .nv folder has User permission. What to change about it? I suppose running as root and still getting the same errors, it must be flatpak not recognizing nvidia 390 or 396 drivers?
    – Tio TROM
    Jun 24 at 0:38










  • ok then, go to the setting gui and see if the used driver is indeed your nvidia driver in sofwares and update
    – Yvain
    Jun 24 at 0:44










  • if not change that, if yes try purging all nvidia files with apt-get purge nvidia* bbswitch* and reinstall, also beware depending on your model the latests nvidia drivers will not work and you don't get an xsession.
    – Yvain
    Jun 24 at 0:50


















2














I upgraded from 16.04 and then installed this https://flatpak.org/setup/Ubuntu/ - It works to find and install flatpaks from the ubuntu software center, but no flatpak app works to launch.



To give you an example of the error, here's what I get from Kdenlive:



tio@tio:~$ flatpak run org.kde.kdenlive
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Could not initialize GLX


I have Nvidia 396.24.02 installed. Thing is, if I switch to X.Org (Nouveau) they work just fine. Problem is, with X.Org I get a laggy desktop environment. So I understand that Flatpak doesn't like Nvidia? Is there any way to make these work with Nvidia?



I searched and searched and didn't find any answer.



EDIT: It seems the issue is with graphical tools like Kdenlive or Krita. Not with apps like Riot or Signal. I suppose the graphical tools need access to Nvidia and they can't find it?! I hope someone can help. Thanks!



EDIT 2: GIMP for example works. Riot works, Signal works, and most flatpak work. Kdenlive and Krita do not. Same error for both. Very strange.



EDIT 3: I have a better answer after investigating. It seems some packages were missing from the Nvidia install so I installed Kdelive from the flathub website: flatpak run org.kde.kdenlive. That installed some flatpak dependencies, and after Kdenlive was successfully installed all the other apps that didn't work, worked again.










share|improve this question
























  • did you try running it as root or changing the owner and permitions of .nv in your home folder ?
    – Yvain
    Jun 24 at 0:31










  • @Yvain as root is the same flatpak run org.kde.kdenlive libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Could not initialize GLX
    – Tio TROM
    Jun 24 at 0:37






  • 1




    .nv folder has User permission. What to change about it? I suppose running as root and still getting the same errors, it must be flatpak not recognizing nvidia 390 or 396 drivers?
    – Tio TROM
    Jun 24 at 0:38










  • ok then, go to the setting gui and see if the used driver is indeed your nvidia driver in sofwares and update
    – Yvain
    Jun 24 at 0:44










  • if not change that, if yes try purging all nvidia files with apt-get purge nvidia* bbswitch* and reinstall, also beware depending on your model the latests nvidia drivers will not work and you don't get an xsession.
    – Yvain
    Jun 24 at 0:50
















2












2








2


1





I upgraded from 16.04 and then installed this https://flatpak.org/setup/Ubuntu/ - It works to find and install flatpaks from the ubuntu software center, but no flatpak app works to launch.



To give you an example of the error, here's what I get from Kdenlive:



tio@tio:~$ flatpak run org.kde.kdenlive
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Could not initialize GLX


I have Nvidia 396.24.02 installed. Thing is, if I switch to X.Org (Nouveau) they work just fine. Problem is, with X.Org I get a laggy desktop environment. So I understand that Flatpak doesn't like Nvidia? Is there any way to make these work with Nvidia?



I searched and searched and didn't find any answer.



EDIT: It seems the issue is with graphical tools like Kdenlive or Krita. Not with apps like Riot or Signal. I suppose the graphical tools need access to Nvidia and they can't find it?! I hope someone can help. Thanks!



EDIT 2: GIMP for example works. Riot works, Signal works, and most flatpak work. Kdenlive and Krita do not. Same error for both. Very strange.



EDIT 3: I have a better answer after investigating. It seems some packages were missing from the Nvidia install so I installed Kdelive from the flathub website: flatpak run org.kde.kdenlive. That installed some flatpak dependencies, and after Kdenlive was successfully installed all the other apps that didn't work, worked again.










share|improve this question















I upgraded from 16.04 and then installed this https://flatpak.org/setup/Ubuntu/ - It works to find and install flatpaks from the ubuntu software center, but no flatpak app works to launch.



To give you an example of the error, here's what I get from Kdenlive:



tio@tio:~$ flatpak run org.kde.kdenlive
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Could not initialize GLX


I have Nvidia 396.24.02 installed. Thing is, if I switch to X.Org (Nouveau) they work just fine. Problem is, with X.Org I get a laggy desktop environment. So I understand that Flatpak doesn't like Nvidia? Is there any way to make these work with Nvidia?



I searched and searched and didn't find any answer.



EDIT: It seems the issue is with graphical tools like Kdenlive or Krita. Not with apps like Riot or Signal. I suppose the graphical tools need access to Nvidia and they can't find it?! I hope someone can help. Thanks!



EDIT 2: GIMP for example works. Riot works, Signal works, and most flatpak work. Kdenlive and Krita do not. Same error for both. Very strange.



EDIT 3: I have a better answer after investigating. It seems some packages were missing from the Nvidia install so I installed Kdelive from the flathub website: flatpak run org.kde.kdenlive. That installed some flatpak dependencies, and after Kdenlive was successfully installed all the other apps that didn't work, worked again.







18.04 flatpak






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 6 at 2:52

























asked Jun 16 at 16:03









Tio TROM

178318




178318












  • did you try running it as root or changing the owner and permitions of .nv in your home folder ?
    – Yvain
    Jun 24 at 0:31










  • @Yvain as root is the same flatpak run org.kde.kdenlive libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Could not initialize GLX
    – Tio TROM
    Jun 24 at 0:37






  • 1




    .nv folder has User permission. What to change about it? I suppose running as root and still getting the same errors, it must be flatpak not recognizing nvidia 390 or 396 drivers?
    – Tio TROM
    Jun 24 at 0:38










  • ok then, go to the setting gui and see if the used driver is indeed your nvidia driver in sofwares and update
    – Yvain
    Jun 24 at 0:44










  • if not change that, if yes try purging all nvidia files with apt-get purge nvidia* bbswitch* and reinstall, also beware depending on your model the latests nvidia drivers will not work and you don't get an xsession.
    – Yvain
    Jun 24 at 0:50




















  • did you try running it as root or changing the owner and permitions of .nv in your home folder ?
    – Yvain
    Jun 24 at 0:31










  • @Yvain as root is the same flatpak run org.kde.kdenlive libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Could not initialize GLX
    – Tio TROM
    Jun 24 at 0:37






  • 1




    .nv folder has User permission. What to change about it? I suppose running as root and still getting the same errors, it must be flatpak not recognizing nvidia 390 or 396 drivers?
    – Tio TROM
    Jun 24 at 0:38










  • ok then, go to the setting gui and see if the used driver is indeed your nvidia driver in sofwares and update
    – Yvain
    Jun 24 at 0:44










  • if not change that, if yes try purging all nvidia files with apt-get purge nvidia* bbswitch* and reinstall, also beware depending on your model the latests nvidia drivers will not work and you don't get an xsession.
    – Yvain
    Jun 24 at 0:50


















did you try running it as root or changing the owner and permitions of .nv in your home folder ?
– Yvain
Jun 24 at 0:31




did you try running it as root or changing the owner and permitions of .nv in your home folder ?
– Yvain
Jun 24 at 0:31












@Yvain as root is the same flatpak run org.kde.kdenlive libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Could not initialize GLX
– Tio TROM
Jun 24 at 0:37




@Yvain as root is the same flatpak run org.kde.kdenlive libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Could not initialize GLX
– Tio TROM
Jun 24 at 0:37




1




1




.nv folder has User permission. What to change about it? I suppose running as root and still getting the same errors, it must be flatpak not recognizing nvidia 390 or 396 drivers?
– Tio TROM
Jun 24 at 0:38




.nv folder has User permission. What to change about it? I suppose running as root and still getting the same errors, it must be flatpak not recognizing nvidia 390 or 396 drivers?
– Tio TROM
Jun 24 at 0:38












ok then, go to the setting gui and see if the used driver is indeed your nvidia driver in sofwares and update
– Yvain
Jun 24 at 0:44




ok then, go to the setting gui and see if the used driver is indeed your nvidia driver in sofwares and update
– Yvain
Jun 24 at 0:44












if not change that, if yes try purging all nvidia files with apt-get purge nvidia* bbswitch* and reinstall, also beware depending on your model the latests nvidia drivers will not work and you don't get an xsession.
– Yvain
Jun 24 at 0:50






if not change that, if yes try purging all nvidia files with apt-get purge nvidia* bbswitch* and reinstall, also beware depending on your model the latests nvidia drivers will not work and you don't get an xsession.
– Yvain
Jun 24 at 0:50












1 Answer
1






active

oldest

votes


















0














Short answer: Use the command line interface to install applications, the software center doesn't work.




It works to find and install flatpaks from the ubuntu software center




The version of gnome-software-plugin-flatpak provided by Ubuntu 18.04 doesn't work properly. For some reason it doesn't install extensions (like codecs, locales, themes or drivers) required by the application.




Is there any way to make these work with Nvidia?




Yes, the extensions with the NVIDIA driver matching the version of your host driver must be installed. This should have been installed automatically, when you installed the application.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1047149%2fubuntu-18-04-nvidia-flatpak-not-working%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Short answer: Use the command line interface to install applications, the software center doesn't work.




    It works to find and install flatpaks from the ubuntu software center




    The version of gnome-software-plugin-flatpak provided by Ubuntu 18.04 doesn't work properly. For some reason it doesn't install extensions (like codecs, locales, themes or drivers) required by the application.




    Is there any way to make these work with Nvidia?




    Yes, the extensions with the NVIDIA driver matching the version of your host driver must be installed. This should have been installed automatically, when you installed the application.






    share|improve this answer


























      0














      Short answer: Use the command line interface to install applications, the software center doesn't work.




      It works to find and install flatpaks from the ubuntu software center




      The version of gnome-software-plugin-flatpak provided by Ubuntu 18.04 doesn't work properly. For some reason it doesn't install extensions (like codecs, locales, themes or drivers) required by the application.




      Is there any way to make these work with Nvidia?




      Yes, the extensions with the NVIDIA driver matching the version of your host driver must be installed. This should have been installed automatically, when you installed the application.






      share|improve this answer
























        0












        0








        0






        Short answer: Use the command line interface to install applications, the software center doesn't work.




        It works to find and install flatpaks from the ubuntu software center




        The version of gnome-software-plugin-flatpak provided by Ubuntu 18.04 doesn't work properly. For some reason it doesn't install extensions (like codecs, locales, themes or drivers) required by the application.




        Is there any way to make these work with Nvidia?




        Yes, the extensions with the NVIDIA driver matching the version of your host driver must be installed. This should have been installed automatically, when you installed the application.






        share|improve this answer












        Short answer: Use the command line interface to install applications, the software center doesn't work.




        It works to find and install flatpaks from the ubuntu software center




        The version of gnome-software-plugin-flatpak provided by Ubuntu 18.04 doesn't work properly. For some reason it doesn't install extensions (like codecs, locales, themes or drivers) required by the application.




        Is there any way to make these work with Nvidia?




        Yes, the extensions with the NVIDIA driver matching the version of your host driver must be installed. This should have been installed automatically, when you installed the application.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 21 at 13:51









        Unrud

        112




        112






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1047149%2fubuntu-18-04-nvidia-flatpak-not-working%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            數位音樂下載

            When can things happen in Etherscan, such as the picture below?

            格利澤436b