Just letting you know that this alone didn’t work for me. I had to remove and re-add the ros2.list file in addition.
ros2.list