After actions in this question - tyts , the following problem arose:

When trying to install a package, they pop up the dependencies:

rostislav@Rostislav-PC:~$ sudo apt-get install 0ad Чтение списков пакетов… Готово Построение дерева зависимостей Чтение информации о состоянии… Готово Возможно, для исправления этих ошибок вы захотите воспользоваться «apt-get -f install»: Пакеты, имеющие неудовлетворённые зависимости: 0ad : ПредЗависит: dpkg (>= 1.15.6~) Зависит: 0ad-data (>= 0.0.17) но он не будет установлен Зависит: 0ad-data (<= 0.0.17-1) но он не будет установлен Зависит: 0ad-data-common (>= 0.0.17) но он не будет установлен Зависит: 0ad-data-common (<= 0.0.17-1) но он не будет установлен Зависит: libboost-filesystem1.55.0 но он не будет установлен Зависит: libcurl3-gnutls (>= 7.16.2) но он не будет установлен Зависит: libenet7 но он не будет установлен Зависит: libgcc1 (>= 1:4.1.1) но он не будет установлен Зависит: libgl1-mesa-glx но он не будет установлен или libgl1 Зависит: libgloox12 но он не будет установлен Зависит: libicu52 (>= 52~m1-1~) но он не будет установлен Зависит: libjpeg62-turbo (>= 1:1.3.1) но он не будет установлен Зависит: libminiupnpc10 (>= 1.9.20140610) но он не будет установлен Зависит: libmozjs-24-0 но он не будет установлен Зависит: libnvtt2 но он не будет установлен Зависит: libopenal1 (>= 1.14) но он не будет установлен Зависит: libpng12-0 (>= 1.2.13-4) но он не будет установлен Зависит: libsdl1.2debian (>= 1.2.11) но он не будет установлен Зависит: libstdc++6 (>= 4.9) но он не будет установлен Зависит: libvorbisfile3 (>= 1.1.2) но он не будет установлен Зависит: libwxbase3.0-0 (>= 3.0.2) но он не будет установлен Зависит: libwxgtk3.0-0 (>= 3.0.2) но он не будет установлен Зависит: libx11-6 но он не будет установлен Зависит: libxcursor1 (> 1.1.2) но он не будет установлен Зависит: libxml2 (>= 2.9.0) но он не будет установлен Зависит: zlib1g (>= 1:1.2.0) но он не будет установлен libc6 : Зависит: libgcc1 но он не будет установлен E: Неудовлетворённые зависимости. Попытайтесь выполнить «apt-get -f install», не указывая имени пакета, (или найдите другое решение). 

And when trying to eliminate dependencies, it climbs:

 rostislav@Rostislav-PC:~$ sudo apt-get -f install Чтение списков пакетов… Готово Построение дерева зависимостей Чтение информации о состоянии… Готово Исправление зависимостей… Готово The following additional packages will be installed: libgcc1 НОВЫЕ пакеты, которые будут установлены: libgcc1 обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. не установлено до конца или удалено 2 пакетов. Необходимо скачать 39,5 kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 132 kB. Хотите продолжить? [Д/н] y Get:1 http://mirror.yandex.ru/debian jessie/main amd64 libgcc1 amd64 1:4.9.2-10 [39,5 kB] Получено 39,5 kБ за 0с (202 kБ/c) E: Невозможно определить версию debconf. Он установлен? debconf: ошибка при работе apt-extracttemplates: Нет такого файла или каталога dpkg: ошибка: анализ файла «/var/lib/dpkg/status» около строки 73 пакета «multiarch-support»: присутствует несколько экземпляров пакетов, которые не могут быть установлены одновременно; вероятно это произошло из-за обновления с пом E: Sub-process /usr/bin/dpkg returned an error code (2) 

