Error upgrade asterisk version by yum

I am using command ‘yum update asterisk18*’, and can`t download asterisk-core version.

Error message: [Errno -1] Package does not match intended download
Trying other mirror.

Error Downloading Packages:
asterisk18-core- failure: RPMS/digium/asterisk/1.8/ from pbx: [Errno 256] No more mirrors to try.

You need to provide more information. How was the system originally installed?

In other words did you install yourself or use a distribution? If so which one?

My system is freepbx distro version

Check out this link. It has the scripts to run that will correctly upgrade your system.