Dependency hell! what do i do?

Trying to install optimus-manager on my Ryzen + Nvidia laptop and i keep getting the following error when running yay -S optimus-manager

resolving dependencies…
looking for conflicting packages…

Package (4) New Version Net Change Download Size

community/python-inflect 6.0.2-1 0.28 MiB
community/python-jaraco.text 3.11.1-1 0.07 MiB
community/python-pydantic 1.10.6-2 7.26 MiB 1.83 MiB
extra/python-setuptools 1:67.6.0-1 3.34 MiB

Total Download Size: 1.83 MiB
Total Installed Size: 10.95 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages…
python-pydantic-1.10.6-2-x86_64.pkg.tar.zst failed to download
error: failed retrieving file ‘python-pydantic-1.10.6-2-x86_64.pkg.tar.zst’ from arch.mirror.ivo.st : The requested URL returned error: 404
error: failed retrieving file ‘python-pydantic-1.10.6-2-x86_64.pkg.tar.zst’ from mnvoip.mm.fcix.net : The requested URL returned error: 404
error: failed retrieving file ‘python-pydantic-1.10.6-2-x86_64.pkg.tar.zst’ from mirror.stephanie.is : The requested URL returned error: 404
error: failed retrieving file ‘python-pydantic-1.10.6-2-x86_64.pkg.tar.zst’ from plug-mirror.rcac.purdue.edu : The requested URL returned error: 404
error: failed retrieving file ‘python-pydantic-1.10.6-2-x86_64.pkg.tar.zst’ from iad.mirrors.misaka.one : The requested URL returned error: 404
error: failed retrieving file ‘python-pydantic-1.10.6-2-x86_64.pkg.tar.zst’ from codingflyboy.mm.fcix.net : The requested URL returned error: 404
error: failed retrieving file ‘python-pydantic-1.10.6-2-x86_64.pkg.tar.zst’ from mirror.arizona.edu : The requested URL returned error: 404
error: failed retrieving file ‘python-pydantic-1.10.6-2-x86_64.pkg.tar.zst’ from mirrors.vectair.net : The requested URL returned error: 404
error: failed retrieving file ‘python-pydantic-1.10.6-2-x86_64.pkg.tar.zst’ from mirror.zackmyers.io : The requested URL returned error: 404
error: failed retrieving file ‘python-pydantic-1.10.6-2-x86_64.pkg.tar.zst’ from mirrors.lug.mtu.edu : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
→ error installing repo packages

I get a similar error using pamac. What do I do? I looked up pydantic’s git and it says to install using pip. So i tried that but it installed a newer version (1.10.7) and i still get the same error in yay and pamac.

That isn’t a dependency issue. That is what happens when you install software without updating first.

Try this:

yay -Syu optimus-manager
2 Likes

ohh… well i’ll be darned, that worked.

I am a little confused though. I installed endevouros a few days ago and ran through all the after install tasks; update mirrors, yay -Syu, and it said “nothing to do”. Was this just bad timing? Should i run Syu every time i install something?

Thank you btw.

Not really, there are updates almost every day so a few days wait will almost always have updates.

Yes, due to the way Arch rolls and package management works, you need to.

2 Likes

You have a bad mirror at the top of your mirrorlist.
The update mirrors task should not be run before update, or even frequently. You must spend some time to find out a good set of mirror servers and never change the mirrorlist, until the top server breaks or introduces a bad behavior, or performance. Use one of the utilities (EnOS provides a custom one) for the job.

No.
When you want to install any package/software, you should run:

pacman -S <package-name>

If you get output messages with error 404 (target not found), then you need to run

pacman -Syu <package-name>

A safe rule for normal usage for updating your system is about every week.
Never update your system before you start an important work on your PC.

That’s all! :sunglasses:

2 Likes

What is indicating to you a bad mirror here? The 404s look like updated packages to me.

This :point_down:

But that was “days before”.

1 Like

Not enough info, so I gave a full list of what, how and when, to help a confused new user with the package/update/install routine. :person_shrugging:

Thanks everyone.

When I installed EndevourOS a couple of days ago i ran the first three options on the welcome screen on first boot.

Update Mirrors (Arch)
Update Mirrors (EndevourOS)
Update System (yay)

yay is the one that said “nothing to do”. Probably because I did an online install. From now on when I get a 404 error i know to use Syu. Thanks again!

1 Like