お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2008-05-06 20:44:52

funa29jp
新しいメンバ
登録日: 2008-05-06

8.04のServerでdovecotがRemoveも再インストール不能に

7.10から8.04にバージョンアップしたらcourier-imapが削除されたようで
再インストールしようとしたらcourier-imapない
dovecotが推奨のようなので入れてみたのですが、設定がなかなか出来なくて
一度削除しようと思って削除したらエラーになった
今現在は、再インストールも削除も出来ない状況

#/ver/lib/dpkg/info/ の中の
dovecot-pop3d
dovecot-imapd
dovecot-common
を消して、下記をやると削除されたように見えるのですが。。。
aptitude purge dovecot-pop3d
aptitude purge dovecot-imapd
aptitude purge dovecot-common

aptitude を使ってアップデートを試みたが、dovecot-commonで赤い表示で
不可のよう

オフライン

 

#2 2008-05-07 19:02:29

hito
管理者
登録日: 2007-03-18

Re: 8.04のServerでdovecotがRemoveも再インストール不能に

「エラーになった」ではなく、エラーメッセージを貼り付けて頂かないと
誰も手が出せないと思います……

オフライン

 

#3 2008-05-07 22:04:25

funa29jp
新しいメンバ
登録日: 2008-05-06

Re: 8.04のServerでdovecotがRemoveも再インストール不能に

失礼しました
インストールしようとするとこんな感じです
# apt-get install dovecot-common dovecot-imapd dovecot-pop3d
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  dovecot-common dovecot-imapd dovecot-pop3d
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/2922kB of archives.
After this operation, 5853kB of additional disk space will be used.
Selecting previously deselected package dovecot-common.
(Reading database ... 38056 files and directories currently installed.)
Unpacking dovecot-common (from .../dovecot-common_1%3a1.0.10-1ubuntu5_i386.deb) ...
Selecting previously deselected package dovecot-imapd.
Unpacking dovecot-imapd (from .../dovecot-imapd_1%3a1.0.10-1ubuntu5_i386.deb) ...
Selecting previously deselected package dovecot-pop3d.
Unpacking dovecot-pop3d (from .../dovecot-pop3d_1%3a1.0.10-1ubuntu5_i386.deb) ...
Setting up dovecot-common (1:1.0.10-1ubuntu5) ...
Not replacing deleted config file /etc/dovecot/dovecot.conf
Not replacing deleted config file /etc/dovecot/dovecot-ldap.conf
Not replacing deleted config file /etc/dovecot/dovecot-sql.conf
grep: /etc/dovecot/dovecot.conf: No such file or directory
grep: /etc/dovecot/dovecot.conf: No such file or directory
You already have ssl certs for dovecot.
invoke-rc.d: initscript dovecot, action "start" failed.
dpkg: error processing dovecot-common (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of dovecot-imapd:
dovecot-imapd depends on dovecot-common (= 1:1.0.10-1ubuntu5); however:
  Package dovecot-common is not configured yet.
dpkg: error processing dovecot-imapd (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of dovecot-pop3d:
dovecot-pop3d depends on dovecot-common (= 1:1.0.10-1ubuntu5); however:
  Package dovecot-common is not configured yet.
dpkg: error processing dovecot-pop3d (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
dovecot-common
dovecot-imapd
dovecot-pop3d
E: Sub-process /usr/bin/dpkg returned an error code (1)

お解りの方いらっしゃいましたらよろしくお願いいたします

オフライン

 

#4 2008-05-07 23:09:33

hito
管理者
登録日: 2007-03-18

Re: 8.04のServerでdovecotがRemoveも再インストール不能に

既存の設定ファイル(しかも壊れている)が悪さをしているようです。

sudo apt-get purge dovecot-common dovecot-imapd dovecot-pop3d

で直らないでしょうか?

オフライン

 

#5 2008-05-08 06:51:47

funa29jp
新しいメンバ
登録日: 2008-05-06

Re: 8.04のServerでdovecotがRemoveも再インストール不能に

ありがとうございます
実行してみました 結果を貼り付けますのでアドバイスのほどよろしくお願い致します。

#apt-get purge dovecot-common dovecot-imapd dovecot-pop3d
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  dovecot-common* dovecot-imapd* dovecot-pop3d*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 5853kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 38297 files and directories currently installed.)
Removing dovecot-pop3d ...
Can't open /etc/dovecot/dovecot.conf: No such file or directory.
invoke-rc.d: initscript dovecot, action "start" failed.
dpkg: error processing dovecot-pop3d (--purge):
subprocess post-removal script returned error exit status 1
Removing dovecot-imapd ...
Can't open /etc/dovecot/dovecot.conf: No such file or directory.
invoke-rc.d: initscript dovecot, action "start" failed.
dpkg: error processing dovecot-imapd (--purge):
subprocess post-removal script returned error exit status 1
Removing dovecot-common ...
invoke-rc.d: initscript dovecot, action "stop" failed.
dpkg: error processing dovecot-common (--purge):
subprocess pre-removal script returned error exit status 1
invoke-rc.d: initscript dovecot, action "start" failed.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
dovecot-pop3d
dovecot-imapd
dovecot-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

オフライン

 

#6 2008-05-08 11:16:20

hito
管理者
登録日: 2007-03-18

Re: 8.04のServerでdovecotがRemoveも再インストール不能に

sudo mv /etc/init.d/dovecot /etc/init.d/dovecot.bak

してからもう一度purgeしてみてください。
うまくいったら sudo rm /etc/init.d/dovecotで残骸も消せます。

オフライン

 

#7 2008-05-08 12:23:01

s_k
メンバ
登録日: 2008-04-18

Re: 8.04のServerでdovecotがRemoveも再インストール不能に

気になったのですが、

>#/ver/lib/dpkg/info/ の中の
>dovecot-pop3d
>dovecot-imapd
>dovecot-common
>を消して、下記をやると削除されたように見えるのですが。。。
を実施しているので、dpkgを壊してしまっているのではないでしょうか?
dpkg -l | grep dovecot
を実行してパッケージが表示されますか?

>再インストールしようとしたらcourier-imapない
aptitude search courier-imap
を実行すると、私の環境(8.04のServer版)では、パッケージが表示されました。

オフライン

 

#8 2008-05-08 13:28:08

funa29jp
新しいメンバ
登録日: 2008-05-06

Re: 8.04のServerでdovecotがRemoveも再インストール不能に

hito  様

いろいろありがとうございます
やってみましたがダメのようです
# mv /etc/init.d/dovecot /etc/init.d/dovecot.bak
# apt-get purge dovecot-common dovecot-imapd dovecot-pop3d
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  dovecot-common* dovecot-imapd dovecot-pop3d
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 5853kB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: error processing dovecot-pop3d (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
dpkg: error processing dovecot-imapd (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
dovecot-pop3d
dovecot-imapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
-------------------ここまで-------------------------------------------

s_k 様
ありがとうございます
やってみました
# dpkg -l | grep dovecot
pF  dovecot-common                            1:1.0.10-1ubuntu5           secure mail server that supports mbox and ma
rHR dovecot-imapd                             1:1.0.10-1ubuntu5           secure IMAP server that supports mbox and ma
rHR dovecot-pop3d                             1:1.0.10-1ubuntu5           secure POP3 server that supports mbox and ma
こんな感じですが。。。
courier-imapは ありましたか 私の環境で実行すると
#aptitude search courier-imap なにも表示されません

sources.list の中身が悪いのでしょうか こんな感じです
有効行だけ貼りつけ致します
deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy main
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse

よろしくお願い致します

オフライン

 

#9 2008-05-08 17:58:52

s_k
メンバ
登録日: 2008-04-18

Re: 8.04のServerでdovecotがRemoveも再インストール不能に

># dpkg -l | grep dovecot
>pF  dovecot-common                            1:1.0.10-1ubuntu5           >secure mail server that supports mbox and ma
>rHR dovecot-imapd                             1:1.0.10-1ubuntu5           >secure IMAP server that supports mbox and ma
>rHR dovecot-imapd                            1:1.0.10-1ubuntu5           >secure POP3 server that supports mbox and ma
→dovecot-imapd、dovecot-imapdがremove状態になっているの置き換えで失敗していると考えられます。(多分、内部ではinstallコマンドの実行だと思います)

debパッケージを直接ダウンロードしてきて
dpkg -i --force パッケージ名
を実行して強制インストールしてみてはいかがでしょうか。
その後は、apt-getでパージできると思います。

もしくは、エラーメッセージに表示される設定ファイルをすべて
touch <設定ファイル名>
chmod 666 <設定ファイル名>
などダミーファイルとして作成してはいかがでしょうか。
これならapt-getでインストール→パージできると思います。

私の環境では「source.list」は、以下のようになります。
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb http://archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy universe
deb http://archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates universe
deb http://archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse

オフライン

 

#10 2008-05-08 22:07:14

funa29jp
新しいメンバ
登録日: 2008-05-06

Re: 8.04のServerでdovecotがRemoveも再インストール不能に

s_k 様

ありがとうございました

おっしゃるとおり、インストールが完了していない状態で止まっていたようです
apt-get -f install dovecot-common で無理やりインストールの実行をしたら進みました
それで、再度
aptitude purge dovecot-pop3d dovecot-imapd dovecot-common
apt-get install dovecot-pop3d dovecot-imapd dovecot-common
でインストールが出来たようです。
POP3のログインはまだ出来ない状況ですが、インストールが正常に出来るようになりました。
また、source.list の内容も書いていただいたアドレスに変更したらcourier-imapもインストール
出来ました。
いろいろありがとうございました。
今後ともよろしくお願いいたします。

オフライン

 

Board footer

Powered by FluxBB