
Ubuntu日本語フォーラム

ログインしていません。
こんにちは、前回「Klamav」の件でお世話になりましたcanonです。皆さん、よろしくお願いします。
最近emacsやTexの勉強がしたくて「emacs」関連パッケージや「tex」関連のパッケージをインストールし、いろいろと設定等々を行っています。実は今日「emacs-extra」というパッケージをインストールしたのですが、インストール途中にエラーがでました。しかしそのエラーでインストールが中断したりすることはなく、インストールは普通に完了してしまいました。これは「Synaptic」でインストールしていたときに「詳細」画面に出力されていることで確認ができました。
一旦「apt-get remove --purge emacs-extra」で完全削除し「apt-get -f install」「apt-get autoremove」(何も検出されず)を行った後「apt-get clean」でキャッシュを削除したのち、端末上から「apt-get install emacs-extra」と実行しましたが、同じような結果が出ます。
それは「Synaptic」や「端末」からインストールした際に、設定画面(「端末」で実行した時は端末内に、「Synaptic」の時は「emacs-extraのdebconf」という設定ウィンドウ)が出て、チェック画面で「〜Disable」以外のところにチェックして設定を完了させた直後に出ました。
以下端末内で実行したときのログです。
canon@canon-desktop:~$ sudo apt-get install emacs-extra パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 以下のパッケージが新たにインストールされます: emacs-extra アップグレード: 0 個、新規インストール: 1 個、削除: 0 個、保留: 0 個。 72.9kB のアーカイブを取得する必要があります。 この操作後に追加で 569kB のディスク容量が消費されます。 取得:1 http://jp.archive.ubuntu.com intrepid/universe emacs-extra 0.1-1ubuntu1 [72.9kB] 72.9kB を 0s で取得しました (136kB/s) パッケージを事前設定しています ... /tmp/emacs-extra.config.225241: 92: cannot create /usr/share/emacs/site-lisp/emacs-extra/emacs-extra.el: Directory nonexistent /tmp/emacs-extra.config.225241: 92: cannot create /usr/share/emacs/site-lisp/emacs-extra/emacs-extra.el: Directory nonexistent /tmp/emacs-extra.config.225241: 92: cannot create /usr/share/emacs/site-lisp/emacs-extra/emacs-extra.el: Directory nonexistent /tmp/emacs-extra.config.225241: 92: cannot create /usr/share/emacs/site-lisp/emacs-extra/emacs-extra.el: Directory nonexistent /tmp/emacs-extra.config.225241: 92: cannot create /usr/share/emacs/site-lisp/emacs-extra/emacs-extra.el: Directory nonexistent /tmp/emacs-extra.config.225241: 92: cannot create /usr/share/emacs/site-lisp/emacs-extra/emacs-extra.el: Directory nonexistent /tmp/emacs-extra.config.225241: 92: cannot create /usr/share/emacs/site-lisp/emacs-extra/emacs-extra.el: Directory nonexistent /tmp/emacs-extra.config.225241: 92: cannot create /usr/share/emacs/site-lisp/emacs-extra/emacs-extra.el: Directory nonexistent emacs-extra は終了コード 2 で前設定に失敗しました 未選択パッケージ emacs-extra を選択しています。 (データベースを読み込んでいます ... 現在 424662 個のファイルとディレクトリがインストールされています。) (.../emacs-extra_0.1-1ubuntu1_all.deb から) emacs-extra を展開しています... emacs-extra (0.1-1ubuntu1) を設定しています ... install/emacs-extra: Handling install for emacsen flavor emacs21 Wrote /usr/share/emacs21/site-lisp/emacs-extra/emacs-extra.elc Done install/emacs-extra: Handling install for emacsen flavor emacs22 Loading subst-ksc... Loading subst-gb2312... Loading subst-big5... Loading subst-jis... Wrote /usr/share/emacs22/site-lisp/emacs-extra/emacs-extra.elc install/emacs-extra: Handling install for emacsen flavor xemacs21 Compiling /usr/share/xemacs21/site-lisp/emacs-extra/emacs-extra.el... Wrote /usr/share/xemacs21/site-lisp/emacs-extra/emacs-extra.elc Done
一応「Done」で最後は終わっているのですが、一体このエラーは何なんでしょうか。また、どうすれば回避ができますでしょうか。グーグルで調べて見ても英文のページばかりで、それらを機械翻訳してもよく分かりませんでした。また、フォーラムを見ても、調べた限りでは該当するものは見つかりませんでした。なぜか知りませんが、このインストールに失敗した後「sudo dpkg-reconfigre emacs-extra」と実行して再設定したら、今度はエラーなく完了しました。
以下「sudo dpkg-reconfigre emacs-extra」を実行したときのログです。
canon@canon-desktop:~$ sudo dpkg-reconfigure emacs-extra remove/emacs-extra: purging byte-compiled files for emacs21 remove/emacs-extra: purging byte-compiled files for emacs22 remove/emacs-extra: purging byte-compiled files for xemacs21 install/emacs-extra: Handling install for emacsen flavor emacs21 Wrote /usr/share/emacs21/site-lisp/emacs-extra/emacs-extra.elc Done install/emacs-extra: Handling install for emacsen flavor emacs22 Loading subst-ksc... Loading subst-gb2312... Loading subst-big5... Loading subst-jis... Wrote /usr/share/emacs22/site-lisp/emacs-extra/emacs-extra.elc install/emacs-extra: Handling install for emacsen flavor xemacs21 Compiling /usr/share/xemacs21/site-lisp/emacs-extra/emacs-extra.el... Wrote /usr/share/xemacs21/site-lisp/emacs-extra/emacs-extra.elc Done
長く分かりにくい質問で本当に申し訳ありません。以上、よろしくお願いします。
オフライン
えーと、パッケージのバグでファイルをインストールするタイミングが間違っています。
が、致命的ではないので無視しておいてください。
https://bugs.launchpad.net/ubuntu/+source/emacs-extra/+bug/112837
オフライン
canonです。返信有難うございます。インストールするタイミングが間違っているということですか。このバグ報告の内容を見ると、だいぶ前に報告されているバグですね‥・・・・。致命的なバグでもないということですし、一応インストール後に「reconfigure」で設定をやり直したらエラーもなく直りましたので「hito」さんの言う通り、この件は無視しておきたいと思います。
エラーの原因が分かって一安心しました。どうも有難うございました。
これからもよろしくお願いします。
オフライン