“Error found when loading /etc/profile”

Ubuntu mate 14.04 upgrade ubuntu mate 18.04

Terminal : im-config -n none

Are you trying to set up an input method?
You’re not giving enough info; what error are you getting?

The error
“Error found when loading / etc / profile” occurred to me shortly after I had updated ubuntu mate 14.04.5 to ubuntu 18.04.1 and found the solution in an ubuntu forum and I share it to help.