ArchLinux解决升级冲突

2023年11月05日星期日阴北京市北京师范大学, 在升级我的ArchLinux时发现报错了,如下

ArchLinux 报错
1
2
3
4
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: jre-openjdk-headless and jre-openjdk are in conflict

百度后找到解决方法:

resolve error
1
sudo pacman -Sy jdk-openjdk 

参考网址: How to resolve jre-openjdk and jre-openjdk-headless conflicts?