Symptoms
Attempting to install WP Toolkit results in the following error:
https://wp-toolkit.plesk.com/cPanel/dist-rpm---x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
Description
This can occur if the file /etc/lsb-release exists as needed environment variables will not be properly written to the baseurl variable within the WP Toolkit yum repository.
This will resemble the following:
[root@cl6 ~]# cat /etc/yum.repos.d/wp-toolkit-cpanel.repo
[wp-toolkit-cpanel]
name=WP Toolkit for cPanel
baseurl=https://wp-toolkit.plesk.com/cPanel/wp-toolkit/
enabled=1
gpgcheck=1
[wp-toolkit-thirdparties]
name=WP Toolkit third parties
baseurl=https://wp-toolkit.plesk.com/cPanel/dist-rpm---x86_64/
enabled=1
gpgcheck=1
Workaround
Remove the lsb-release RPM from the server and re-run the WP Toolkit installer.
# yum remove redhat-lsb-core
# sh <(curl https://wp-toolkit.plesk.com/cPanel/installer.sh || wget -O - https://wp-toolkit.plesk.com/cPanel/installer.sh)