web-dev-qa-db-ja.com

パッケージ操作に失敗しました-ヘルプ

プログラムを更新またはインストールしようとすると、「パッケージ操作に失敗しました」というメッセージが表示されます。

詳細セクションの内容は次のとおりです。

installArchives() failed: (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 242146 files and directories currently installed.)
Removing gparted ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Setting up couchdb-bin (1.0.1-0ubuntu17) ...
useradd: cannot lock /etc/passwd; try again later.
adduser: `/usr/sbin/useradd -d /var/lib/couchdb -g couchdb -s /bin/bash -u 116 couchdb' returned error code 1. Exiting.
dpkg: error processing couchdb-bin (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of desktopcouch:
 desktopcouch depends on couchdb-bin (>= 0.10.0-0ubuntu3); however:
  Package couchdb-bin is not configured yet.
dpkg: error processing desktopcouch (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of desktopcouch-ubuntuone:
 desktopcouch-ubuntuone depends on desktopcouch (= 1.0.8-0ubuntu1); however:
  Package desktopcouch is not configured yet.
dpkg: error processing desktopcouch-ubuntuone (--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:
 couchdb-bin
 desktopcouch
 desktopcouch-ubuntuone
Error in function: 
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)
Setting up couchdb-bin (1.0.1-0ubuntu17) ...
useradd: cannot lock /etc/passwd; try again later.
adduser: `/usr/sbin/useradd -d /var/lib/couchdb -g couchdb -s /bin/bash -u 116 couchdb' returned error code 1. Exiting.
dpkg: error processing couchdb-bin (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of desktopcouch:
 desktopcouch depends on couchdb-bin (>= 0.10.0-0ubuntu3); however:
  Package couchdb-bin is not configured yet.
dpkg: error processing desktopcouch (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of desktopcouch-ubuntuone:
 desktopcouch-ubuntuone depends on desktopcouch (= 1.0.8-0ubuntu1); however:
  Package desktopcouch is not configured yet.
dpkg: error processing desktopcouch-ubuntuone (--configure):
 dependency problems - leaving unconfigured

私もこれを試してみましたが、それでもエラーが発生しました:

joshua@Oneiric:~$ Sudo dpkg --configure -a
[Sudo] password for joshua: 
Setting up couchdb-bin (1.0.1-0ubuntu17) ...
useradd: cannot lock /etc/passwd; try again later.
adduser: `/usr/sbin/useradd -d /var/lib/couchdb -g couchdb -s /bin/bash -u 116 couchdb' returned error code 1. Exiting.
dpkg: error processing couchdb-bin (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of desktopcouch:
 desktopcouch depends on couchdb-bin (>= 0.10.0-0ubuntu3); however:
  Package couchdb-bin is not configured yet.
dpkg: error processing desktopcouch (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of desktopcouch-ubuntuone:
 desktopcouch-ubuntuone depends on desktopcouch (= 1.0.8-0ubuntu1); however:
  Package desktopcouch is not configured yet.
dpkg: error processing desktopcouch-ubuntuone (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 couchdb-bin
 desktopcouch
 desktopcouch-ubuntuone

何が悪いのか、そしてこれを修正する方法について何か考えはありますか?どうやらそれはcouchdb-bin、desktopcouch、desktopcouch-ubuntuoneと関係があるようです

1
Joshua

嘘をついているロックファイルはありますか?

探す /etc/passwd.lockおよび/etc/shadow.lock 特に。

それらがそこにある場合は、それらを削除します。おそらく、古いvisudoがクラッシュしたか何かです。

1
Caesium

あなたのマシン(またはパッケージに深刻な問題がありますが、パッケージに関する大量のレポートを見たことがないので、それはあなたのマシンだと思います)。

失敗しているのはadduserです。それはシステムの重要な部分です。読み取り専用の/etc/や、/proc/がないなど、深刻な問題が発生しているものを探します。

0
Chipaca