[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:20282] Re: Cannot upgrade cbb



西野です。
自己解決しましたので解決方法を書きます。
といってもアップグレード成功ではなく、完全削除に成功しただけですが。

From: Makoto Nishino <nishino@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: [debian-users:20246] Cannot upgrade cbb
Date: Thu, 20 Jan 2000 19:57:13 +0900
Message-ID: <20000120195500F.nishino@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>

> 
> (Reading database ... 48645 files and directories currently installed.)
> Preparing to replace cbb 0.81-0 (using .../archives/cbb_0.81-0_all.deb) ...
> Update-menus: waiting for dpkg to finish(forking to background)
> Update-menus: (checking /var/lib/dpkg/lock)
> rm: /usr/X11R6/lib/X11/cbb/docs/cbb-man: is a directory
          ↑
どうもこの行に出ているエラーが原因だったようです。
そこでrootになって

1. cd /var/lib/dpkg/info/

2. エディタでcbb.prermを編集。具体的には
    rm -f /usr/X11R6/lib/X11/cbb/docs/cbb-man
  と書かれている行を
    rm -f -r /usr/X11R6/lib/X11/cbb/docs/cbb-man
         ~~~~
と-rオプションを追加して修正します。

3.再度(cbb_0.81-0_all.debをインストール
    dpkg -i /var/cache/apt/archives/cbb_0.81-0_all.deb
すると以下のようなエラーが出ます。

(データベースを読み込んでいます... 現在 48658 個のファイルとディレクトリがインストールされています。)
cbb 0.81-0 を(cbb_0.81-0_all.deb で)置換するための準備をしています...
Update-menus: waiting for dpkg to finish(forking to background)
Update-menus: (checking /var/lib/dpkg/lock)
cbb を展開し、置換しています...
Update-menus: waiting for dpkg to finish(forking to background)
Update-menus: (checking /var/lib/dpkg/lock)
cbb (0.81-0)を設定しています ...
Update-menus: waiting for dpkg to finish(forking to background)
Update-menus: (checking /var/lib/dpkg/lock)
cannot open dhelp file '/usr/share/doc/cbb/html/.dhelp': at /usr/sbin/install-docs line 534.
dpkg: error processing cbb (--install):
 サブプロセス post-installation script はエラー終了ステータス 2 を返しました。
以下のパッケージの処理中にエラーが発生しました:
 cbb

前回までとは異なったエラー(エラー終了ステータス 2)がでます。
(注)エラーログが日本語化されてますが、これは、本日自己解決直前に
    dpkg-doc-jaをインストールしたからです。

4.cbbパッケージはどうやらdebian初回インストール時のpkgselで
  Work_sciを選んだ際にインストールされたパッケージのようで、
  私の研究室では誰も使ってないのでアップグレードするのはやめて
  削除することにしました。
  (ちょっと「逃げ」が入ってしまいました。)

  dpkg --purge cbb

(データベースを読み込んでいます... 現在 48658 個のファイルとディレクトリがインストールされています。)
cbb を削除しています...
Document `cbb' is not installed, cannot remove.
Update-menus: waiting for dpkg to finish(forking to background)
Update-menus: (checking /var/lib/dpkg/lock)
cbb の設定ファイルを削除しています ...
Update-menus: waiting for dpkg to finish(forking to background)
Update-menus: (checking /var/lib/dpkg/lock)

Document `cbb' is not installed, cannot remove.
というエラーが出てますが、
    dpkg --list | grep 'cbb'
とやったところなにも出てこなかったのでどうやら無事削除できた
ようです。
 

**************************************************************
   大阪市立大学大学院工学研究科 応用物理学専攻数理工学講座
       西野  誠
       mail: nishino@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    http://gutzwiller.a-phys.eng.osaka-cu.ac.jp/~nishino/
**************************************************************