Здравствуйте. Расскажу сначала:
хотел поставить драйверы модема ltmodem-2.6.8-2-386.deb
(зря я это сделал т. к. ядро 2.8.18). Т. к. apt не нашел образ ядра 2.6.8 и пакет стал битым. Но он не удаляется:
ulian:~# apt-get remove ltmodem-2.6.8-2-386
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
ltmodem-2.6.8-2-386
0 upgraded, 0 newly installed, 1 to remove and 194 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 1348kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 168020 files and directories currently installed.)
Removing ltmodem-2.6.8-2-386 ...
find: warning: you have specified the -mindepth option after a non-option argument -name, but options are not positional (-mindepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
find: warning: you have specified the -maxdepth option after a non-option argument -name, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
Could not identify your distribution's way of automatically loading modules,
Exiting.
dpkg: error processing ltmodem-2.6.8-2-386 (--remove):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
ltmodem-2.6.8-2-386
E: Sub-process /usr/bin/dpkg returned an error code (1)
Кто-нибуть знает что надо сделать чтобы нормально удалить его. Еще проблема в том что я не могу устанавливать/удалять/обновлять другие пакеты!
Заранее благодарен за предложения решения этой проблемы.
Athlon64 3800+ X2 | 1GB | 400GB | Gentoo Linux | KDE 4.3.1 Eee PC 1005HA | Sabayon Linux 5.0 | KDE 4.3.1
asux
ошибка в скрипте postrm. надо исправить.
скрипт лежит в /var/lib/dpkg/info. и называется, скорее всего, ltmodem.postrm
т.к. ругается на неправильные аргументы команда find, найди в скрипте вызов find и подправь по смыслу.
если не справишься, выкладывай этот файл аттачем. поможем.
asux
ошибка в скрипте postrm. надо исправить.
скрипт лежит в /var/lib/dpkg/info. и называется, скорее всего, ltmodem.postrm
т.к. ругается на неправильные аргументы команда find, найди в скрипте вызов find и подправь по смыслу.
если не справишься, выкладывай этот файл аттачем. поможем.
Вот это реальное предложение решения проблемы.
Я попробовал поставить -mindepth -maxdepth перед -name.
Лог
ulian:~# dpkg -r ltmodem-2.6.8-2-386
(Reading database ... 168020 files and directories currently installed.)
Removing ltmodem-2.6.8-2-386 ...
Could not identify your distribution's way of automatically loading modules,
Exiting.
dpkg: error processing ltmodem-2.6.8-2-386 (--remove):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
ltmodem-2.6.8-2-386
Athlon64 3800+ X2 | 1GB | 400GB | Gentoo Linux | KDE 4.3.1 Eee PC 1005HA | Sabayon Linux 5.0 | KDE 4.3.1
БОЛЬШОЕ спасибо тебе sash-kan за помощь! Пакет попал в статус pinned, и теперь можна производить операции над пакетами. А самому редактировать не хотелось, вдруг сильно запорчу.
Athlon64 3800+ X2 | 1GB | 400GB | Gentoo Linux | KDE 4.3.1 Eee PC 1005HA | Sabayon Linux 5.0 | KDE 4.3.1