Please run below command on your host. And you can flash the board.
sudo apt-get install libxml2-utils