Can I install c-ares 1.18.1 on Ubuntu 21.10

Solution 1:

You can install this libc-ares-dev (1.18.1-1) library manually on Ubuntu 21.10 using packages from upcoming 22.04 LTS, by commands shown below:

cd ~/Downloads
wget -c http://archive.ubuntu.com/ubuntu/pool/main/c/c-ares/libc-ares2_1.18.1-1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/main/c/c-ares/libc-ares-dev_1.18.1-1_amd64.deb

sudo apt-get install ./libc-ares2_1.18.1-1_amd64.deb ./libc-ares-dev_1.18.1-1_amd64.deb