Cannot upgrade to 11.102.0.8 until needed system packages are installed

philbean

Member
Jul 14, 2020
21
2
3
UK
cPanel Access Level
Root Administrator
Logged into WHM this morning with the aim of tweaking my backup settings.

Noticed an upgrade was available. Started it running, as I have many times before...

This time it fails. With the message:
"Cannot upgrade to 11.102.0.8 until needed system packages are installed"

and now the yellow message at the top just says
" The last attempt to update cPanel & WHM was blocked"

Any idea on how to get more info. What 'system package' is missing? How do I resolve this??

thanks
 

andrew.n

Well-Known Member
Jun 9, 2020
982
363
63
EU
cPanel Access Level
Root Administrator

philbean

Member
Jul 14, 2020
21
2
3
UK
cPanel Access Level
Root Administrator
OK. Now I'm confused.
I thought I was on CentOS 8 but checking shows I'm actually still on 7.9 so it shouldn't be an issue should it ?

Clicking on the blocked message just gives me


FATALCannot upgrade to 11.102.0.8 until needed system packages are installed.


which doesn't help much.

Which 'system packages' am I missing ??
 

andrew.n

Well-Known Member
Jun 9, 2020
982
363
63
EU
cPanel Access Level
Root Administrator
Right, If you run /scripts/upcp from command line as root what does it say? If you are not familiar with SSH you can open WHM go to Terminal and type "/scripts/upcp" there.
 

andrew.n

Well-Known Member
Jun 9, 2020
982
363
63
EU
cPanel Access Level
Root Administrator
okay. Can you run "yum update" and see how that goes? I bet there is the culprit.
 

philbean

Member
Jul 14, 2020
21
2
3
UK
cPanel Access Level
Root Administrator
just got this...

Code:
[root@vs01 ~]# yum update
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
 * EA4: 185.53.12.144
 * cpanel-addons-production-feed: 185.53.12.144
 * cpanel-plugins: 185.53.12.144
 * epel: mirrors.coreix.net
https://wp-toolkit.plesk.com/cPanel/CentOS-7-x86_64/latest/wp-toolkit/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.



 One of the configured repositories failed (WordPress Toolkit for cPanel),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=wp-toolkit-cpanel ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable wp-toolkit-cpanel
        or
            subscription-manager repos --disable=wp-toolkit-cpanel

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=wp-toolkit-cpanel.skip_if_unavailable=true

failure: repodata/repomd.xml from wp-toolkit-cpanel: [Errno 256] No more mirrors to try.
https://wp-toolkit.plesk.com/cPanel/CentOS-7-x86_64/latest/wp-toolkit/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
[root@vs01 ~]#
 

andrew.n

Well-Known Member
Jun 9, 2020
982
363
63
EU
cPanel Access Level
Root Administrator
that's the problem. Try this please:

Workaround
Add the variable distroverpkg=centos-release within /etc/yum.conf.

This will resemble the following:

[ root@server ~]# grep distroverpkg /etc/yum.conf
distroverpkg=centos-release

then run "yum update" again.
 
  • Like
Reactions: cPRex

philbean

Member
Jul 14, 2020
21
2
3
UK
cPanel Access Level
Root Administrator
same result from what I can see

Code:
[root@vs01 ~]# grep distroverpkg /etc/yum.conf
distroverpkg=centos-release
[root@vs01 ~]# yum update
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                                                     |  31 kB  00:00:00
 * EA4: 185.53.12.144
 * cpanel-addons-production-feed: 185.53.12.144
 * cpanel-plugins: 185.53.12.144
 * epel: mirrors.coreix.net
EA4                                                                                                                                      | 2.9 kB  00:00:00
cpanel-addons-production-feed                                                                                                            | 2.9 kB  00:00:00
cpanel-plugins                                                                                                                           | 2.9 kB  00:00:00
base                                                                                                                                     | 3.6 kB  00:00:00
extras                                                                                                                                   | 2.9 kB  00:00:00
mysql-connectors-community                                                                                                               | 2.6 kB  00:00:00
mysql-tools-community                                                                                                                    | 2.6 kB  00:00:00
mysql57-community                                                                                                                        | 2.6 kB  00:00:00
mysql80-community                                                                                                                        | 2.6 kB  00:00:00
overviewer                                                                                                                               | 2.5 kB  00:00:00
updates                                                                                                                                  | 2.9 kB  00:00:00
https://wp-toolkit.plesk.com/cPanel/CentOS-7-x86_64/latest/wp-toolkit/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.



 One of the configured repositories failed (WordPress Toolkit for cPanel),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=wp-toolkit-cpanel ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable wp-toolkit-cpanel
        or
            subscription-manager repos --disable=wp-toolkit-cpanel

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=wp-toolkit-cpanel.skip_if_unavailable=true

failure: repodata/repomd.xml from wp-toolkit-cpanel: [Errno 256] No more mirrors to try.
https://wp-toolkit.plesk.com/cPanel/CentOS-7-x86_64/latest/wp-toolkit/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
 

andrew.n

Well-Known Member
Jun 9, 2020
982
363
63
EU
cPanel Access Level
Root Administrator

philbean

Member
Jul 14, 2020
21
2
3
UK
cPanel Access Level
Root Administrator
ran yum clean all and update
no change

ran the remove and got this

Code:
[root@vs01 ~]# yum remove redhat-lsb-core
Loaded plugins: fastestmirror, universal-hooks
No Match for argument: redhat-lsb-core
No Packages marked for removal
[root@vs01 ~]#
 

andrew.n

Well-Known Member
Jun 9, 2020
982
363
63
EU
cPanel Access Level
Root Administrator

Spirogg

Well-Known Member
Feb 21, 2018
700
163
43
chicago
cPanel Access Level
Root Administrator
  • Like
Reactions: cPRex

philbean

Member
Jul 14, 2020
21
2
3
UK
cPanel Access Level
Root Administrator
Sorted.

Impressed. cP support are very good.

Ticket no. 94429008
In summary...


The original problem was due to the following extensions not being able to be installed:
[2022-03-24 14:29:59 +0000] E Sysup: Needed system packages were not installed: aspell, dpkg, perl-Expect, perl-IO-Tty, perl-JSON-XS, perl-Try-Tiny, perl-YAML-Syck

However, due to the wp toolkit repos having the wrong URL they were timing out, I've replaced these URLs with the correct ones:

Note, the original repository used 'latest' instead of the version name, which was the crux of the issue.

After doing this, I installed the above plugins and verified it went successfully:



Just ran the update and its gone through no issues.

Again thanks for the help here guys. Brilliant stuff.