Cломались зависимости после поломки ФС (dpkg: error processing python-twisted-core)

Knoppix

Модераторы: Warderer, Модераторы разделов

Ответить
uscr
Сообщения: 152
ОС: Fedora

Cломались зависимости после поломки ФС

Сообщение uscr »

Здравствуйте. Есть Debian wheezy на Banana pi (arm): Linux bananapi 3.4.104-bananian #1 SMP PREEMPT Mon Apr 6 18:25:40 UTC 2015 armv7l GNU/Linux

Недавно обнаружил ругань в dmesg на ФС на карточке (SD карта, ext4). После прогона fsck apt-get стал ругаться на невозможность установить пакет из кеша (что то там про неожиданный конец файла). Почистил кеш вручную, ошибки прошли. После этого дёрнуло меня сделать dist-upgrade. Снова посыпалась ругань на зависимости. Частично разрулил, но вот упёрся сейчас в питон:

sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
17 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 python-twisted-core (12.0.0-1) ...
Illegal instruction
dpkg: error processing python-twisted-core (--configure):
subprocess installed post-installation script returned error exit status 132
dpkg: dependency problems prevent configuration of python-twisted-web:
python-twisted-web depends on python-twisted-core (>= 12.0); however:
Package python-twisted-core is not configured yet.

dpkg: error processing python-twisted-web (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of deluge-common:
deluge-common depends on python-twisted-web; however:
Package python-twisted-web is not configured yet.

dpkg: error processing deluge-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of deluge-console:
deluge-console depends on deluge-common (= 1.3.3-2+nmu1); however:
Package deluge-common is not configured yet.

dpkg: error processing deluge-console (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of deluge-web:
deluge-web depends on deluge-common (= 1.3.3-2+nmu1); however:
Package deluge-common is not configured yet.

dpkg: error processing deluge-web (--configure):
dependency problems - leaving unconfigured
Setting up python-cairo (1.8.8-1) ...
Illegal instruction
dpkg: error processing python-cairo (--configure):
subprocess installed post-installation script returned error exit status 132
Setting up python-crypto (2.6-4+deb7u3) ...
Illegal instruction
dpkg: error processing python-crypto (--configure):
subprocess installed post-installation script returned error exit status 132
dpkg: dependency problems prevent configuration of python-gtk2:
python-gtk2 depends on python-cairo (>= 1.0.2-1.1); however:
Package python-cairo is not configured yet.

dpkg: error processing python-gtk2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-notify:
python-notify depends on python-gtk2 (>= 2.10); however:
Package python-gtk2 is not configured yet.

dpkg: error processing python-notify (--configure):
dependency problems - leaving unconfigured
Setting up python-pyasn1 (0.1.3-1) ...
Illegal instruction
dpkg: error processing python-pyasn1 (--configure):
subprocess installed post-installation script returned error exit status 132
dpkg: dependency problems prevent configuration of python-twisted-lore:
python-twisted-lore depends on python-twisted-web (>= 12.0); however:
Package python-twisted-web is not configured yet.

dpkg: error processing python-twisted-lore (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-twisted-mail:
python-twisted-mail depends on python-twisted-core (>= 12.0); however:
Package python-twisted-core is not configured yet.

dpkg: error processing python-twisted-mail (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-twisted-names:
python-twisted-names depends on python-twisted-core (>= 12.0); however:
Package python-twisted-core is not configured yet.

dpkg: error processing python-twisted-names (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-twisted-news:
python-twisted-news depends on python-twisted-core (>= 12.0); however:
Package python-twisted-core is not configured yet.

dpkg: error processing python-twisted-news (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-twisted-runner:
python-twisted-runner depends on python-twisted-core (>= 12.0); however:
Package python-twisted-core is not configured yet.

dpkg: error processing python-twisted-runner (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-twisted-words:
python-twisted-words depends on python-twisted-core (>= 12.0); however:
Package python-twisted-core is not configured yet.

dpkg: error processing python-twisted-words (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-twisted-conch:
python-twisted-conch depends on python-crypto (>= 2.0.1+dfsg1-1.1); however:
Package python-crypto is not configured yet.
python-twisted-conch depends on python-pyasn1; however:
Package python-pyasn1 is not configured yet.
python-twisted-conch depends on python-twisted-core (>= 12.0); however:
Package python-twisted-core is not configured yet.

dpkg: error processing python-twisted-conch (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-twisted-core
python-twisted-web
deluge-common
deluge-console
deluge-web
python-cairo
python-crypto
python-gtk2
python-notify
python-pyasn1
python-twisted-lore
python-twisted-mail
python-twisted-names
python-twisted-news
python-twisted-runner
python-twisted-words
python-twisted-conch
E: Sub-process /usr/bin/dpkg returned an error code (1)


sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
17 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python-twisted-core (12.0.0-1) ...
Illegal instruction
dpkg: error processing python-twisted-core (--configure):
subprocess installed post-installation script returned error exit status 132
dpkg: dependency problems prevent configuration of python-twisted-web:
python-twisted-web depends on python-twisted-core (>= 12.0); however:
Package python-twisted-core is not configured yet.

dpkg: error processing python-twisted-web (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of deluge-common:
deluge-common depends on python-twisted-web; however:
Package python-twisted-web is not configured yet.

dpkg: error processing deluge-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of deluge-console:
deluge-console depends on deluge-common (= 1.3.3-2+nmu1); however:
Package deluge-common is not configured yet.

dpkg: error processing deluge-console (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of deluge-web:
deluge-web depends on deluge-common (= 1.3.3-2+nmu1); however:
Package deluge-common is not configured yet.

dpkg: error processing deluge-web (--configure):
dependency problems - leaving unconfigured
Setting up python-cairo (1.8.8-1) ...
Illegal instruction
dpkg: error processing python-cairo (--configure):
subprocess installed post-installation script returned error exit status 132
Setting up python-crypto (2.6-4+deb7u3) ...
Illegal instruction
dpkg: error processing python-crypto (--configure):
subprocess installed post-installation script returned error exit status 132
dpkg: dependency problems prevent configuration of python-gtk2:
python-gtk2 depends on python-cairo (>= 1.0.2-1.1); however:
Package python-cairo is not configured yet.

dpkg: error processing python-gtk2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-notify:
python-notify depends on python-gtk2 (>= 2.10); however:
Package python-gtk2 is not configured yet.

dpkg: error processing python-notify (--configure):
dependency problems - leaving unconfigured
Setting up python-pyasn1 (0.1.3-1) ...
Illegal instruction
dpkg: error processing python-pyasn1 (--configure):
subprocess installed post-installation script returned error exit status 132
dpkg: dependency problems prevent configuration of python-twisted-lore:
python-twisted-lore depends on python-twisted-web (>= 12.0); however:
Package python-twisted-web is not configured yet.

dpkg: error processing python-twisted-lore (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-twisted-mail:
python-twisted-mail depends on python-twisted-core (>= 12.0); however:
Package python-twisted-core is not configured yet.

dpkg: error processing python-twisted-mail (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-twisted-names:
python-twisted-names depends on python-twisted-core (>= 12.0); however:
Package python-twisted-core is not configured yet.

dpkg: error processing python-twisted-names (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-twisted-news:
python-twisted-news depends on python-twisted-core (>= 12.0); however:
Package python-twisted-core is not configured yet.

dpkg: error processing python-twisted-news (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-twisted-runner:
python-twisted-runner depends on python-twisted-core (>= 12.0); however:
Package python-twisted-core is not configured yet.

dpkg: error processing python-twisted-runner (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-twisted-words:
python-twisted-words depends on python-twisted-core (>= 12.0); however:
Package python-twisted-core is not configured yet.

dpkg: error processing python-twisted-words (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-twisted-conch:
python-twisted-conch depends on python-crypto (>= 2.0.1+dfsg1-1.1); however:
Package python-crypto is not configured yet.
python-twisted-conch depends on python-pyasn1; however:
Package python-pyasn1 is not configured yet.
python-twisted-conch depends on python-twisted-core (>= 12.0); however:
Package python-twisted-core is not configured yet.

dpkg: error processing python-twisted-conch (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-twisted-core
python-twisted-web
deluge-common
deluge-console
deluge-web
python-cairo
python-crypto
python-gtk2
python-notify
python-pyasn1
python-twisted-lore
python-twisted-mail
python-twisted-names
python-twisted-news
python-twisted-runner
python-twisted-words
python-twisted-conch
E: Sub-process /usr/bin/dpkg returned an error code (1)

Спасибо сказали:
Аватара пользователя
Bizdelnick
Модератор
Сообщения: 20753
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: Cломались зависимости после поломки ФС

Сообщение Bizdelnick »

Карточки — вообще штука не особо надёжная. Сталкивался с таким на малинке, оказалось проще перезалить образ с нуля.
Пишите правильно:
в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик
Спасибо сказали:
uscr
Сообщения: 152
ОС: Fedora

Re: Cломались зависимости после поломки ФС

Сообщение uscr »

При более внимательном изучении вывода в консоль пришёл к выводу, что сломался питон 2.7. Бинарник не запускался, отчего при установке питонячих пакетов не запускались установочные скрипты. Сначала попробовал заменить симлинки на питон 2.7 питоном 2.6. Но тогда полезли ошибки синтаксиса. Тогда я просто взял бинарник питона 2.7 с raspberry pi. После этого часть пакетов установилась. часть крашилась с ошибкой
"Sorry: TypeError: ('compile() expected string without null bytes',)"
Немного гугления дало понять, что проблему следует начать искать с /usr/lib/python* и искать там файлы с нулевым размером или битые симлинки. Настолько диких проблем я там не нашёл, однако скопировал каталог целиком с той же распберри. После этого apt-get смог сделать все свои дела и всё вроде бы заработало. ОС я перенёс на более надёжную карту ещё до начала приключений.

В целом, такой способ плох. И наверняка, я ещё огребу проблем в будущем. Но в качестве быстрого фикса, вполне ок.
Спасибо сказали:
Ответить