-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
--unused doesn't remove old NVidia runtime versions #2718
Comments
Realizing this is closed, I'll reference an edit on a recent issue I opened here: |
Just did a $flatpak update -y
Looking for updates…
Info: org.kde.PlatformTheme.QGnomePlatform.Sources is end-of-life, with reason: The KDE 5.11 runtime is no longer supported and does not receive security updates. We strongly recommend migrating to a supported runtime.
Info: org.kde.Platform is end-of-life, with reason: The KDE 5.11 runtime is no longer supported and does not receive security updates. We strongly recommend migrating to a supported runtime.
Info: org.kde.Platform.Locale is end-of-life, with reason: The KDE 5.11 runtime is no longer supported and does not receive security updates. We strongly recommend migrating to a supported runtime.
Info: org.freedesktop.Platform.ffmpeg is end-of-life, with reason: The Freedesktop 1.6 runtime is no longer supported and does not receive security updates. Please ask your application developer to migrate to a supported runtime.
Info: org.freedesktop.Platform.VAAPI.Intel is end-of-life, with reason: The Freedesktop 1.6 runtime is no longer supported and does not receive security updates. Please ask your application developer to migrate to a supported runtime.
Info: org.kde.PlatformTheme.QGnomePlatform is end-of-life, with reason: The KDE 5.11 runtime is no longer supported and does not receive security updates. We strongly recommend migrating to a supported runtime.
ID Branch Op Remote Download
1. [✓] org.kde.PlatformTheme.QGnomePlatform 5.11 i flathub 100.0 kB / 124.1 kB
2. [✓] org.kde.PlatformTheme.QGnomePlatform 5.14 i flathub 112.9 kB / 144.9 kB` |
Hard to say what it a worse bug. |
Same here, Opensuse Leap 15.2 |
same here, POP! OS 20.10 |
Hey guys! Gave me a little work, but everyting is going well here. I think it's not a bug, however a default behavior, because maintain the old packages if something is going wrong after an update. |
It is definitely a bug, because it uses gigabytes of disk space for useless packages that could've been reinstalled if you for some reason wanted to. |
Hey Brion, don't get me wrong. I just want to share my person experience, because in some cases maybe works. |
Are you telling me the bug has been fixed? Which commit in flatpak fixed it? |
The reason I ask is that the command you give is listed as not working in the title of this issue. So if it's fixed, then something changed. |
This issue seems fixed for me in Flatpak 1.10.2 / Fedora 33, I don't know since when. But the old runtimes are not removed automatically when updating. Maybe we should open a new issue for this. |
Sweet, I'll test it out when I get a chance. |
On Pop_OS! 20.10 I uninstalled the unused old nvidia drivers with --unused:
|
Could you please check that |
I got
that is the driver I'm currently using. |
I have this issue but only for the 32 bit version of the drivers. After updating both 64 and 32 bit versions from 465 to 470, running |
flatpak uninstall --unused appears to be working for me (pop os 21.04). sjw@pop-os anaconda3 ~ 4m 22s 2.23 11.48G RAM
Uninstall complete. sjw@pop-os anaconda3 ~ 14.0390s 1.88 11.32G RAM sjw@pop-os anaconda3 ~ INT ✘ 1.42 11.2G RAM sjw@pop-os anaconda3 ~ 0.78 10.06G RAM |
This. How to see if the issue persist
If this step only returns current nvidia versions, there's nothing to be proved here, please stop here and avoid adding noise in this thread.
Listing the installed applications is the only way. If this lists older nvidia (be it GL or GL32 versions) then the issue persists, upvote comment at the top. If step 1 returns older versions and at step 3 they're gone, then this it's new information. It might be helpful to collect your system information (distro, etc) as a comment here. |
@awerlang I can definitely confirm what @ranisalt says % flatpak remove --unused % flatpak uninstall --runtime nvidia
Which do you want to use (0 to abort)? [0-4]: I'd certainly hope that "runtime/org.freedesktop.Platform.GL32.nvidia-465-31/x86_64/1.4" would be gone from my system after doing a "remove --unused" command. Distro is Archlinux & Flatpak version is 1.11.2 |
I'm running pop os 21.04 on a laptop and I'm experiencing the same problem.
Any idea? Thank you! |
No one with advice on this? |
Kinda silly but here's a short script I'm using right now to find the latest version and uninstall all of the others: FLATPAK_LATEST_NVIDIA=$(flatpak list | grep "GL.nvidia" | cut -f2 | cut -d '.' -f5)
flatpak list | grep org.freedesktop.Platform.GL32.nvidia- | cut -f2 | grep -v "$FLATPAK_LATEST_NVIDIA" | xargs -o flatpak uninstall
|
thank you for your script, it looks it doesn't work on my system though, I just get |
@wokawoka You need both lines (you quoted just one), and it only does anything if there are outdated versions. Otherwise there's nothing to uninstall and it will complain. :) Feel free to expand it to be more user-friendly! |
|
Probably Flatpak should just remove the unused extensions for you during |
@carlos-mg89 main Nvidia runtime (GL) is removed, GL32 version is not. For example as of now I have this:
, with Flatpak 1.12.7 & ArchLinux |
Hello everyone, I was facing the same problem. GL32 versions were not being removed after
Heroic Game Launcher was using all 4 versions of the nvidia-gl32. After removing Heroic Launcher,
I'm not sure if this is a misbehavior from Heroic Launcher or the intended use (since games might need different versions of the nvidia driver), but anyway, it might be worth to check if any application is not using multiple versions. I can also confirm that running |
You're right @ralacerda. In my case it's Steam the one holding hostage the old nvidia GL32 runtimes. I checked the Steam package here: https://github.com/flathub/com.valvesoftware.Steam , no mention at all of Nvidia. It looks like this is coming from the org.freedesktop.Platform.GL32 extension directly. I don't know what's the solution here. |
@ralacerda Not Heroic specific, i had the same with OBS Flatpak. When trying to remove unused it warned me that 515.57 (i'm on 520 driver now ) is in use by OBS but i still removed it anyway, it still worked fine without it. So i would say it is not an app side issue but rather Flatpak keeping refs or something similar to apps and acting like if those versions are vital and has to be kept there. |
Whenever I try to uninstall old NVIDIA versions, this removes MANY packages.
|
https://ask.fedoraproject.org/t/remove-old-flatpak-nvidia-drivers/31143/28
|
I have uninstalled all those Nvidia flatpak runtimes and performed update, none were reinstalled. Ran flatpak repair, none returned. What makes them stack up like that. Steam is currently using recent Nvidia runtime. That was over 1 GB of runtimes taking up space. flatpak uninstall --unused removed two GL versions, but all the GL32 would not uninstall using --unused. They had to be manually uninstalled. I posted an issue report with Valve/Steam. |
I don't think it's related to valve, I don't have steam installed as a flatpak yet I had to remove all GL32 manually. |
Did any return? I have read some saying that after an update they all were reinstalled? |
No, none returned. Here's the command I ran to get rid of them It's unnecessarily messy but it gets rid of the following:
I'd just have done |
Exactly, I tried that also. I ended up copying the list and added them all on one line. I ended up with 14 of them. That one-liner is not messy at all. Rather smart to take them all out in one pass. |
Problem still continue on Fedora 37 |
#2718 (comment) Solution: Use --force. The non-nvidia packages don't get uninstalled and nothing broke, at least i didnt notice anything. Note If this fix doesn't work anymore I cant update the comment since I switched to a RX 6700 |
I have the same issue for years. I just uninstalled those outdated nvidia packages individually and nothing broke. All of those outdated packages warned me that it will break you Steam flatpak client (That's why |
There seems to be a problem with how dependencies get resolved. The steam package needs any nvidia driver package (ideally the same used by the system), but it triggers the removal warning for every package. The dependency should be resolved to the latest version installed so that old versions get pruned. |
No, the requirement is more specific than that. In the NVIDIA proprietary driver, the user-space driver (which Flatpak installs as an extension) and the kernel-side driver (which comes from your OS) must be upgraded in lockstep, so there is only one correct user-space driver to use with your running kernel, and it's the one that matches what it says in However, if you might reboot or downgrade into an older kernel with an older kernel-side driver, then your Flatpak apps will need the corresponding older user-space driver instead - so it's not necessarily desirable for Flatpak to be too aggressive about cleaning up older versions. |
Linux distributions that ship the proprietary NVIDIA driver have the option to avoid this whole mess by putting a copy of their proprietary driver in an appropriate location as described in https://blog.tingping.se/2018/08/26/flatpak-host-extensions.html (one of the things on my infinitely long to-do list is to propose this in Debian). |
This would make sense if Flatpak behaved like that. The fact so many people complain about having 10+ nvidia runtimes each of GL and GL32 variants accumulate on their system almost certainly doesn't translate to people having 10+ kernel versions and historic kernel-side drivers installed. I know for a fact I've never had more than 3 kernels available to boot into on my system, but as shown in console output in my issue #5261 I had over 20 separate versions of the nvidia runtime which all updated every time any Flatpak program needed an update, and were all flagged as in use by every single Flatpak program I had installed simultaneously. This is blatantly user-antagonistic behaviour, and the devs have no intention to fix it despite the steady stream of issues on Github and continued complaints throughout. For someone with limited storage space or on a slow or metered Internet connection, this behaviour is very much hostile. I've now replaced everything I can with non-Flatpak versions because I'm sick of the huge, slow updates and broken, hostile update policy intentionally designed to waste my bandwidth and choke out my drive with unusable, pointless, ancient runtimes just in case I someday reinstall an ancient kernel. |
A major contributor to this issue is that the In brief testing, it appears that this needs to be set by every app that defines the extension point. Would it make sense to add a check to flatpak-builder-lint? The other half of this issue should be covered by 8c26798, which makes autopruning also happen on update. One remaining quirk is that |
Fixed by 8c26798 |
I misread the main issue, in practice it won’t matter because of that commit but they are still considered used. |
Linux distribution and version
Fedora 29
Flatpak version
flatpak-1.2.3-2.fc29.x86_64
flatpak-libs-1.2.3-2.fc29.x86_64
Description of the problem
I have a NVidia card and currently there are 7 NVidia runtimes for each arch, 14, in total installed:
Doing a 'flatpak remove --unused' returns "
Steps to reproduce
Have an NVidia card and older NVidia driver.
Install a Flatpak that needs NVidia runtime.
Update NVidia driver to a newer version.
Flatpak will update the NVidia runtime, but won't remove the old one.
Run 'flatpak remove --unused' and you'll get the message.
The text was updated successfully, but these errors were encountered: