Php5-imagick - Error installing on debian 7

1

I did not find any reference to what could be the error it displays when I try to install a php (php5-imagick) module.

root@SMSA443:~# apt-get -f install php5-imagick php5-cgi

Returns the message:

root@SMSA443:~# apt-get install php5-imagick
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
Os seguintes pacotes foram instalados automaticamente e já não são necessários:
  libgd2-xpm liblua5.1-0 php5-cli
Use 'apt-get autoremove' para removê-los.
Os pacotes extra a seguir serão instalados:
  fontconfig-config fonts-dejavu-core fonts-droid ghostscript gsfonts
  imagemagick-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libcups2 libcupsfilters1 libcupsimage2 libdb5.3 libedit2
  libfontconfig1 libgd3 libgs9 libgs9-common libijs-0.35 libjasper1 libjbig0
  libjbig2dec0 libjson-c2 liblcms2-2 liblqr-1-0 liblua5.1-0 libmagickcore5
  libmagickwand5 libpaper-utils libpaper1 libtiff5 libvpx1 libxml2 lsof php5
  php5-cgi php5-cli php5-common php5-curl php5-gd php5-imap php5-json
  php5-mcrypt php5-ming php5-ps php5-pspell php5-recode php5-sqlite
  php5-sybase php5-tidy php5-xmlrpc php5-xsl poppler-data ttf-dejavu-core
Pacotes sugeridos:
  ghostscript-cups ghostscript-x hpijs cups-common libgd-tools
  libjasper-runtime liblcms2-utils libmagickcore5-extra php-pear
  php5-user-cache poppler-utils fonts-japanese-mincho fonts-ipafont-mincho
  fonts-japanese-gothic fonts-ipafont-gothic fonts-arphic-ukai
  fonts-arphic-uming fonts-unfonts-core
Pacotes recomendados:
  php5-readline
Os pacotes a seguir serão REMOVIDOS:
  libapache2-mod-php5
Os NOVOS pacotes a seguir serão instalados:
  fonts-dejavu-core fonts-droid ghostscript gsfonts imagemagick-common
  libcupsfilters1 libcupsimage2 libdb5.3 libgd3 libgs9 libgs9-common
  libijs-0.35 libjasper1 libjbig0 libjbig2dec0 libjson-c2 liblcms2-2
  liblqr-1-0 liblua5.1-0 libmagickcore5 libmagickwand5 libpaper-utils
  libpaper1 libtiff5 libvpx1 lsof php5-cgi php5-imagick php5-json poppler-data
Os pacotes a seguir serão atualizados:
  fontconfig-config libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libcups2 libedit2 libfontconfig1 libxml2 php5 php5-cli
  php5-common php5-curl php5-gd php5-imap php5-mcrypt php5-ming php5-ps
  php5-pspell php5-recode php5-sqlite php5-sybase php5-tidy php5-xmlrpc
  php5-xsl ttf-dejavu-core
26 pacotes atualizados, 30 pacotes novos instalados, 1 a serem removidos e 284 não atualizados.
É preciso baixar 0 B/26,6 MB de arquivos.
Depois desta operação, 63,1 MB adicionais de espaço em disco serão usados.
Você quer continuar [S/n]? S
E: Não foi possível proceder à configuração imediata em 'php5-cgi'. Para detalhes, por favor veja man 5 apt.conf em APT::Immediate-Configure. (2)
root@SMSA443:~#

As additional information, some procedures and information that I have already collected with the help of employees.

root@XXXXXX:~# ls -la /
drwxrwxrwt 7 root root 4096 Fev 12 09:09 /tmp/ 

root@XXXXXX:~# mount | grep tmp 
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) 
udev on /dev type tmpfs (rw,mode=0755) 
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)

root@XXXXXX:~# aptitude search libc | grep ^i 
i libc6 - Embedded GNU C 

root@XXXXX:~# aptitude search php | grep php5-cgi 
pB php5-cgi - server-side, HTML-embedded scripting lang

root@XXXXXX:~# apt-get install libc6 
Lendo listas de pacotes... 
Pronto Construindo árvore de dependências 
Lendo informação de estado... 
Pronto libc6 já é a versão mais nova. 
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 311 não atualizados. 

I have already deleted the installation files from dpkg and when I run it returns the same error.

Has anyone ever gone through something like this and can you help me?

    
asked by anonymous 11.02.2014 / 13:43

2 answers

1

Update 12/02/2014

Try downloading the package directly, in this case here:

p>

And install it directly

sudo dpkg -i php5-cgi_5.4.4-14+deb7u7_i386.deb

(Remember that this is for 32bits, if your architecture is 64bits, add a comment here.)

After that, you can try:

sudo apt-get -f install

Old

Sometimes this error occurs because the package needs a% update% more to be installed. However, this version of libc has not yet been installed. If this is the problem, you can try:

apt-get update & apt-get install libc6

If this works, try the following command, but do not continue if it wants to remove something (mainly libc6). You can post in the comments if it tries to remove something.

apt-get install libc6-i686

If all else works, run an apt-get update before attempting to run your commands again:

apt-get update

One important thing to add in your question is if this only happens when you try to install php5-cgi or does it happen with any other system package?

Reply based on this article (in English)

    
11.02.2014 / 14:35
1

Thanks to all who will contribute.

The problem was that I needed to uninstall php5-cgi, then install "Image Magick" and its module to php, but for this it asks to uninstall some module, among them libapache2-mod-php5 that can do your pages will stop working, but just reinstall them.

I still have some errors due to this installation, which by the way I do not recommend. No more, that's it!

Thanks again.

    
20.02.2014 / 14:33