This is pretty straightforward, you’ll see this error when updating or installing a plugin.
The package could not be installed. PCLZIP_ERR_BAD_FORMAT
Basically the file WordPress is trying to download is either corrupt or you don’t have the PHP curl module installed. So simply install it, for Ubuntu this is:
apt-get install php-curl
apt-get install php7.3-curl