The officially official Devuan Forum!

You are not logged in.

#1 2024-02-20 17:15:37

quickfur
Member
Registered: 2023-12-14
Posts: 431  

Getting rid of "frankenstein" packages

I migrated to daedalus from debian/testing, and while I've fixed some resulting dependency issues with packages that are newer than what's in daedulus, I'm still running into issues with packages that are "too new", causing some existing packages in daedalus to be uninstallable unless I first track down each dependency that's "too new" and remove them manually.

Is there a way to force apt to auto-downgrade packages that are newer than what's in daedalus? That would ease a lot of this pain.

Offline

#2 2024-02-20 17:19:11

rolfie
Member
Registered: 2017-11-25
Posts: 1,172  

Re: Getting rid of "frankenstein" packages

... migrated to daedalus from debian/testing ...

Well, the Debian equivalent to Daedalus is Bookworm, not Trixie/Testing. A new installation of Daedalus would solve all issues.

Offline

#3 2024-02-20 17:25:28

golinux
Administrator
Registered: 2016-11-25
Posts: 3,317  

Re: Getting rid of "frankenstein" packages

Do have a look at this page to understand the Devuan/Debian release relationships:

https://www.devuan.org/os/releases

Offline

#4 2024-02-20 17:35:50

quickfur
Member
Registered: 2023-12-14
Posts: 431  

Re: Getting rid of "frankenstein" packages

I know what I did is unsupported / foolish / whatever.  But I got it to (mostly) work.  So now I'm just looking for a way to clean things up.  Reinstalling isn't really an option since this is my primary PC.

Offline

#5 2024-02-20 18:02:16

aluma
Member
Registered: 2022-10-26
Posts: 646  

Re: Getting rid of "frankenstein" packages

Example using synaptic, first disable unnecessary repositories and reload them.
25.jpg
26.jpg

Offline

#6 2024-02-20 18:06:41

rolfie
Member
Registered: 2017-11-25
Posts: 1,172  

Re: Getting rid of "frankenstein" packages

If I am not mistaken there was an older thread in the forum with a similar issue. All I remember there was no easy way to achieve that what you want, it was a package by package undertaking.

Offline

#7 2024-02-20 18:13:02

aluma
Member
Registered: 2022-10-26
Posts: 646  

Re: Getting rid of "frankenstein" packages

I had a similar problem (dist-up* didn’t help), of course it’s better to reinstall, it’s faster and the result is without surprises. If there is a separate /home partition, this is quite easy to do. And if not, then it's time to do that too.

Offline

#8 2024-02-20 19:11:43

delgado
Member
Registered: 2022-07-14
Posts: 212  

Re: Getting rid of "frankenstein" packages

"apt pinning" is a possibility. A priority of at least 1001 allows package downgrade.
In your case, It would be pinning the daedalus packages to 1001 and then doing the usual upgrade.
I've done that a few times, it usually just works.

# cat /etc/apt/preferences
Package: *
Pin: release n=daedalus
Pin-Priority: 1001

# apt update
# apt upgrade
# apt dist-upgrade

Offline

#9 2024-02-22 19:57:47

quickfur
Member
Registered: 2023-12-14
Posts: 431  

Re: Getting rid of "frankenstein" packages

Cool, sounds like apt pinning is what I'm looking for. Will try it and see.

Offline

#10 2024-02-24 22:29:59

zapper
Member
Registered: 2017-05-29
Posts: 967  

Re: Getting rid of "frankenstein" packages

Always remember not to mix debian repos with ubuntu repos, or similar. Repos that only have one or the other, are a different case if they are from unofficial repos, but still be careful of what depends get pulled in. big_smile


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

Board footer