I need to install the latest LTS Ubuntu (22.04) in KVM. Few years ago I installed 18.04 in this way and it worked:
sudo virt-install --name new_server --ram=2048 --vcpus=1 --cpu host --hvm --disk path=/var/lib/libvirt/images/new_server,size=20 --location http://gb.archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/ --graphics none --console pty,target_type=serial --extra-args 'console=ttyS0,115200n8 serial' --os-type linux --os-variant ubuntu18.04 --network network:default --hvm --force --debug
But now I got this error:
ValueError: Could not find an installable distribution at 'http://gb.archive.ubuntu.com/ubuntu/dists/jammy/main/installer-amd64/'
How I could install Ubuntu 22.04 on KVM in console mode?