i am having trouble to update my system, anyone knows what can be done, thanks
┬─[ramon@ramon-m61pmes2p:~]─[15:23:01]
╰─>$ LANG=C yay -Syyu 1 < 15:23:01
:: Synchronizing package databases...
endeavouros 26,4 KiB 46,0 KiB/s 00:01 [----------------------] 100%
core 132,5 KiB 151 KiB/s 00:01 [----------------------] 100%
extra 8,2 MiB 4,52 MiB/s 00:02 [----------------------] 100%
community 45,0 B 100 B/s 00:00 [----------------------] 100%
multilib 141,1 KiB 156 KiB/s 00:01 [----------------------] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: jre-openjdk and jre-openjdk-headless are in conflict
-> error refreshing databases - exit status 1
pycrk
November 4, 2023, 6:28pm
2
I think this is the Java problem that Bryanpwo warned us about, you can read it here.
The Arch team announced a possible manual intervention, they announced:
(Underneath is a literal quote from the Arch announcement)
We are introducing a change in JDK/JRE packages of our distro. This is
triggered from the way a JRE is build in modern versions of Java (>9). We are
introducing this change in Java 21.
To sum it up instead of having JDK and JRE packages coexist in the same system
we will be making them conflict. The JDK variant package includes the runtime
environment to exec…
Edit:
you still have the community repo. There was a change in the repos months ago.
you should change your
/etc/pacman.conf
with the content of
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
#HookDir = /etc/pacman.d/hooks/
HoldPkg = pacman glibc dracut kernel-install-for-dracut eos-dracut
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
This file has been truncated. show original
if you use the standard repos. Of course, it’s best to create a backup before changing the file.
pycrk:
pacman.conf
so i can replace all the content of my pacman.conf with that updated one ?
pycrk
November 4, 2023, 6:46pm
4
Either that or even easier you delete the two lines from the community repo.
you mean delete these ?
#[community-testing]
#Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
am i missing anything ? it did not work
┬─[ramon@ramon-m61pmes2p:~]─[16:08:06]
╰─>$ LANG=C yay -Syu 1 < 16:08:06
:: Synchronizing package databases...
endeavouros is up to date
core is up to date
extra 8,2 MiB 4,57 MiB/s 00:02 [------------------------------------------------------------------------] 100%
multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: jre-openjdk and jre-openjdk-headless are in conflict
-> error refreshing databases - exit status 1
You can’t have both jre-openjdk and jre-openjdk-headless installed. They conflict with each other.
Uninstall one of them.
pycrk
November 4, 2023, 7:15pm
9
The community repo has nothing to do with your Java problem, they are independent of each other. As I understood it from Bryanpwo, you would have to remove one of the two Java packages.
i ended removing jre-openjdk since i tried the other one first and had trouble unistalling it
pycrk
November 4, 2023, 7:21pm
11
Now you could update your system and see if it works.
yes, thanks on the help, i’ll mark the topic as solved