- Печать
Страницы: [1] Вниз
Тема: Нарушены зависимости: невозможно удалять и устанавливать пакеты [РЕШЕНО] (Прочитано 5993 раз)
0 Пользователей и 1 Гость просматривают эту тему.

riderr3
в общем при обновлении возникла эта ошибка
Подготовка к замене пакета git 1:1.7.2.3-2.2~ppa1~lucid1 (используется файл .../git_1%3a1.7.4.1-3~ppa1~lucid3_i386.deb) ...
/var/lib/dpkg/tmp.ci/preinst: 12: dpkg-maintscript-helper: not found
dpkg: не удалось обработать параметр /var/cache/apt/archives/git_1%3a1.7.4.1-3~ppa1~lucid3_i386.deb (--unpack):
подпроцесс новый сценарий pre-installation возвратил код ошибки 127
/var/lib/dpkg/tmp.ci/postrm: 14: dpkg-maintscript-helper: not found
dpkg: ошибка при очистке -
подпроцесс новый сценарий post-removal возвратил код ошибки 127
При обработке следующих пакетов произошли ошибки:
/var/cache/apt/archives/git_1%3a1.7.4.1-3~ppa1~lucid3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
теперь невозможно удалять или устанавливать любые deb-пакеты, мол, нарушены зависимости. обновить или удалить этот глючный пакет не получается. пробовал удалить вручную, но опять появляется эта ошибка 
EDIT: сейчас вообще Synaptic и менеджер обновлений не запускаются 
E: Пакет git нуждается в переустановке, но найти архив для него не удалось.
E: Внутренняя ошибка при открытии кэша (1). Пожалуйста, сообщите об этом разработчикам.
При работе с пакетом возникла неразрешимая ошибка.
Пожалуйста, сообщите об этой ошибке пакета 'update-manager' и включите это сообщение:
'E:Пакет git нуждается в переустановке, но найти архив для него не удалось.'
как это всё исправить? 
« Последнее редактирование: 04 Июля 2011, 20:17:10 от riderr3 »
rapidsp
Для начала попробуй
apt-get -f install

НеФормат
Лучше переустанови Ubuntu

RustemNur
2 Патриот:
Вам официальное предупреждение (за глубину проникновения в проблему).

riderr3
Для начала попробуй
apt-get -f install
не помогло 
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
git
Предлагаемые пакеты:
git-doc git-el git-arch git-cvs git-svn git-email git-daemon-run git-gui
gitk gitweb
Пакеты, которые будут обновлены:
git
обновлено 1, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
не установлено до конца или удалено 2 пакетов.
Необходимо скачать 0B/4 555kB архивов.
После данной операции, объём занятого дискового пространства уменьшится на 442kB.
Хотите продолжить [Д/н]? д
(Чтение базы данных ... на данный момент установлено 323981 файлов и каталогов.)
Подготовка к замене пакета git 1:1.7.2.3-2.2~ppa1~lucid1 (используется файл .../git_1%3a1.7.4.1-3~ppa1~lucid3_i386.deb) ...
/var/lib/dpkg/tmp.ci/preinst: 12: dpkg-maintscript-helper: not found
dpkg: не удалось обработать параметр /var/cache/apt/archives/git_1%3a1.7.4.1-3~ppa1~lucid3_i386.deb (--unpack):
подпроцесс новый сценарий pre-installation возвратил код ошибки 127
/var/lib/dpkg/tmp.ci/postrm: 14: dpkg-maintscript-helper: not found
dpkg: ошибка при очистке -
подпроцесс новый сценарий post-removal возвратил код ошибки 127
При обработке следующих пакетов произошли ошибки:
/var/cache/apt/archives/git_1%3a1.7.4.1-3~ppa1~lucid3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
похоже серьёзная проблема. видимо какие то файлы нужно удалить вручную, но я ещё не понял какие.

ArcFi
Есть 2 варианта:
1) грохнуть руками запись о пакете в БД (после чего желательно сделать реинсталл пакета);
2) расковырять deb, разобраться в его скриптах, понять, на каком месте оно сыпется и исправить.

riderr3
так. удалил инфу о пакете в status, status-old,available и available-old. всё нормально, synaptic заработал. видимо пакет был из какого то другого репозитория, поэтому и начались проблемы с его обновлением.

Zeonn
Спасибо. Помогло.
Была аналогичная проблема.

wl
На свете феньки есть такие, брат Горацио, которых лохи просто не секут. (Шекспир, «Гамлет», вольный перевод)

НеФормат
2 Патриот:
Вам официальное предупреждение (за глубину проникновения в проблему).
Я тоже не знаю что сделать…
У самого почти такая же проблема..
- Печать
Страницы: [1] Вверх
Содержание
- script returned error exit status 127 или dpkg returned an error code (1)
- Добавление нового репозитория
- Thread: installation script returned error exit status 127
- installation script returned error exit status 127
- Re: installation script returned error exit status 127
- Re: installation script returned error exit status 127
- Re: installation script returned error exit status 127
- Linux Mint Forums
- SOLVED: update manager and software manager not working
- SOLVED: update manager and software manager not working
- Re: update manager and software manager not working
- Re: update manager and software manager not working
- Thread: post-removal script returned error exit status 127
- SOLVED metacity-common post-removal script returned error exit status 127
- Re: post-removal script returned error exit status 127
- Re: post-removal script returned error exit status 127
- Re: post-removal script returned error exit status 127
- Re: post-removal script returned error exit status 127
- Re: post-removal script returned error exit status 127
- 5.6.4-1 post-installation script error
- right Apr 16th 2021
script returned error exit status 127 или dpkg returned an error code (1)
Возился я как-то с установкой php5-rrd и так довозился, что после этого у меня не устанавливалась ни одна софтина, и даже при попытке исправить зависимости, я получил ошибку:
Оказывается, такие ошибки возникают у многих, и решаются они тоже весьма интересно (обратите внимание на файл, который я выделил в ошибке).
Так вот, открываем этот файл /var/lib/dpkg/info/php5-rrd.postrm и удаляем там все, а затем вписываем в него следующее:
сохраняем и закрываем файл, собственно это и есть решение проблемы 🙂 после чего в консоле например запускаем исправление зависимостей:
Вот и все, всем удачки!
Обычно ошибка выглядит так:
Удалите кеш пакетов:
Удалите осиротевшие пакеты:
Обновите список пакетов:
Обычно этого достаточно.
Если вы запутались с зависимостями, поможет интеллектуальное обновление системы:
Если установка была прервана, то следует переустановить пакет
Если репозиторий недоступен, исправить:
Если невозможно удалить/переустановить пакет, исправить:
Добавление нового репозитория
Пример добавления репозитория:
echo ‘deb http://cz.archive.ubuntu.com/ubuntu xenial main universe’ >> /etc/apt/sources.list.d/ubuntu-xenial-main-universe.list
apt-update
Если появится ошибка невалидности ключей:
Значит, нужно добавить указанные в сообщении ключи в доверенные:
Источник
Thread: installation script returned error exit status 127
Thread Tools
Display
installation script returned error exit status 127
E: linux-image-2.6.32-25-generic-pae: subprocess installed post-installation script returned error exit status 127
E: linux-image-generic-pae: dependency problems — leaving unconfigured
E: linux-generic-pae: dependency problems — leaving unconfigured
Every time I try to use Synaptic or do an update I am getting this message.
Any suggestions to fix this problem.
Thanks
![]()
Re: installation script returned error exit status 127
E: linux-image-2.6.32-25-generic-pae: subprocess installed post-installation script returned error exit status 127
E: linux-image-generic-pae: dependency problems — leaving unconfigured
E: linux-generic-pae: dependency problems — leaving unconfigured
Every time I try to use Synaptic or do an update I am getting this message.
Any suggestions to fix this problem.
Thanks
the -f will tell aptitude to try and fix and the -s says to simulate. It won’t do anything except tell you what would happen without the -s switch.
Re: installation script returned error exit status 127
As you can see from below, I am still getting the error message.
I have replaced the etc/apt/sources.list as per the link.
$ sudo apt-get install -f
[sudo] password for phil:
Reading package lists. Done
Building dependency tree
Reading state information. Done
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
3 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up linux-image-2.6.32-25-generic-pae (2.6.32-25.45) .
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-25-generic-pae
Running postinst hook script /usr/sbin/update-grub.
/etc/default/grub: 32: title: not found
User postinst hook script [/usr/sbin/update-grub] exited with value 127
dpkg: error processing linux-image-2.6.32-25-generic-pae (—configure):
subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of linux-image-generic-pae:
linux-image-generic-pae depends on linux-image-2.6.32-25-generic-pae; however:
Package linux-image-2.6.32-25-generic-pae is not configured yet.
dpkg: error processing linux-image-generic-pae (—configure):
dependency problems — leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-pae:
linux-generic-pae depends on linux-image-generic-pae (= 2.6.32.25.27); however:
Package linux-image-generic-pae is not configured yet.
dpkg: error processing linux-generic-pae (—configure):
dependency problems — leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
linux-image-2.6.32-25-generic-pae
linux-image-generic-pae
linux-generic-pae
E: Sub-process /usr/bin/dpkg returned an error code (1)
![]()
Re: installation script returned error exit status 127
You’ve got something wrong with grub! I’m only vaguely familiar with legacy grub; it never breaks. Do you know what version of grub you’ve got?
Источник
Linux Mint Forums
Welcome to the Linux Mint forums!
SOLVED: update manager and software manager not working
SOLVED: update manager and software manager not working
Post by kjvonly » Fri Sep 14, 2012 1:17 am
Last week I installed Linux Mint 13 Maya on my new HDD. My old windows 7 HDD died and since I was sick of Windows I decided to go to linux. Well, long story short yesterday and today software manager will not install software, and now update manager won’t even update. Here’s the error for update manager, as far as software manager is concerned you hit «install» and the install button disappears it appears to install, but low and behold, it doesn’t. what is going on? I’m hoping i didn’t make the wrong choice transitioning to linux
E: install-info: subprocess installed post-installation script returned error exit status 127
Setting up install-info (4.13a.dfsg.1-8ubuntu2) .
/var/lib/dpkg/info/install-info.postinst: 32: /var/lib/dpkg/info/install-info.postinst: update-info-dir: not found
dpkg: error processing install-info (—configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
install-info
W: Waited for dpkg —assert-multi-arch but it wasn’t there — dpkgGo (10: No child processes)
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up install-info (4.13a.dfsg.1-8ubuntu2) .
/var/lib/dpkg/info/install-info.postinst: 32: /var/lib/dpkg/info/install-info.postinst: update-info-dir: not found
dpkg: error processing install-info (—configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
install-info
Re: update manager and software manager not working
Post by caf4926 » Fri Sep 14, 2012 2:17 am
Re: update manager and software manager not working
Post by kjvonly » Fri Sep 14, 2012 8:07 pm
Sorry, I’m a total newbie. Last time i used linux was in high school. red hat back in the 90’s
When I type that in this is what I get:
$ sudo apt-get —fix-broken
[sudo] password for chris:
apt 0.8.16
exp12ubuntu10.2 for amd64 compiled on Jun 15 2012 15:08:48
Usage: apt-get [options] command
apt-get [options] install|remove pkg1 [pkg2 . ]
apt-get [options] source pkg1 [pkg2 . ]
apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.
Commands:
update — Retrieve new lists of packages
upgrade — Perform an upgrade
install — Install new packages (pkg is libc6 not libc6.deb)
remove — Remove packages
autoremove — Remove automatically all unused packages
purge — Remove packages and config files
source — Download source archives
build-dep — Configure build-dependencies for source packages
dist-upgrade — Distribution upgrade, see apt-get(8)
dselect-upgrade — Follow dselect selections
clean — Erase downloaded archive files
autoclean — Erase old downloaded archive files
check — Verify that there are no broken dependencies
changelog — Download and display the changelog for the given package
download — Download the binary package into the current directory
Options:
-h This help text.
-q Loggable output — no progress indicator
-qq No output except for errors
-d Download only — do NOT install or unpack archives
-s No-act. Perform ordering simulation
-y Assume Yes to all queries and do not prompt
-f Attempt to correct a system with broken dependencies in place
-m Attempt to continue if archives are unlocatable
-u Show a list of upgraded packages as well
-b Build the source package after fetching it
-V Show verbose version numbers
-c=? Read this configuration file
-o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
This APT has Super Cow Powers.
So I guess I need to know what else I need to type in for options and switches
Источник
Thread: post-removal script returned error exit status 127
Thread Tools
Display
![]()
SOLVED metacity-common post-removal script returned error exit status 127
Eish, it’s a hot day and nothing seems to be going right. Trying to figure a way out of this one — error 127. Looks like it could be Metacity problem? There a couple of pythons that also have a problem.
Not sure if I should remove entry for each single one in the database or not? This is the second time I’ve seen this happen, on a different machine, and one would think there is an automatic solution or utility to do this in Synaptic. Advice please.
Last edited by afrodeity; March 14th, 2010 at 03:40 PM .
![]()
Re: post-removal script returned error exit status 127
This could be the problem item?
![]()
Re: post-removal script returned error exit status 127
Last edited by afrodeity; March 10th, 2010 at 04:05 PM .
![]()
Re: post-removal script returned error exit status 127
Seems like the system is missing update-python-modules
![]()
Re: post-removal script returned error exit status 127
![]()
Re: post-removal script returned error exit status 127
I think this is my problem: update-gconf-defaults, should have spotted this right at the top, but stupidly went and googled the error code.
If I enter update-gconf-defaults in terminal I get this message:
There are a number of posts on error 127 which suggest recreating the file.
In this case, all I need to do is make a symbolic link between /usr/bin/pyhon2.6 and /usr/bin/python since the problem is with interpretation which python setup to use, I have both 2.5 AND 2.6 installed.
To make a symbolic link between /usr/bin/pyhon2.6 and /usr/bin/python
Last edited by afrodeity; March 14th, 2010 at 03:46 PM .
Источник
5.6.4-1 post-installation script error
Hey guys, I’m running in to an error when updating to 5.6.4-1, and I could use some guidance.
The update itself seems to have applied correctly, as the webgui reports that I’m on 5.6.4-1, but the post-install script is failing on the processing system modifications step.
I poked around a bit in the script and it looks like that step involves checking the versions of things and flagging possible issues? But I don’t know enough about omv under the hood to be sure.
Any help or just a point in the right direction would be appreciated!
Sorry, no solutions but lending credence to the issue. I’m on same boat.
![]()
Not the same boat, but you’re on the same lake 
right — not sure why you’re running apt-get install -f. Can you try again with omv-upgrade and see if the same error occurs again?
TXJD64 — try apt install openmediavault. If it fails, apt install openmediavault-sftp. If that succeeds, try the first apt command again. What happens?
![]()
TXJD64 — try apt install openmediavault. If it fails, apt install openmediavault-sftp. If that succeeds, try the first apt command again. What happens?
Thanks, I’ve already tried both. Removing openmediavault-sftp then leaves openmediavault to exit with a (1) just the same. Doing an install (reinstall) of openmediavault fails with the same error. It seems to be happening at the SALT command when it tries to configure *something* but I’m not able to ascertain what. I’m removed openmediavault-sftp to better isolate the problem. what log can I check to see what exactly is failing in the post installation configuration?
Re-running omv-upgrade gives:
Edited once, last by TXJD64 ( Apr 13th 2021 ).
![]()
Afraid that’s above my pay grade. You’re on the right track, but I wouldn’t know where to check for logs either. hope someone more knowledgeable can chime in soon.
![]()
right — not sure why you’re running apt-get install -f. Can you try again with omv-upgrade and see if the same error occurs again?
omv-upgrade looks like it’s just running apt-get update and then stopping without doing anything else, not even getting to the post-install script part.
Looking in /var/lib/dpkg/info/openmediavault.postinst as far as I can tell the «processing system modifications» step is checking what version you’re coming from, then running different commands depending on which version it was, but i can’t see how that would be erroring out, so i’m kinda at a loss.
![]()
So are you saying that omv-upgrade does not produce any error message at all?
It produces the exact same output as apt-get update and nothing more.
Those target source errors don’t seem relevant, but who knows
![]()
There seem to be a number of repositories that I’m not sure should even belong there. they concern me.
Ign:12 http://ftp.nl.debian.org/debian stretch InRelease
Ign:13 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 InRelease
Get:17 https://dl.ubnt.com/unifi/debian unifi-5.13 InRelease [3010 B]
E: Repository ‘https://dl.ubnt.com/unifi/debian unifi-5.13 InRelease’ changed its ‘Suite’ value from ‘testing’ to »
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Did you add these? Debian Stretch is version 9, and OMV 5 runs on Buster (version 10).
I can’t even begin to imagine what Ubuntu Xenial (that’s 16.04!) and Debian Unifi are doing in there.
I also have a unifi controller running on this machine, those were probably added by it. But I’m not sure how that is relevant to the post-install script erroring out.
![]()
Good point. But I’ve seen some strange things in the past. it honestly wouldn’t surprise me if this was part of the problem.
Sorry I can’t be of more help.
An update: after some further testing I got the script to complete successfully by commenting out these 2 sections in /var/lib/dpkg/info/openmediavault.postinst :
I then ran omv-salt deploy run —no-color —quiet apt cronapt separately, and after a reboot everything seems normal. I’m not 100% sure what omv_module_set_dirty nginx is or how to apply it, but things seem to be working ok so far.
Thanks. that’s worked for me as well, though I share your concern about that omv_module_set_dirty nginx line.
Thanks a lot for your investigation. About omv_module_set_dirty nginx line, you have more information on dirty modules from documentation.
openmediavault does not display the submodules that are affected by the configuration changes. If you still want to know which submodules are affected, simply run cat /var/lib/openmediavault/dirtymodules.json in the CLI.
You just need to add ‘nginx’ module in ‘/var/lib/openmediavault/dirtymodules.json’ file. That’s what does this line in the post script.
So I guess it’s not necessary to comment this section in /var/lib/dpkg/info/openmediavault.postinst.
You never need to add anything to the dirtymodules file. If you want nginx config updates, just run sudo omv-salt deploy run nginx
omv 6.0.46-2 Shaitan | 64 bit | 5.19 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.1.23 | mergerfs 6.3.3 | zfs 6.0.11
omv-extras.org plugins source code and issue tracker — github
Please try ctrl-shift-R and read this before posting a question.
Please don’t PM for support. Too many PMs!
right Apr 16th 2021
hi,
i have the same problem,
Paramétrage de openmediavault (5.6.5-1) .
Creating configuration database .
Migrating configuration database .
Setting up Salt environment .
Processing system modifications .
dpkg: erreur de traitement du paquet openmediavault (—configure) :
installed openmediavault package post-installation script subprocess returned error exit status 1
Des erreurs ont été rencontrées pendant l’exécution :
E: Sub-process /usr/bin/dpkg returned an error code (1)
when i run this command sudo omv-salt deploy run nginx
Comment: States ran successfully. Updating debian.
Duration: 2019.287 ms
Duration: 219.673 ms
Duration: 2.33 ms
Name: update-ca-certificates —fresh
Comment: Command «update-ca-certificates —fresh» run
Duration: 1418.091 ms
Clearing symlinks in /etc/ssl/certs.
Updating certificates in /etc/ssl/certs.
126 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d.
Duration: 2.885 ms
Summary for debian
Succeeded: 4 (changed=4)
Total states run: 4
Total run time: 1.643 s
Comment: File /etc/nginx/sites-available/openmediavault-webgui is in the correct state
Duration: 230.325 ms
Comment: File /etc/nginx/openmediavault-webgui.d/security.conf updated
Duration: 68.54 ms
add_header X-XSS-Protection «1; mode=block»;
+add_header Permissions-Policy «microphone=(), camera=(), geolocation=(), payment=()» always;
Name: nginx_ensite openmediavault-webgui
Comment: Command «nginx_ensite openmediavault-webgui» run
Duration: 44.713 ms
Site configuration file ‘openmediavault-webgui’ is already enabled.
Comment: Run failed on minions: debian
Duration: 358.911 ms
Data failed to compile:
Rendering SLS ‘base:omv.deploy.monit.default’ failed: Jinja error: tls: Invalid value ‘0’, allowed values are ‘none, ssl, starttls, auto’.
Traceback (most recent call last):
File «/usr/lib/python3/dist-packages/salt/utils/templates.py», line 497, in render_jinja_tmpl
File «/usr/lib/python3/dist-packages/jinja2/asyncsupport.py», line 76, in render
return original_render(self, *args, **kwargs)
File «/usr/lib/python3/dist-packages/jinja2/environment.py», line 1008, in render
return self.environment.handle_exception(exc_info, True)
File «/usr/lib/python3/dist-packages/jinja2/environment.py», line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File «/usr/lib/python3/dist-packages/jinja2/_compat.py», line 37, in reraise
File » «, line 37, in top-level template code
File «/usr/lib/python3/dist-packages/jinja2/sandbox.py», line 438, in call
return __context.call(__obj, *args, **kwargs)
File «/usr/lib/python3/dist-packages/salt/loader.py», line 1235, in __call__
return self.loader.run(run_func, *args, **kwargs)
File «/usr/lib/python3/dist-packages/salt/loader.py», line 2268, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File «/usr/lib/python3/dist-packages/salt/loader.py», line 2283, in _run_as
return _func_or_method(*args, **kwargs)
File «/var/cache/salt/minion/extmods/modules/omv_conf.py», line 39, in get
objs = db.get(id_, identifier)
File «/usr/lib/python3/dist-packages/openmediavault/config/database.py», line 85, in get
File «/usr/lib/python3/dist-packages/openmediavault/config/database.py», line 726, in execute
File «/usr/lib/python3/dist-packages/openmediavault/config/database.py», line 487, in _elements_to_object
File «/usr/lib/python3/dist-packages/openmediavault/config/object.py», line 236, in validate
File «/usr/lib/python3/dist-packages/openmediavault/config/datamodel.py», line 202, in validate
File «/usr/lib/python3/dist-packages/openmediavault/json/schema.py», line 175, in validate
self._validate_type(value, schema, name)
File «/usr/lib/python3/dist-packages/openmediavault/json/schema.py», line 229, in _validate_type
File «/usr/lib/python3/dist-packages/openmediavault/json/schema.py», line 200, in _validate_type
self._validate_object(value, schema, name)
File «/usr/lib/python3/dist-packages/openmediavault/json/schema.py», line 305, in _validate_object
self._check_properties(value, schema, name)
File «/usr/lib/python3/dist-packages/openmediavault/json/schema.py», line 519, in _check_properties
self._validate_type(value[propk], propv, path)
File «/usr/lib/python3/dist-packages/openmediavault/json/schema.py», line 229, in _validate_type
File «/usr/lib/python3/dist-packages/openmediavault/json/schema.py», line 209, in _validate_type
self._validate_string(value, schema, name)
File «/usr/lib/python3/dist-packages/openmediavault/json/schema.py», line 284, in _validate_string
self._check_enum(value, schema, name)
File «/usr/lib/python3/dist-packages/openmediavault/json/schema.py», line 475, in _check_enum
% (valuev, «, «.join(map(str, schema[‘enum’]))),
Источник
Тема: Не обновляется midori (Прочитано 4613 раз)
0 Пользователей и 1 Гость просматривают эту тему.
Установил на нетбук runtu, обновился apt-get upgrade… Обновилось все кроме midori.
Обновление валится с ошибкой 127.
Принудительно старая версия не удаляется.
Старая версия впринципе работает, но если присмотреться, то стартует с ошибками, если запускать мидори из терминала.
user@asus-netbook:~$ sudo apt-get upgrade
[sudo] password for user:
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Пакеты, которые будут обновлены:
midori
обновлено 1, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
не установлено до конца или удалено 2 пакетов.
Необходимо скачать 0B/1 135kB архивов.
После данной операции, объём занятого дискового пространства возрастёт на 86,0kB.
Хотите продолжить [Д/н]?
(Чтение базы данных ... на данный момент установлено 51868 файлов и каталогов.)
Подготовка к замене пакета midori 0.3.6-1~llwkt1 (используется файл .../midori_0.4.1-1~llwkt2_i386.deb) ...
/var/lib/dpkg/tmp.ci/preinst: 4: dpkg-maintscript-helper: not found
dpkg: не удалось обработать параметр /var/cache/apt/archives/midori_0.4.1-1~llwkt2_i386.deb (--unpack):
подпроцесс новый сценарий pre-installation возвратил код ошибки 127
/var/lib/dpkg/tmp.ci/postrm: 4: dpkg-maintscript-helper: not found
dpkg: ошибка при очистке -
подпроцесс новый сценарий post-removal возвратил код ошибки 127
При обработке следующих пакетов произошли ошибки:
/var/cache/apt/archives/midori_0.4.1-1~llwkt2_i386.deb
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
Total disk space freed by localepurge: 0 KiB
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@asus-netbook:~$
« Последнее редактирование: Октябрь 14, 2011, 13:27:03 от Mantrid »

Записан
Обновление валится с ошибкой 127.
Принудительно старая версия не удаляется.
Выполните следующее:
sudo dpkg -P midoriпосле чего отредактируйте с правами администратора файл /var/lib/dpkg/status (предварительно создав копию) — найдите абзац с информацией о midori и удалите его, а также все файлы midori.* из каталога /var/lib/dpkg/info/*.
Поcле этого выполните
sudo aptitude update
sudo aptitude full-upgrade
sudo aptitude install midori

Записан
Проблема решилась сама собой…
Наверно это было как-то связано с репозиториями.

Записан

- Forum
- The Ubuntu Forum Community
- Ubuntu Official Flavours Support
- General Help
- [ubuntu] post-removal script returned error exit status 127
-
SOLVED metacity-common post-removal script returned error exit status 127
Eish, it’s a hot day and nothing seems to be going right. Trying to figure a way out of this one — error 127. Looks like it could be Metacity problem? There a couple of pythons that also have a problem.
Code:
(Reading database ... 145089 files and directories currently installed.) Preparing to replace metacity-common 1:2.28.0-0ubuntu1 (using .../metacity-common_1%3a2.28.0-0ubuntu2_all.deb) ... Unpacking replacement metacity-common ... /var/lib/dpkg/info/metacity-common.postrm: 11: update-gconf-defaults: not found dpkg: warning: old post-removal script returned error exit status 127 dpkg - trying script from the new package instead ... /var/lib/dpkg/tmp.ci/postrm: 11: update-gconf-defaults: not found dpkg: error processing /var/cache/apt/archives/metacity-common_1%3a2.28.0-0ubuntu2_all.deb (--unpack): subprocess new post-removal script returned error exit status 127 /var/lib/dpkg/tmp.ci/postrm: 11: update-gconf-defaults: not found dpkg: error while cleaning up: subprocess new post-removal script returned error exit status 127 Preparing to replace python-libxml2 2.7.5.dfsg-1ubuntu1 (using .../python-libxml2_2.7.5.dfsg-1ubuntu1.1_i386.deb) ... /var/lib/dpkg/info/python-libxml2.prerm: 6: update-python-modules: not found dpkg: warning: old pre-removal script returned error exit status 127 dpkg - trying script from the new package instead ... /var/lib/dpkg/tmp.ci/prerm: 6: update-python-modules: not found dpkg: error processing /var/cache/apt/archives/python-libxml2_2.7.5.dfsg-1ubuntu1.1_i386.deb (--unpack): subprocess new pre-removal script returned error exit status 127 /var/lib/dpkg/info/python-libxml2.postinst: 6: update-python-modules: not found dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 127 Preparing to replace ubuntu-tweak 0.5.1-1~karmic1 (using .../ubuntu-tweak_0.5.2-1~karmic2_all.deb) ... /var/lib/dpkg/info/ubuntu-tweak.prerm: 6: update-python-modules: not found dpkg: warning: old pre-removal script returned error exit status 127 dpkg - trying script from the new package instead ... /var/lib/dpkg/tmp.ci/prerm: 6: update-python-modules: not found dpkg: error processing /var/cache/apt/archives/ubuntu-tweak_0.5.2-1~karmic2_all.deb (--unpack): subprocess new pre-removal script returned error exit status 127 /var/lib/dpkg/info/ubuntu-tweak.postinst: 6: update-python-modules: not found dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 127 Preparing to replace lernid 0.6~200~201003060503 (using .../lernid_0.6~203~201003090503_all.deb) ... Unpacking replacement lernid ... Processing triggers for man-db ... Processing triggers for desktop-file-utils ... Processing triggers for hicolor-icon-theme ... Errors were encountered while processing: /var/cache/apt/archives/metacity-common_1%3a2.28.0-0ubuntu2_all.deb /var/cache/apt/archives/python-libxml2_2.7.5.dfsg-1ubuntu1.1_i386.deb /var/cache/apt/archives/ubuntu-tweak_0.5.2-1~karmic2_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up python-yaml (3.09-1) ... /var/lib/dpkg/info/python-yaml.postinst: 10: pycentral: not found dpkg: error processing python-yaml (--configure): subprocess installed post-installation script returned error exit status 127 Setting up python-beagle (0.3.9-1) ... /var/lib/dpkg/info/python-beagle.postinst: 6: update-python-modules: not found dpkg: error processing python-beagle (--configure): subprocess installed post-installation script returned error exit status 127 Setting up python-gtkspell (2.25.3-3ubuntu1) ... /var/lib/dpkg/info/python-gtkspell.postinst: 6: update-python-modules: not found dpkg: error processing python-gtkspell (--configure): subprocess installed post-installation script returned error exit status 127 Setting up python-eggtrayicon (2.25.3-3ubuntu1) ... /var/lib/dpkg/info/python-eggtrayicon.postinst: 6: update-python-modules: not found dpkg: error processing python-eggtrayicon (--configure): subprocess installed post-installation script returned error exit status 127 dpkg: dependency problems prevent configuration of metacity: metacity depends on metacity-common (>= 1:2.28); however: Package metacity-common is not installed. metacity depends on metacity-common (<< 1:2.29); however: Package metacity-common is not installed. dpkg: error processing metacity (--configure): dependency problems - leaving unconfigured Setting up python-mediaprofiles (2.28.0-0ubuntu1) ... /var/lib/dpkg/info/python-mediaprofiles.postinst: 6: update-python-modules: not found dpkg: error processing python-mediaprofiles (--configure): subprocess installed post-installation script returned error exit status 127 Setting up sound-juicer (2.28.0-1) ... /var/lib/dpkg/info/sound-juicer.postinst: 11: gconf-schemas: not found dpkg: error processing sound-juicer (--configure): subprocess installed post-installation script returned error exit status 127 dpkg: error processing ubuntu-tweak (--configure): Package is in a very bad inconsistent state - you should reinstall it before attempting configuration. Setting up python-evince (2.28.0-0ubuntu1) ... /var/lib/dpkg/info/python-evince.postinst: 6: update-python-modules: not found dpkg: error processing python-evince (--configure): subprocess installed post-installation script returned error exit status 127 Setting up python-gtksourceview (2.28.0-0ubuntu1) ... /var/lib/dpkg/info/python-gtksourceview.postinst: 6: update-python-modules: not found dpkg: error processing python-gtksourceview (--configure): subprocess installed post-installation script returned error exit status 127 Setting up python-gdl (2.25.3-3ubuntu1) ... /var/lib/dpkg/info/python-gdl.postinst: 6: update-python-modules: not found dpkg: error processing python-gdl (--configure): subprocess installed post-installation script returned error exit status 127 Setting up python-gda (2.25.3-3ubuntu1) ... /var/lib/dpkg/info/python-gda.postinst: 6: update-python-modules: not found dpkg: error processing python-gda (--configure): subprocess installed post-installation script returned error exit status 127 Setting up python-totem-plparser (2.28.0-0ubuntu1) ... /var/lib/dpkg/info/python-totem-plparser.postinst: 6: update-python-modules: not found dpkg: error processing python-totem-plparser (--configure): subprocess installed post-installation script returned error exit status 127 dpkg: dependency problems prevent configuration of python-gnome2-desktop: python-gnome2-desktop depends on python-evince (>= 2.28.0-0ubuntu1); however: Package python-evince is not configured yet. python-gnome2-desktop depends on python-gtksourceview (>= 2.28.0-0ubuntu1); however: Package python-gtksourceview is not configured yet. python-gnome2-desktop depends on python-mediaprofiles (>= 2.28.0-0ubuntu1); however: Package python-mediaprofiles is not configured yet. python-gnome2-desktop depends on python-totem-plparser (>= 2.28.0-0ubuntu1); however: Package python-totem-plparser is not configured yet. dpkg: error processing python-gnome2-desktop (--configure): dependency problems - leaving unconfigured Setting up python-evolution (2.28.0-0ubuntu1) ... /var/lib/dpkg/info/python-evolution.postinst: 6: update-python-modules: not found dpkg: error processing python-evolution (--configure): subprocess installed post-installation script returned error exit status 127 Setting up python-gtop (2.28.0-0ubuntu1) ... /var/lib/dpkg/info/python-gtop.postinst: 6: update-python-modules: not found dpkg: error processing python-gtop (--configure): subprocess installed post-installation script returned error exit status 127 dpkg: dependency problems prevent configuration of libmetacity0: libmetacity0 depends on metacity-common (>= 1:2.28); however: Package metacity-common is not installed. libmetacity0 depends on metacity-common (<< 1:2.29); however: Package metacity-common is not installed. dpkg: error processing libmetacity0 (--configure): dependency problems - leaving unconfigured Setting up python-gnomeprint (2.28.0-0ubuntu1) ... /var/lib/dpkg/info/python-gnomeprint.postinst: 6: update-python-modules: not found dpkg: error processing python-gnomeprint (--configure): subprocess installed post-installation script returned error exit status 127 dpkg: dependency problems prevent configuration of deskbar-applet: deskbar-applet depends on python-gnome2-desktop; however: Package python-gnome2-desktop is not configured yet. dpkg: error processing deskbar-applet (--configure): dependency problems - leaving unconfigured Setting up python-gksu2 (2.25.3-3ubuntu1) ... /var/lib/dpkg/info/python-gksu2.postinst: 6: update-python-modules: not found dpkg: error processing python-gksu2 (--configure): subprocess installed post-installation script returned error exit status 127 Setting up python-xlib (0.14-2) ... Ignoring install-info called from maintainer script The package python-xlib should be rebuild with new debhelper to get trigger support /var/lib/dpkg/info/python-xlib.postinst: 11: update-python-modules: not found dpkg: error processing python-xlib (--configure): subprocess installed post-installation script returned error exit status 127 dpkg: dependency problems prevent configuration of rednotebook: rednotebook depends on python-yaml (>= 3.05); however: Package python-yaml is not configured yet. dpkg: error processing rednotebook (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python-metacity: python-metacity depends on libmetacity0 (>= 1:2.25.8); however: Package libmetacity0 is not configured yet. dpkg: error processing python-metacity (--configure): dependency problems - leaving unconfigured Setting up python-chardet (1.0.1-1.1) ... /var/lib/dpkg/info/python-chardet.postinst: 9: pycentral: not found dpkg: error processing python-chardet (--configure): subprocess installed post-installation script returned error exit status 127 dpkg: error processing python-libxml2 (--configure): Package is in a very bad inconsistent state - you should reinstall it before attempting configuration. Setting up python-nautilusburn (2.28.0-0ubuntu1) ... /var/lib/dpkg/info/python-nautilusburn.postinst: 6: update-python-modules: not found dpkg: error processing python-nautilusburn (--configure): subprocess installed post-installation script returned error exit status 127 Setting up python-bugbuddy (2.28.0-0ubuntu1) ... /var/lib/dpkg/info/python-bugbuddy.postinst: 6: update-python-modules: not found dpkg: error processing python-bugbuddy (--configure): subprocess installed post-installation script returned error exit status 127 Setting up lernid (0.6~203~201003090503) ... /var/lib/dpkg/info/lernid.postinst: 10: pycentral: not found dpkg: error processing lernid (--configure): subprocess installed post-installation script returned error exit status 127 Setting up network-manager-gnome (0.8-0ubuntu3~nmt2~karmic) ... /var/lib/dpkg/info/network-manager-gnome.postinst: 6: gconf-schemas: not found dpkg: error processing network-manager-gnome (--configure): subprocess installed post-installation script returned error exit status 127 dpkg: dependency problems prevent configuration of python-gnome2-extras: python-gnome2-extras depends on python-eggtrayicon (= 2.25.3-3ubuntu1); however: Package python-eggtrayicon is not configured yet. python-gnome2-extras depends on python-gtkspell (= 2.25.3-3ubuntu1); however: Package python-gtkspell is not configured yet. python-gnome2-extras depends on python-gksu2 (= 2.25.3-3ubuntu1); however: Package python-gksu2 is not configured yet. python-gnome2-extras depends on python-gdl (= 2.25.3-3ubuntu1); however: Package python-gdl is not configured yet. python-gnome2-extras depends on python-gda (= 2.25.3-3ubuntu1); however: Package python-gda is not configured yet. dpkg: error processing python-gnome2-extras (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of computertemp: computertemp depends on python-gnome2-extras; however: Package python-gnome2-extras is not configured yet. dpkg: error processing computertemp (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: python-yaml python-beagle python-gtkspell python-eggtrayicon metacity python-mediaprofiles sound-juicer ubuntu-tweak python-evince python-gtksourceview python-gdl python-gda python-totem-plparser python-gnome2-desktop python-evolution python-gtop libmetacity0 python-gnomeprint deskbar-applet python-gksu2 python-xlib rednotebook python-metacity python-chardet python-libxml2 python-nautilusburn python-bugbuddy lernid network-manager-gnome python-gnome2-extras computertemp Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done Current status: 16 updates [-1].
There is a tutorial about similar problem
http://www.khattam.info/2009/08/04/s…tatus-2-error/Not sure if I should remove entry for each single one in the database or not? This is the second time I’ve seen this happen, on a different machine, and one would think there is an automatic solution or utility to do this in Synaptic. Advice please.
Last edited by afrodeity; March 14th, 2010 at 03:40 PM.
-
Re: post-removal script returned error exit status 127
Code:
Package: python-support Status: install ok installed Priority: optional Section: python Installed-Size: 208 Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com> Architecture: all Version: 1.0.3ubuntu1 Depends: python (>= 2.5), dpkg (>= 1.14.19) Conflicts: debhelper (<< 5.0.38) Description: automated rebuilding support for Python modules This package contains the 'update-python-modules' script, which takes care of byte-compilation of Python-only modules. . Private modules are automatically rebuilt upon major Python upgrades, avoiding the need for strong dependencies. . Public modules are automatically made available for all installed Python versions. Original-Maintainer: Josselin Mouette <joss@debian.org>
This could be the problem item?
-
Re: post-removal script returned error exit status 127
metacity-common.postrm
Code:
#!/bin/sh set -e # Automatically added by dh_installcatalogs if [ "$1" = "purge" ]; then rm -f /etc/sgml/metacity-common.cat /etc/sgml/metacity-common.cat.old fi # End automatically added section # Automatically added by dh_gconf if which update-gconf-defaults >/dev/null 2>&1; then update-gconf-defaults fi # End automatically added section
python-libxml2.postinst
Code:
#!/bin/sh #set -e # Automatically added by dh_pysupport if which update-python-modules >/dev/null 2>&1; then update-python-modules python-libxml2.public fi # End automatically added section
Last edited by afrodeity; March 10th, 2010 at 04:05 PM.
-
Re: post-removal script returned error exit status 127
Seems like the system is missing update-python-modules
-
Re: post-removal script returned error exit status 127
Code:
sudo dpkg -i python-support_1.0.2ubuntu1_all.deb (Reading database ... 144720 files and directories currently installed.) Preparing to replace python-support 1.0.3ubuntu1 (using python-support_1.0.2ubuntu1_all.deb) ... /var/lib/dpkg/info/python-support.prerm: 9: update-python-modules: not found Unpacking replacement python-support ... Setting up python-support (1.0.2ubuntu1) ... /var/lib/dpkg/info/python-support.postinst: 20: update-python-modules: not found dpkg: error processing python-support (--install): subprocess installed post-installation script returned error exit status 127 Processing triggers for man-db ... Errors were encountered while processing: python-support
-
Re: post-removal script returned error exit status 127
I think this is my problem: update-gconf-defaults, should have spotted this right at the top, but stupidly went and googled the error code.
If I enter update-gconf-defaults in terminal I get this message:
Code:
bash: /usr/bin/update.gconf-defaults : /usr/bin/python: bad interpretter: no such file or directory
There are a number of posts on error 127 which suggest recreating the file.
In this case, all I need to do is make a symbolic link between /usr/bin/pyhon2.6 and /usr/bin/python since the problem is with interpretation which python setup to use, I have both 2.5 AND 2.6 installed!!!!
To make a symbolic link between /usr/bin/pyhon2.6 and /usr/bin/python
Code:
ln -s /usr/bin/python2.6 /usr/bin/python
solved!!!
Last edited by afrodeity; March 14th, 2010 at 03:46 PM.
