Nvidia-inst instantly fails with conflict, but removing conflicting package does not fix error

nvidia-inst output
[roadhog360@roadhog360-strixgl504gvgl504gv ~]$ nvidia-inst
2024-07-24 00:06:43: Info: Running: nvidia-inst v24-1
2024-07-24 00:06:43: Info: Command line: nvidia-inst 
2024-07-24 00:06:43: Info: Selected mode: nvidia
NVIDIA card id: 1f11
Fetching driver data from nvidia.com ...
2024-07-24 00:06:46: Info: Installing packages: nvidia-dkms nvidia-utils nvidia-settings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMMANDS TO RUN:
    pacman -Syuq --noconfirm --noprogressbar --needed nvidia-dkms nvidia-utils nvidia-settings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

==> NOTE: running the commands may take several minutes...

Root Password: 
:: Synchronizing package databases...
 endeavouros downloading...
 core downloading...
 extra downloading...
 multilib downloading...
:: Starting full system upgrade...
warning: plasma-desktop: ignoring package upgrade (6.0.5-1 => 6.1.3-1)
resolving dependencies...
looking for conflicting packages...
:: nvidia-utils-555.58.02-1 and nvidia-utils-tkg-555.42.02-253 are in conflict (nvidia-libgl). Remove nvidia-utils-tkg? [y/N] 
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: nvidia-utils-555.58.02-1 and nvidia-utils-tkg-555.42.02-253 are in conflict

Iā€™ve tried removing nvidia-utils-tkg as it has a lower version number, using yay -R nvidia-utils-tkg but that didnā€™t do anything despite it seemingly succeeding, itā€™s somehow still there and nvidia-inst refuses to remove it.

removal attempt output
[roadhog360@roadhog360-strixgl504gvgl504gv ~]$ yay -R nvidia-dkms-tkg
checking dependencies...

Package (1)      Old Version    Net Change

nvidia-dkms-tkg  555.42.02-253  -68.89 MiB

Total Removed Size:  68.89 MiB