For treatment, such actions were taken (although something tells me that I did even worse ...):

 sudo rm /var/cache/apt/archives/* -vf sudo dpkg --clear-avail 

After that, the sudo dpkg --configure -a command issues this:

 rostislav@Rostislav-PC:~$ sudo dpkg --configure -a dpkg: ошибка: анализ файла «/var/lib/dpkg/status» около строки 73 пакета «multiarch-support»: присутствует несколько экземпляров пакетов, которые не могут быть установлены одновременно; вероятно это произошло из-за обновления с пом 

How can this be fixed and why did the problem arise (the first one)?


Contents of the status file:

 Package: multiarch-support Status: install ok unpacked Priority: required Section: libs Installed-Size: 193 Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org> Architecture: amd64 Multi-Arch: foreign Source: glibc Version: 2.19-18+deb8u4 Depends: libc6 (>= 2.3.6-2) Description: Transitional package to ensure multiarch compatibility This is a transitional package used to ensure multiarch support is present in ld.so before unpacking libraries to the multiarch directories. It can be removed once nothing on the system depends on it. Homepage: http://www.gnu.org/software/libc/libc.html Package: libc6 Status: install ok unpacked Priority: required Section: libs Installed-Size: 10231 Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org> Architecture: amd64 Multi-Arch: same Source: glibc Version: 2.19-18+deb8u4 Replaces: libc6-amd64 Depends: libgcc1 Suggests: glibc-doc, debconf | debconf-2.0, locales Breaks: hurd (<< 1:0.5.git20140203-1), libtirpc1 (<< 0.2.3), locales (<< 2.19), locales-all (<< 2.19), lsb-core (<= 3.2-27), nscd (<< 2.19) Conflicts: prelink (<= 0.0.20090311-1), tzdata (<< 2007k-1), tzdata-etch Conffiles: /etc/ld.so.conf.d/x86_64-linux-gnu.conf newconffile Description: GNU C Library: Shared libraries Contains the standard libraries that are used by nearly all programs on the system. This package includes shared versions of the standard C library and the standard math library, as well as many others. Homepage: http://www.gnu.org/software/libc/libc.html Package: gcc-4.9-base Status: install ok installed Priority: required Section: libs Installed-Size: 218 Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org> Architecture: amd64 Multi-Arch: same Source: gcc-4.9 Version: 4.9.2-10 Breaks: dehydra (<= 0.9.hg20110609-2), gcc-4.4-base (<< 4.4.7), gcc-4.7-base (<< 4.7.3), gcj-4.4-base (<< 4.4.6-9~), gcj-4.6-base (<< 4.6.1-4~), gnat-4.4-base (<< 4.4.6-3~), gnat-4.6 (<< 4.6.1-5~) Description: GCC, the GNU Compiler Collection (base package) This package contains files common to all languages and libraries contained in the GNU Compiler Collection (GCC). Homepage: http://gcc.gnu.org/ Package: multiarch-support Status: install ok unpacked Priority: required Section: libs Installed-Size: 193 Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org> Architecture: amd64 Multi-Arch: foreign Source: glibc Version: 2.19-18+deb8u4 Depends: libc6 (>= 2.3.6-2) Description: Transitional package to ensure multiarch compatibility This is a transitional package used to ensure multiarch support is present in ld.so before unpacking libraries to the multiarch directories. It can be removed once nothing on the system depends on it. Homepage: http://www.gnu.org/software/libc/libc.html //ВОТ ТУТ 74 СТРОКА! <------------------------------------------------------------------------------------------------------------- Package: libc6 Status: install ok unpacked Priority: required Section: libs Installed-Size: 10231 Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org> Architecture: amd64 Multi-Arch: same Source: glibc Version: 2.19-18+deb8u4 Replaces: libc6-amd64 Depends: libgcc1 Suggests: glibc-doc, debconf | debconf-2.0, locales Breaks: hurd (<< 1:0.5.git20140203-1), libtirpc1 (<< 0.2.3), locales (<< 2.19), locales-all (<< 2.19), lsb-core (<= 3.2-27), nscd (<< 2.19) Conflicts: prelink (<= 0.0.20090311-1), tzdata (<< 2007k-1), tzdata-etch Conffiles: /etc/ld.so.conf.d/x86_64-linux-gnu.conf newconffile Description: GNU C Library: Shared libraries Contains the standard libraries that are used by nearly all programs on the system. This package includes shared versions of the standard C library and the standard math library, as well as many others. Homepage: http://www.gnu.org/software/libc/libc.html Package: gcc-4.9-base Status: install ok installed Priority: required Section: libs Installed-Size: 218 Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org> Architecture: amd64 Multi-Arch: same Source: gcc-4.9 Version: 4.9.2-10 Breaks: dehydra (<= 0.9.hg20110609-2), gcc-4.4-base (<< 4.4.7), gcc-4.7-base (<< 4.7.3), gcj-4.4-base (<< 4.4.6-9~), gcj-4.6-base (<< 4.6.1-4~), gnat-4.4-base (<< 4.4.6-3~), gnat-4.6 (<< 4.6.1-5~) Description: GCC, the GNU Compiler Collection (base package) This package contains files common to all languages and libraries contained in the GNU Compiler Collection (GCC). Homepage: http://gcc.gnu.org/ 
  • E: Unable to determine the version of debconf. Is it installed? - restore /var/lib/dpkg/status from /var/lib/dpkg/status-old , apparently, failed? well, then install (actually reinstall) the debconf package, which dpkg reminds of. - aleksandr barakin
  • it probably happened because of the update with pom - string is truncated. What was written there in the original? // and, by the way, even for administrative tasks, include the display of messages in English: it is very difficult to even simply search for information on the Internet based on translations of the original English-language interfaces. - aleksandr barakin
  • analyzing the file “/ var / lib / dpkg / status” near line 73 - something in the syntax is wrong. or two descriptions of the same package is included (if you merged the contents of the status and status-old files). - aleksandr barakin
  • @alexanderbarakin, 1. Apparently not, but I tried :). 2. Ok, I'll go look for how to reinstall the package. 3. The string is not truncated; it is the same in the terminal. 4. Is it possible to somehow include a translation separately? Yes, although I don’t really need a user one, then I’ll turn on everything at once. 5. It may be included, I will now write the contents of the file here. - user189127
  • How to reinstall a package - from the point of view of dpkg in your case it will be the installation (after all, the package does not mention the package): sudo apt-get install имя-пакета . if apt-get fails, try downloading the package file: apt-get download имя-пакета and install this file using dpkg: sudo dpkg -i имя-файла.deb - aleksandr barakin

1 answer 1

from a long epic in chat:

  1. remove one of the two sections with the description of the multiarch-support package in the mentioned file /var/lib/dpkg/status (the sections are separated from each other by an empty line).
  2. then download and install the base packages:

     $ cd /tmp $ apt-get download debconf libgcc1 dpkg perl-base libbz2 multiarch-support libc6 $ sudo dpkg --install --force-all *.deb