Creating new Upgraded URP project pops-up errors in console

I wanted to get back to game development, so I load up unity and create a new project. I make projects in URP, and there was an option to upgrade the URP project, so I did (a permanent change). So, I create the upgraded URP project, and a couple things happen:

  • A safe mode pop-up comes up before the project was to open,
  • There are some errors in the console which I am alien to in the project once it opens up,

Here are the errors:

Library\PackageCache\com.unity.render-pipelines.universal@10.9.0\Runtime\XR\XRSystem.cs(151,25): error CS1061: ‘XRDisplaySubsystem’ does not contain a definition for ‘EndRecordingIfLateLatched’ and no accessible extension method ‘EndRecordingIfLateLatched’ accepting a first argument of type ‘XRDisplaySubsystem’ could be found (are you missing a using directive or an assembly reference?)

Library\PackageCache\com.unity.render-pipelines.universal@10.9.0\Runtime\XR\XRPass.cs(481,39): error CS0103: The name ‘CameraLateLatchMatrixType’ does not exist in the current context

Library\PackageCache\com.unity.render-pipelines.universal@10.9.0\Runtime\XR\XRPass.cs(481,17): error CS1061: ‘CommandBuffer’ does not contain a definition for ‘UnmarkLateLatchMatrix’ and no accessible extension method ‘UnmarkLateLatchMatrix’ accepting a first argument of type ‘CommandBuffer’ could be found (are you missing a using directive or an assembly reference?)

There are nineteen errors in total, which are iterations of the above errors, but with different line references.
This never happened before, and I am not sure what to do, so I am asking help for the above.

Not sure if relevant, but the unity version I am using is: 2020.3.27f1 (64-bit).

Extra unwanted packages in new projects (collab, testing, rider and other junk):

About the fastest way I have found to make a project and avoid all this noise is to create the project, then as soon as you see the files appear, FORCE-STOP (hard-kill) Unity (with the Activity Manager or Task Manager), then go hand-edit the Packages/manifest.json file as outlined in the above post, then reopen Unity.

Sometimes the package system gets borked from all this unnecessary churn and requires the package cache to be cleared:

The AR/XR/VR groups might also have more info, given the names above.

For errors in the Library folder it can also be helpful to delete the library folder. This will reimport the project.
Also as kurt said make sure everything is up to date