ubuntu 19.10 eoan update error

C++
# solution
sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

# then try 
sudo apt update

Source

Also in C++: