S
S
Sland Show2018-10-08 12:37:21
linux
Sland Show, 2018-10-08 12:37:21

Why did a package dependency issue occur during system upgrade?

Updated the system, now I'm getting dependency issue (BrokenCount>0).
I do I sudo apt-get install -f
get:

Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Исправление зависимостей… Готово
Будут установлены следующие дополнительные пакеты:
  libsctp1
Предлагаемые пакеты:
  lksctp-tools
НОВЫЕ пакеты, которые будут установлены:
  libsctp1
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 337 пакетов не обновлено.
не установлено до конца или удалено 68 пакетов.
Необходимо скачать 0 B/8 088 B архивов.
После данной операции, объём занятого дискового пространства возрастёт на 32,8 kB.
Хотите продолжить? [Д/н] y
Настраивается пакет install-info (6.1.0.dfsg.1-5) …
/usr/sbin/update-info-dir: 3: /etc/environment: Syntax error: Unterminated quoted string
dpkg: ошибка при обработке пакета install-info (--configure):
 подпроцесс установлен сценарий post-installation возвратил код ошибки 2
При обработке следующих пакетов произошли ошибки:
 install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)

I /usr/sbin/update-info-dirhave this script:
#!/bin/sh
# update-info-dir
# create a dir file from all installed info files
# Copyright 2009, 2014 Norbert Preining
# GPLv2

INFODIR=/usr/share/info

set -e

#
# since user's environment is taken over into root account when sudo-ing
# we don't want that one's user LANGUAGE setting changes the messages in
# the dir file. Unset LANGUAGE and reload /etc/environment to get
# the system wide settings. See bug #536476
unset LANGUAGE
unset LANG
if [ -r /etc/environment ] ; then
  . /etc/environment
fi
if [ -r /etc/default/locale ] ; then
  . /etc/default/locale
fi

Help ()
{
    echo "\
SYNOPSIS: update-info-dir [-h,--help] [info-directory]

(re-)creates the index of available documentation in info format
(the file /usr/share/info/dir) which is usually presented by info browsers
on startup."

    exit 0
}


if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
    Help
fi

if [ -n "$1" ] ; then
  INFODIR="$1"
fi

if [ ! -d "$INFODIR" ] ; then
  echo "Not a directory: $INFODIR." >&2
  exit 1
fi

if [ -r "$INFODIR/dir" ] ; then
  rm -f "$INFODIR/dir.old"
  cp $INFODIR/dir $INFODIR/dir.old
fi

# we have to remove the dir file not make install-info being surprised
rm -f "$INFODIR/dir"

errors=0
find "$INFODIR" -type f | while read file ; do
  case $file in
    */dir|*/dir.gz|*/dir.old|*/dir.old.gz|*-[0-9]|*-[0-9].gz|*-[1-9][0-9]|*-[1-9][0-9].gz|*.png|*.jpg)
      # these files are ignored
      continue
      ;;
    *)
      install-info "$file" "$INFODIR/dir" || {
        errors=$((errors+1))
      }
      ;;
  esac
done

if [ $errors -gt 0 ] ; then
  exec >&2
  echo
  echo "Updating the index of info documentation produced $errors errors."
fi

exit 0

# vim:set expandtab tabstop=2: #

What's wrong here?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2018-10-08
@pfg21

the post-installation script returned error code 2,
take the install-info package, pick out the specified script from it and see what's stuck in the "pipes".
push handles, and reinstall the package.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question