Package Manager resolving packages infinitely

I am trying to upgrade Unity from 2019.4.23f1 to 2021.3.27f1, but after the upgrate when starting Unity, there was an infinite pop up of the package manager resolving package, which caused me to be completely unable to use Unity normally. There are many logs in the Unity.log like:

The package cache was validated and rebuilt because the following immutable asset (s) were unexpectedly altered:
Packages/com. unity. timeline/Editor/StyleSheets/Images/MarkSkin/TimelineMarkerItemSelected.png

It seems to be caused by certain packages, but these packages are all built-in packages of Unity. I need these packages so can’t remove all of them. What should I do?

Hi @pengyq ,

The Editor.log probably includes information that could help you find what’s going on. You can look for the error message in it, and then see if the stack trace below tells you what code is causing it.