Ubuntu: Error Message while installing php5-intl



Question:

When I try to install php5-intl, I got this error message. What does mean of this message? Anybody can help me to explain this message? Should I remove php5-common first? or anything else?

root@dremi-ubuntu-X450JF:/var/www/html/cakephp3# sudo apt-get install php5-intl  Reading package lists... Done  Building dependency tree         Reading state information... Done  Some packages could not be installed. This may mean that you have  requested an impossible situation or if you are using the unstable  distribution that some required packages have not yet been created  or been moved out of Incoming.  The following information may help to resolve the situation:    The following packages have unmet dependencies:   php5-intl : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4) but 5.5.9+dfsg-1ubuntu4.4 is to be installed  E: Unable to correct problems, you have held broken packages.  root@dremi-ubuntu-X450JF:/var/www/html/cakephp3#   

Here is the output of apt-cache policy php5-intl php5-common

    root@dremi-ubuntu-X450JF:/var/www/html/cakephp3# apt-cache policy php5-intl php5-common  php5-intl:    Installed: (none)    Candidate: 5.5.9+dfsg-1ubuntu4    Version table:       5.5.9+dfsg-1ubuntu4 0          500 http://id.archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages  php5-common:    Installed: 5.5.9+dfsg-1ubuntu4.4    Candidate: 5.5.9+dfsg-1ubuntu4.4    Version table:   *** 5.5.9+dfsg-1ubuntu4.4 0          100 /var/lib/dpkg/status       5.5.9+dfsg-1ubuntu4 0          500 http://id.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages  You have new mail in /var/mail/root  root@dremi-ubuntu-X450JF:/var/www/html/cakephp3#   


Solution:1

There is something wrong in your APT sources.

You can see that because of the version of your php5-common packages which is 5.5.9+dfsg-1ubuntu4.4 whereas you php5-intl package version is only 5.5.9+dfsg-1ubuntu4.

Also, your current php5-common package version comes from /var/lib/dpkg/status indicating it can not be associated to any currently known APT source.

Therefore, it could mean that you used an APT source to install php5-common and removed it after then, or that your package lists are not up to date.

I recommend:

  • checking your /etc/apt/sources.list
  • running apt-get update (it should be done before installing any package)


Solution:2

According to the error message, it may be because you choose to hold some packages, forbidding them to get upgrades.

You can check for hold packages with these commands:

  • If you are using aptitude: aptitude search "~ahold"
  • If you are using apt-get: dpkg --get-selections | grep 'hold$'

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »