Bug 29883 - while updating flatpak, it updates old nvidia/Freedesktop/GNOME platforms - remove manually!
Summary: while updating flatpak, it updates old nvidia/Freedesktop/GNOME platforms - r...
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: Release (media or process) (show other bugs)
Version: 8
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard: In our Wiki on Flatpak
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2022-01-13 13:30 CET by peter lawford
Modified: 2022-01-15 16:15 CET (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description peter lawford 2022-01-13 13:30:32 CET
Description of problem:
the actual nvidia platform is 470.94-1:

[root@mag6 alain4]# rpm -qa |grep nvidia
x11-driver-video-nvidia-current-470.94-1.mga8.nonfree
nvidia-current-cuda-opencl-470.94-1.mga8.nonfree
lib64nvidia-egl-wayland1-1.1.5-3.mga8
nvidia-current-utils-470.94-1.mga8.nonfree
nvidia-current-doc-html-470.94-1.mga8.nonfree
nvidia-cuda-toolkit-11.2.0-8.mga8.nonfree
dkms-nvidia-current-470.94-1.mga8.nonfree
[root@mag6 alain4]#

but while updating flatpak:

[root@mag6 alain4]# flatpak update
Looking for updates…


        ID                                                            Branch                  Op             Remote              Download
 1. [✓] org.flathub.flatpak_external_data_checker.Locale              stable                  u              flathub               1,6 kB / 1,7 MB
 2. [✓] org.freedesktop.Platform.GL.default                           20.08                   u              flathub             450,5 kB / 106,4 MB
 3. [✓] org.freedesktop.Platform.GL.nvidia-460-73-01                  1.4                     u              flathub             133,3 MB / 134,1 MB
 4. [✓] org.freedesktop.Platform.GL.nvidia-460-80                     1.4                     u              flathub             132,2 MB / 133,0 MB
 5. [✓] org.freedesktop.Platform.GL.nvidia-460-84                     1.4                     u              flathub             132,6 MB / 133,4 MB
 6. [✓] org.freedesktop.Platform.GL.nvidia-470-74                     1.4                     u              flathub             270,5 MB / 271,3 MB
 7. [✓] org.freedesktop.Platform.GL.nvidia-470-86                     1.4                     u              flathub             273,2 MB / 274,0 MB
 8. [✓] org.freedesktop.Platform.GL.nvidia-470-94                     1.4                     u              flathub             272,3 MB / 273,1 MB
 9. [✓] org.freedesktop.Platform.Locale                               20.08                   u              flathub              21,4 kB / 322,3 MB
10. [✓] org.freedesktop.Platform                                      20.08                   u              flathub               2,3 MB / 268,6 MB
11. [✓] org.flathub.flatpak-external-data-checker                     stable                  u              flathub               4,0 MB / 12,5 MB
12. [✓] org.kde.KStyle.Adwaita                                        5.15                    u              flathub             704,5 kB / 6,6 MB
13. [✓] org.kde.KStyle.Adwaita                                        5.15-21.08              u              flathub             793,6 kB / 6,6 MB

Updates complete.
[root@mag6 alain4]#

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 sturmvogel 2022-01-13 13:53:03 CET
It downloads every driver again according https://github.com/flatpak/flatpak/issues/3750 So it seems to be an upstream issue.

The actual driver is your number 8.

Did you already try "flatpak uninstall --unused"?
Comment 3 Morgan Leijström 2022-01-13 15:31:02 CET
Thanks for the tip.

I added chapter https://wiki.mageia.org/en/Flatpak#Cleaning

Actually it is not only old nvidia drivers that keep lying around, apparently, see below.

So I believe it is by design.  Anyway nothing Mageia can do, but to note it in our wiki.

(Please reopen if you think removals can and should be automated)



  On my system I had:

$ flatpak list
Namn                            Program-ID                          Version              Gren       Origin    Installation
...
Freedesktop Platform            org.freedesktop.Platform            20.08.17             20.08      flathub   user
Freedesktop Platform            org.freedesktop.Platform            21.08.9              21.08      flathub   user
Mesa                            org.freedesktop.Platform.GL.default 21.1.8               20.08      flathub   user
Mesa                            org.freedesktop.Platform.GL.default 21.3.3               21.08      flathub   user
nvidia-470-74                   …edesktop.Platform.GL.nvidia-470-74                      1.4        flathub   user
nvidia-470-86                   …edesktop.Platform.GL.nvidia-470-86                      1.4        flathub   user
nvidia-470-94                   …edesktop.Platform.GL.nvidia-470-94                      1.4        flathub   user
...
GNOME Application Platform ver… org.gnome.Platform                                       3.38       flathub   user
GNOME Application Platform ver… org.gnome.Platform                                       40         flathub   user
GNOME Application Platform ver… org.gnome.Platform                                       41         flathub   user
...

$ flatpak uninstall --unused

These runtimes in installation 'user' are pinned and won't be removed; see flatpak-pin(1):
  runtime/org.freecadweb.FreeCAD.Manual/x86_64/stable

        ID                                                  Gren            Op
 1.     org.freedesktop.Platform.GL.nvidia-470-74           1.4             r
 2.     org.freedesktop.Platform.GL.nvidia-470-86           1.4             r
 3.     org.freedesktop.Platform                            20.08           r
 4.     org.freedesktop.Platform.Locale                     20.08           r
 5.     org.gnome.Platform                                  40              r
 6.     org.gnome.Platform.Locale                           40              r

Proceed with these changes to the user installation? [Y/n]: y

Keywords: (none) => UPSTREAM
Status: NEW => RESOLVED
Resolution: (none) => WONTFIX
Whiteboard: (none) => In our Wiki on Flatpak
CC: (none) => fri
Summary: while updating flatpak, it updates old nvidia platforms => while updating flatpak, it updates old nvidia/Freedesktop/GNOME platforms - remove manually!

Comment 4 peter lawford 2022-01-14 12:58:35 CET
# flatpak uninstall --unused

as root seems to work:
[root@magaux alain4]# flatpak uninstall --unused 


        ID                                                      Branch           Op
 1. [-] org.freedesktop.Platform.GL.default                     20.08            r
 2. [-] org.freedesktop.Platform.GL.nvidia-460-73-01            1.4              r
 3. [-] org.freedesktop.Platform.GL.nvidia-460-80               1.4              r
 4. [-] org.freedesktop.Platform.GL.nvidia-460-84               1.4              r
 5. [-] org.freedesktop.Platform.GL.nvidia-470-74               1.4              r
 6. [-] org.freedesktop.Platform.GL.nvidia-470-86               1.4              r
 7. [-] org.kde.KStyle.Adwaita                                  5.15             r
 8. [-] org.kde.Platform                                        5.15             r
 9. [-] org.kde.Platform.Locale                                 5.15             r

Uninstall complete.
[root@magaux alain4]#
Comment 5 peter lawford 2022-01-15 16:14:15 CET
after having run the command # flatpak uninstall --unused

[root@mga6-64 alain4]# flatpak update
Looking for updates…


        ID                                                    Branch                 Op             Remote             Download
 1. [✓] org.freedesktop.Platform.GL.nvidia-470-94             1.4                    u              flathub            272,3 MB / 273,1 MB
 2. [✓] org.kde.Platform.Locale                               5.15-21.08             u              flathub             24,8 kB / 345,0 MB
 3. [✓] org.kde.Platform                                      5.15-21.08             u              flathub              3,3 MB / 305,1 MB

Updates complete.

the problem seems to be fixed
Comment 6 Morgan Leijström 2022-01-15 16:15:56 CET
Yes it works here too :)

Note You need to log in before you can comment on or make changes to this bug.