:: Do you want to remove these packages? [Y/n] Y
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms remove --no-depmod nvidia/555.42.02 -k 6.9.3-arch1-1
==> depmod 6.9.3-arch1-1
:: Processing package changes...
(1/1) removing nvidia-dkms-tkg                                                                [------------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

There was no error in the removal, so why is it still there? Iā€™m just trying to update to the latest NVIDIA 560 drivers so I can try Wayland, but itā€™s just refusing

Not sure if this is related but you ar running a rather old kernel.

The current one is linux 6.10.arch1-2.

You may want to update your system before attempting to install a new package as doing otherwise my give rise to a partial upgrade situation and that is not a good state for a system to be in.

I ran yay -Syu earlier today and also a few days ago so everything should be up to date. Does Syu not update the kernel? How do I update it?

In principle yay (alone) should be enough to update both packages from the repos and AUR.

Did you reboot your system after the latest update?

Check with uname -r to see what is your current running kernel.

You may need to refresh your mirrorlist to get a new set of up-to-date servers.

Yes I turn off my pc every night. I was under the impression the kernel was able to live update but regardless Iā€™ll restart right now.

After an update to kernel, you would need to restart the system to be able to use the newly update kernel.

Itā€™s still on the same version after a restart. Hereā€™s the output of yay -Syu --noconfirm:

I thought the errors at the bottom were for just the one package that appears above it, so I ignored it before. Donā€™t tell me this has been holding up the entire system from updating?!

Your system seems to be in a partial upgrade situation and the update is ā€œbrokenā€.

This is because you have added a fundamental part of your system to be ignored to be updated:

plasma-desktop

And also what I presume to be an AUR package which seems to prevent the update:

dolphin-emu-git

warning: plasma-desktop: ignoring package upgrade (6.0.5-1 => 6.1.3-1)

resolving dependenciesā€¦

looking for conflicting packagesā€¦

error: failed to prepare transaction (could not satisfy dependencies)

:: installing ffmpeg (2:7.0.1-2) breaks dependency ā€˜libavcodec.so=60-64ā€™ required by dolphin-emu-git

:: installing ffmpeg (2:7.0.1-2) breaks dependency ā€˜libavformat.so=60-64ā€™ required by dolphin-emu-git

:: installing ffmpeg (2:7.0.1-2) breaks dependency ā€˜libavutil.so=58-64ā€™ required by dolphin-emu-git

:: installing miniupnpc (2.2.8-1) breaks dependency ā€˜libminiupnpc.so=17-64ā€™ required by dolphin-emu-git

:: installing ffmpeg (2:7.0.1-2) breaks dependency ā€˜libswscale.so=7-64ā€™ required by dolphin-emu-git

ā†’ error installing repo packages

error installing repo packages

error installing repo packages

I have never added anything system-related to ignore updates. Iā€™ve only ever done this for Blender and IntelliJ IDE, not system packages.

Furthermore, is there a way to fix dolphin-emu-git without just removing it from my system? I very frequently use this emulator, and specifically need its bleeding edge features, so the standard release packages are not a suitable replaement.

First off, please edit the title of the topic to reflect what the real issue is here which we are trying to resolve. Then you could create a new topic for the Nvidia issue.

warning: plasma-desktop: ignoring package upgrade (6.0.5-1 => 6.1.3-1)

Are you the only user of the system with admin right?

Please have a look at your /etc/pacman.conf or upload it here for us to have a look and see if there might be other things in there which needs attention.

No. You would need to remove it first. Update your system fully. Reinstall it again. Hopefully if the PKGBUILD maintainer has updated it to take into account updated libraries and packages, it will install without issues.

I donā€™t know why Iā€™d edit the title and create a new thread for the issue instead of creating a new thread for this newfound issue, and redirecting this thread that was already for the NVIDIA stuff, back on topic. While I did discover a new problem during this conversation, the system still does recognize that nvidia-utils-tkg is no longer installed, so Iā€™m not entirely sure if the older kernel is the issue but regardless, Iā€™ll try to move forward with a complete system update now that Iā€™m aware that I am lagging behind, thanks to you.

Iā€™ve found that plasma-desktop was indeed in the pacman.conf, which makes no sense because yes I am the only user with admin rights, and the sole operator of this computer. I never specified anything to add it there at any point. Iā€™ve gone ahead and removed it from the ignore packages line because it doesnā€™t need to be there. I want to keep Plasma up-to-date

I will make a new thread about this system partial update issue, should the discussion on that front continue. It seems after removing dolphin-emu-git, the system update overall does seem to be proceeding now. (I knew Syu was suspiciously fast before)

Thank you for assistance. If the system update succeeds, I will report back here if once again attempting to update my drivers still works, and put the discussion back on track. If the update fails I will instead create a new thread about the system update, then once thatā€™s sorted out, will return here to finish updating my NVIDIA drivers, should the issue there persist.

Because having a broken update and your system being in a partially upgrade situation is what this thread has come to be about and we are trying to resolve first.

Therefore it would be logical to change the title of the topic to reflect that. Also more practical than creating a new topic, refer to this one and probably asking the mods to move the posts trying to resolve the update situation.

Since nothing should be added or removed from your system files without your specific permission (editing the file as root), I wonder how plasma-desktop has got into your /etc/pacman.conf to be ignored.

That package relied on an older version of a package in your system which kept your system from getting updated.

Also, generally speaking, adding a package to the /etc/pacman.conf to be ignored to get updates, may in a very short term, resolve a temporary issue with that package if an update is problematic.

In the long term though, Arch being a rolling release, gets updates to its packages at a fast pace. Therefore the system needs to be update as a whole. Putting the system in a partial upgrade situation would inevitably lead to a broke system

Me too. Nobody in my house has anywhere near the technical know-how to break past my password screen. They donā€™t even have their own PCs, and probably donā€™t even know what Linux is. Wtf?

1 Like

Somebody, somehow at some point in time must have done something to edit that file.

Otherwise, God forbid, we would need to make at least the assumption that your system is compromised :wink: :stuck_out_tongue_winking_eye:

Or archive the whole thing under ā€œStrange Inexplicable Occurrences in the Linux Universeā€.

PS.
I couldnā€™t imagine that plasma-desktop got added to your /etc/pacman.conf by the live installer already at the time of installing the system.

While updating the system, I waited for it to finish and then it told me to restart so I did it now Iā€™ve run into a new issue. We may also need to come back here when that is done since when I went into the command line to try nvidia-inst, it still thinks the package I removed is there and is conflicting.

I managed to solve that issue, and it was also the solution to this issue, too. I was able to force remove the conflicting packages by using -Rdd then allowing nvidia-inst to properly reinstall them.

Hats off to @pebcak for identifying and resolving the real issue discussed in this thread :saluting_face:

With respect to plasma-desktop on the ignore list, have you ever used the downgrade tool @Roadhog360 ?

1 Like

I doubt the outdated packages were the actual issue; when I updated them I still had the same issue which was solved by force-removing the conflicting packages.

Only for Blender and IntelliJ, never for anything else.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.