Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ SOLVED ]Portage can't update perl because of slot conflict
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
hwix
n00b
n00b


Joined: 08 Jul 2024
Posts: 22

PostPosted: Thu Aug 29, 2024 10:13 pm    Post subject: [ SOLVED ]Portage can't update perl because of slot conflict Reply with quote

I tried to update and upgrade the packages in my system and I ended up getting the following error message:

Code:
Calculating dependencies... done!
Dependency resolution took 18.99 s (backtrack: 2/20).

[ebuild  N     ] perl-core/Encode-3.190.0  PERL_FEATURES="(-debug) -ithreads -quadmath"
[ebuild     U  ] dev-lang/perl-5.40.0 [5.38.2-r3]

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-lang/perl:0

  (dev-lang/perl-5.38.2-r3-1:0/5.38::gentoo, installed) USE="gdbm -berkdb -doc -minimal" PERL_FEATURES="(-debug) -ithreads -quadmath" pulled in by
    =dev-lang/perl-5.38* required by (virtual/perl-IO-1.520.0:0/0::gentoo, installed) USE=""
    ^              ^^^^^
    dev-lang/perl:0/5.38= required by (virtual/perl-MIME-Base64-3.160.100_rc-r1:0/0::gentoo, installed) USE=""
                 ^^^^^^^^
    (and 115 more with the same problems)

  (dev-lang/perl-5.40.0:0/5.40::gentoo, ebuild scheduled for merge) USE="gdbm -berkdb -doc -minimal" PERL_FEATURES="(-debug) -ithreads -quadmath" pulled in by
    =dev-lang/perl-5.40* required by (virtual/perl-ExtUtils-Install-2.220.0-r1-1:0/0::gentoo, installed) USE=""
    ^              ^^^^^
    (and 21 more with the same problem)

NOTE: Use the '--verbose-conflicts' option to display parents omitted above

It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


Last edited by hwix on Mon Sep 02, 2024 3:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9261

PostPosted: Thu Aug 29, 2024 10:30 pm    Post subject: Reply with quote

emerge --sync

... and try again
Back to top
View user's profile Send private message
hwix
n00b
n00b


Joined: 08 Jul 2024
Posts: 22

PostPosted: Fri Aug 30, 2024 12:29 am    Post subject: Reply with quote

asturm wrote:
emerge --sync

... and try again


I did that and then typed in
Code:
emerge -aND @world
to upgrade my packages but I still ended up getting the same error message. I'm not sure what to do really since this is pretty confusing.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20484

PostPosted: Fri Aug 30, 2024 2:51 am    Post subject: Reply with quote

"emerge -aND @world" doesn't tell portage to perform updates. You can keep N, but you should probably add both "u" and "U". With "U", the "N" option can be dropped for most updates.

If that doesn't help, then you may be syncing with a mirror that doesn't have fixes for affected packages, or maybe there's a package that hasn't been fixed.

https://bugs.gentoo.org/938660

Another option is to temporarily avoid updating perl. One way is to use the --exclude feature.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
hwix
n00b
n00b


Joined: 08 Jul 2024
Posts: 22

PostPosted: Mon Sep 02, 2024 3:16 pm    Post subject: Reply with quote

pjp wrote:
"emerge -aND @world" doesn't tell portage to perform updates. You can keep N, but you should probably add both "u" and "U". With "U", the "N" option can be dropped for most updates.

If that doesn't help, then you may be syncing with a mirror that doesn't have fixes for affected packages, or maybe there's a package that hasn't been fixed.

https://bugs.gentoo.org/938660

Another option is to temporarily avoid updating perl. One way is to use the --exclude feature.


I did that and it fixed the issue, thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum