Проблема с dpkg (dpkg was interrupted)

Knoppix

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

Tocaor
Сообщения: 124
ОС: Debian Lenny, Saueeze

Проблема с dpkg

Сообщение Tocaor »

При установке очередных обновлений произошёл сбой файловой системы. После работы fsck ошибки то вроде исправил, только оказалось что и старый пакет dpkg удалил не полностью, и новый по человечески не поставил. Теперь чтобы не пытался поставить или удалить в системе (не важно, через apt-get или synaptic) пишет следующее:

Код: Выделить всё

Е: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

Набираешь # dpkg --configure -a - выдаёт:

Код: Выделить всё

bash: dpkg: команда не найдена

Что делать? Первый раз с таким сталкиваюсь.
Спасибо сказали:
Tocaor
Сообщения: 124
ОС: Debian Lenny, Saueeze

Re: Проблема с dpkg

Сообщение Tocaor »

Ну что, неуже ли никто не знает как это лечится? Пробовал поставить dpkg ручками - выдаёт при сборке пакета следующее:

Код: Выделить всё

dselect.h:31:29: error: ncursesw/curses.h: Нет такого файла или каталога
In file included from basecmds.cc:33:
dselect.h:56: error: ISO C++ forbids declaration of ‘WINDOW’ with no type
dselect.h:56: error: expected ‘;’ before ‘*’ token
dselect.h:57: error: ISO C++ forbids declaration of ‘WINDOW’ with no type
dselect.h:57: error: expected ‘;’ before ‘*’ token
dselect.h:141: error: variable or field ‘mywerase’ declared void
dselect.h:141: error: ‘WINDOW’ was not declared in this scope
dselect.h:141: error: ‘win’ was not declared in this scope
basecmds.cc: In member function ‘void baselist::kd_redraw()’:
basecmds.cc:87: error: ‘curscr’ was not declared in this scope
basecmds.cc:87: error: ‘TRUE’ was not declared in this scope
basecmds.cc:87: error: ‘clearok’ was not declared in this scope
basecmds.cc: In member function ‘void baselist::kd_searchagain()’:
basecmds.cc:93: error: ‘beep’ was not declared in this scope
basecmds.cc: In member function ‘void baselist::kd_search()’:
basecmds.cc:120: error: ‘querywin’ was not declared in this scope
basecmds.cc:120: error: ‘werase’ was not declared in this scope
basecmds.cc:121: error: ‘mvwaddstr’ was not declared in this scope
basecmds.cc:122: error: ‘echo’ was not declared in this scope
basecmds.cc:123: error: ‘wgetnstr’ was not declared in this scope
basecmds.cc:123: error: ‘ERR’ was not declared in this scope
basecmds.cc:126: error: ‘noecho’ was not declared in this scope
basecmds.cc:127: error: ‘whatinfowin’ was not declared in this scope
basecmds.cc:127: error: ‘touchwin’ was not declared in this scope
basecmds.cc:128: error: ‘infopad’ was not declared in this scope
basecmds.cc:128: error: ‘touchwin’ was not declared in this scope
basecmds.cc:130: error: ‘listpad’ was not declared in this scope
basecmds.cc:130: error: ‘touchwin’ was not declared in this scope
basecmds.cc:133: error: ‘beep’ was not declared in this scope
basecmds.cc: In member function ‘void baselist::displayerror(const char*)’:
basecmds.cc:146: error: ‘beep’ was not declared in this scope
basecmds.cc:147: error: ‘querywin’ was not declared in this scope
basecmds.cc:147: error: ‘werase’ was not declared in this scope
basecmds.cc:148: error: ‘mvwaddstr’ was not declared in this scope
basecmds.cc:150: error: ‘wgetch’ was not declared in this scope
basecmds.cc:151: error: ‘whatinfowin’ was not declared in this scope
basecmds.cc:151: error: ‘touchwin’ was not declared in this scope
basecmds.cc:152: error: ‘infopad’ was not declared in this scope
basecmds.cc:152: error: ‘touchwin’ was not declared in this scope
basecmds.cc: In member function ‘void baselist::displayhelp(const helpmenuentry*, int)’:
basecmds.cc:161: error: ‘stdscr’ was not declared in this scope
basecmds.cc:161: error: ‘getmaxyx’ was not declared in this scope
basecmds.cc:162: error: ‘wbkgdset’ was not declared in this scope
basecmds.cc:163: error: ‘TRUE’ was not declared in this scope
basecmds.cc:163: error: ‘clearok’ was not declared in this scope
basecmds.cc:165: error: ‘werase’ was not declared in this scope
basecmds.cc:168: error: ‘attrset’ was not declared in this scope
basecmds.cc:169: error: ‘mvaddstr’ was not declared in this scope
basecmds.cc:172: error: ‘addstr’ was not declared in this scope
basecmds.cc:173: error: ‘getyx’ was not declared in this scope
basecmds.cc:174: error: ‘addch’ was not declared in this scope
basecmds.cc:179: error: ‘addch’ was not declared in this scope
basecmds.cc:180: error: ‘move’ was not declared in this scope
basecmds.cc:181: error: ‘A_NORMAL’ was not declared in this scope
basecmds.cc:184: error: ‘mvaddstr’ was not declared in this scope
basecmds.cc:186: error: ‘A_BOLD’ was not declared in this scope
basecmds.cc:186: error: ‘attrset’ was not declared in this scope
basecmds.cc:187: error: ‘mvaddch’ was not declared in this scope
basecmds.cc:188: error: ‘A_NORMAL’ was not declared in this scope
basecmds.cc:196: error: ‘refresh’ was not declared in this scope
basecmds.cc:197: error: ‘getch’ was not declared in this scope
basecmds.cc:207: error: ‘werase’ was not declared in this scope
basecmds.cc:209: error: ‘wnoutrefresh’ was not declared in this scope
basecmds.cc:216: error: ‘whatinfowin’ was not declared in this scope
basecmds.cc: In member function ‘void baselist::setcursor(int)’:
basecmds.cc:224: error: ‘listpad’ was not declared in this scope
basecmds.cc:230: error: ‘listpad’ was not declared in this scope
make[3]: *** [basecmds.o] Ошибка 1
make[3]: Leaving directory `/home/phantom/dpkg-1.14.27/dselect'
make[2]: *** [all-recursive] Ошибка 1
make[2]: Leaving directory `/home/phantom/dpkg-1.14.27/dselect'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/home/phantom/dpkg-1.14.27'
make: *** [all] Ошибка 2

Как с этим бороться?
Спасибо сказали:
sciko
Сообщения: 1744
Статус: Ъ-участник
ОС: Debian/Ubuntu/etc

Re: Проблема с dpkg

Сообщение sciko »

Скачать пакет dpkg.deb из репов, открыть его как архив, распаковать каталог data.tar.gz в корень.
Спасибо сказали:
Аватара пользователя
Bluetooth
Сообщения: 4395
Статус: Блюзовый
ОС: Debian Squeeze amd64

Re: Проблема с dpkg

Сообщение Bluetooth »

ls /usr/bin/dpkg что выдает?
А echo $PATH?
Спасибо сказали: