Unable to install the PHP initl extension

Solved
patrice86 Posted messages 1520 Status Membre -  
mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   -
Hello,

For the development of an application under Symfony 3.2.2, I need to install the PHP intl extension.
(I'm on Ubuntu 16.04)

When I execute this command: sudo apt-get install php-intl

I get the following error message:

Reading package lists... Done
Building dependency tree
Reading state information... Done
php-intl is already the newest version (1:7.0+35ubuntu6).
0 upgraded, 0 newly installed, 0 to remove and 317 not upgraded.
1 partially installed or removed.
Need to get 0 o/582 kB from archives.
After this operation, 0 o of additional disk space will be used.
Do you wish to continue? [Y/n] y
dpkg: error processing package dbconfig-common (--configure) :
the package is in a really inconsistent state; you should
reinstall it before attempting to configure it.
Errors were encountered while processing:
dbconfig-common
E: Sub-process /usr/bin/dpkg returned an error code (1)


It seems that dbconfig-common is used for the configuration of my MySQL database.

Should I reinstall the package itself or phpMyAdmin entirely?
If you have the right command lines it would be great :)

Thank you.

2 réponses

mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   7 937
 
Hello,

The fact that the package is in an inconsistent state suggests that your current installation is shaky. Start by updating and installing
aptitude
:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install aptitude
sudo aptitude update
sudo aptitude safe-upgrade


Make sure all packages are up to date, not frozen, and not blocked. Furthermore, when you run the
aptitude
command, you should not see a "red banner" at the bottom of the screen, and if you do
uUg
, there should be no frozen/held packages and everything should be up to date (
q
to quit).

Good luck!
1
patrice86 Posted messages 1520 Status Membre 125
 
Hello,

Before your reply, I had found a solution.
I had already read about the aptitude trick, but I still had an issue with dbconfig-common.

Thank you for taking the time to help me anyway :)
0
mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   7 937
 
No worries, thanks for your feedback :-) If the issue with dbconfig-common persists and you want to resolve it, feel free to open a new topic.

Best of luck!
0
patrice86 Posted messages 1520 Status Membre 125
 
After several different attempts, I found a solution:

 sudo apt-get install --reinstall dbconfig-common
sudo apt-get install php-intl
sudo apt-get install phpmyadmin


I had to uninstall phpmyadmin and then reinstall dbconfig-common afterwards.
0