Ошибка при установке php-pear, ошибка dpkg возвратила код ошибки 1

Я пытался установить mongo php драйвер на ubuntu 14.04 на x64. Я использовал этот учебник, и когда я пытался установить pecl для установки драйвера php, я получил ошибку в конце установки.

sudo apt-get install php5-dev php5-cli php-pear
Reading package lists... Done
Building dependency tree       
Reading state information... Done
php-pear is already the newest version.
php5-cli is already the newest version.
php5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 85 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 2: unexpected EOF while looking for matching `"'
dpkg: error processing package install-info (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 install-info

Я попытался проверить конфигурацию dpkg, приведенную в следующем

xxx:~$ sudo dpkg --configure -a
Setting up install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 2: unexpected EOF while looking for matching `"'
dpkg: error processing package install-info (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 install-info

попытка удалить пакеты не работает даже через диспетчер синаптических пакетов

xxx:~$ sudo apt-get remove --purge php5-dev php5-cli php-pear
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  php5
The following packages will be REMOVED:
  php-pear* php5-cli* php5-dev* php5-readline* pkg-php-tools*
The following NEW packages will be installed:
  php5
0 upgraded, 1 newly installed, 5 to remove and 85 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,302 B of archives.
After this operation, 15.4 MB disk space will be freed.
Do you want to continue? [Y/n] y
Setting up install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 2: unexpected EOF while looking for matching `"'
dpkg: error processing package install-info (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 install-info

Содержание install-info

#!/bin/sh
#
# Wrapper to the GNU's install-info, to be compatible with the one that used to
# be packaged by dpkg on Debian.
#
# written by Norbert Preining, this is not copyrightable ;-)
#
set -e

if [ -z "$DPKG_RUNNING_VERSION" ] ; then
  # it seems we are running from outside a maintainer script, so give a
  # warning and call ginstall-info without anything else
  echo "This is not dpkg install-info anymore, but GNU install-info" >&2
  echo "See the man page for ginstall-info for command line arguments" >&2
  ginstall-info "$@"
else 
  # we are running from a maintainer script, simply ignore the call
  # since we have trigger support and people should rebuild their
  # package with new debhelper which does not add calls to install-info
  # Do not complain if called with "--remove" or "--remove-exactly",
  # as these are used in old packages' prerm scripts (see #546165)
  while [ -n "$1" ]; do
    case "$1" in
      --remove|--remove-exactly)
        exit 0
        ;;
      *)
        shift
        ;;
    esac
  done
  echo "Ignoring install-info called from maintainer script" >&2
  echo "The package $DPKG_MAINTSCRIPT_PACKAGE should be rebuilt with new debhelper to get trigger support" >&2
fi
1
задан 13 February 2015 в 14:51

0 ответов

Другие вопросы по тегам:

Похожие вопросы: