Install ros2. Now update the apt repository: sudo apt update -y.