You are not logged in.

#1 2023-04-19 08:14:59

4nalk1ng
Member
Registered: 2023-04-19
Posts: 1

Pacman fails to downgrade packages

Hello, I am downgrading my version of CUDA from 12.1 to 11.8 in order to use pytorch with cuda support.

I run the following:

sudo pacman -U https://archive.archlinux.org/packages/ … kg.tar.zst

and get the following warning

warning: cannot resolve "gcc11", a dependency of "cuda"

it prompts me for y/n and either way the package doesn't install. Ok so I go ahead and downgrade gcc and gcc-lib to version 11. I still get the same prompt on trying to downgrade cuda. I also tried using the downgrade package from the AUR, hoping there was a recursive downgrade feature. How can I resolve this issue?

Offline

#2 2023-04-19 08:29:21

dogknowsnx
Guest

Re: Pacman fails to downgrade packages

https://archlinux.org/packages/communit … orch-cuda/ ?

These forums aren't porn-related...

Last edited by dogknowsnx (2023-04-19 08:31:38)

#3 2023-04-19 12:35:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Pacman fails to downgrade packages

If you are installing a package that depends on aur packages, you need to handle those dependencies yourself first.  Downgrading is irrelevant (and a very bad idea).  If you need to install the package in your first post, you need to install the package named gcc11 which is currently in the AUR.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2023-04-20 17:47:29

rado84
Banned
From: Sofia, Bulgaria
Registered: 2019-05-12
Posts: 135

Re: Pacman fails to downgrade packages

I've never tried to enter an URL after the -U, so I'm not sure that would work. However, as you were already told, you need to list all the dependencies. But you don't have to use pacman to downgrade a package. You can simply use the package named "downgrade" (trizen -S downgrade) and then use it like this:

sudo downgrade [packagename] [packagedependency]

For instance, when I need to downgrade the nvidia driver, like the last time bc v530 is glitchy, I did it like this:

sudo downgrade nvidia-dkms nvidia-utils nvidia-settings lib32-nvidia-utils

then manually entering the number of the package I wanted to be downgraded along with the bracket after the number. Without that bracket downgrade gets confused and downloads the wrong files.

Or, if you still insist on using pacman for the downgrade, then visit the Arch's archive here (this is the address from which Downgrade gets the packages you have requested to be downgraded): https://archive.archlinux.org/packages/ and manually download each package and its dependencies, then put them in a separate directory which doesn't contain any other files and simply do

sudo pacman -U *.zst

Core i7-4770, GTX 1660 Ti, 32 GB RAM, Arch 6.x LTS, Cinnamon 5.2.7, GDM

Offline

#5 2023-04-20 17:52:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,651

Re: Pacman fails to downgrade packages

No, you do not need to list all dependencies. You can't, really, or you're going to destroy the system. None of that, nor the downgrade package, have anything to do with the OP's issue of not having gcc11.

Offline

#6 2023-04-20 18:06:01

rado84
Banned
From: Sofia, Bulgaria
Registered: 2019-05-12
Posts: 135

Re: Pacman fails to downgrade packages

OK, maybe I miswrote it. I meant list the main dependencies, like with the nvidia example I wrote above. The main deps will download whatever deps they need.

I didn't see that he doesn't have gcc11 but that's easily fixable. I gave him options how to downgrade. Whether or not he will install gcc11 - that's up to him.


Core i7-4770, GTX 1660 Ti, 32 GB RAM, Arch 6.x LTS, Cinnamon 5.2.7, GDM

Offline

#7 2023-04-21 10:03:01

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,849

Re: Pacman fails to downgrade packages

I didn't see that he doesn't have gcc11 but that's easily fixable. I gave him options how to downgrade

Downgrading packages in base meta-package is asking for breakage. This goes double for the default compiler almost everything is built with .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB