お知らせ

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

#1 2011-05-11 12:04:01

tetsuro
メンバ
登録日: 2010-10-08

Ubuntu 11.04起動時の問題

Ubuntu 11.04をワークステーションにインストールし、Windows7とデュアルブートで使用しています。

先程、Ubuntu 11.04を通常の手順で起動(ハードドライブから起動→Ubuntuを選択)しようとしたところ、以下のようになり、起動できませんでした。

①"There is a problem with the configuration server.
(/usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256)"というエラーメッセージが表示される。→ "Close"ボタンを押す。

②ログイン画面になるが、画面右上に、
"Install problem!
The configuration defaults for GNOME Power Manager have not been installed correctly. Please contact your computer administrator."
という表示が出る。作成したアカウントにログインしようとすると、画面が真暗になり、再び①が表示される。

どのように対処すれば良いか、教えて頂けますでしょうか?

オフライン

 

#2 2011-05-11 12:33:18

funatogawa
メンバ
From: 関東
登録日: 2009-02-01

Re: Ubuntu 11.04起動時の問題

「"There is a problem with the configuration server. (/usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256)" ubuntu 11.04」でネット検索すると、Dell製のPCに特有のバグだというのですが、
http://ubuntuforums.org/showthread.php?p=10789015の#4では解決にならないでしょうか?

オフライン

 

#3 2011-05-11 13:40:40

tetsuro
メンバ
登録日: 2010-10-08

Re: Ubuntu 11.04起動時の問題

御返事ありがとうございます。

アドバイス頂いた通り、以下のように操作してみました。

ログイン画面でCtrl+Alt+F2を押す→端末画面に

sudo chmod 775 /etc/gconf/gconf.xml.system

sudo chmod 775 /tmp/

sudo apt-get update

"this will let you know that there is a problem with the package manager …"という表示は出ませんでしたが、続けて以下のコマンドを入力しました。

sudo dpkg --configure -a

sudo reboot

しかし、再起動後前回と同じ表示が出て、問題は解決されませんでした。

なお、私が使っているワークステーションはHP社製です。

オフライン

 

#4 2011-05-11 15:02:58

tetsuro
メンバ
登録日: 2010-10-08

Re: Ubuntu 11.04起動時の問題

端末画面で、

$ /usr/lib/libgconf2-4/gconf-sanity-check-2

と入力してみたところ、以下のようなメッセージが表示されました。

Please contact your system administrator to resolve the follwing problem:
Could not open or create the file "(null)"; this indicates that there may be a problem with your configuration, as many programs will need to create files in your home directory. The error was "Failed to create file '/tmp/gconf-test-locking-file-X6BCVV': Permission denied" (errno = 13).
Can't remove file (null): Bad address

オフライン

 

#5 2011-05-11 20:06:35

funatogawa
メンバ
From: 関東
登録日: 2009-02-01

Re: Ubuntu 11.04起動時の問題

正しい対応かどうかわかりませんが、”権限がない”と言っているので、

コード:

sudo chmod 775 /tmp/gconf-test-locking-file-X6BCVV

ではいかがでしょうか。でも、私のところの /tmp/にはこのファイルはありませんが(「.X0-lock」しかありません)。

Ubuntuを一旦削除し、再インストールしてみたほうがはやい気がしますが。

あまり参考にならず、ごめんなさい。

オフライン

 

#6 2011-05-12 07:51:01

einundzwanzighundertsechs
メンバ
登録日: 2008-12-28

Re: Ubuntu 11.04起動時の問題

どなたも指摘されないみたいなので,

tetsuro さん による投稿:


sudo chmod 775 /tmp/

確かに,参照先[ubuntu] Ubuntu 11.04 upgrade install fail on Dell Optiplex GX-620 - Ubuntu Forumsで,
投稿数1回の frysianDjohn さんが,そのように書かれていますが,
それだと,/tmp にはその所有者である root と root グループに属するユーザしか,ファイルを作成することができなくなります.

一般に /tmp ディレクトリは全ユーザが書き込み可能になっているはずです.
また,所謂 "RESTRICTED DELETION FLAG OR STICKY BIT" が立っていて,
/tmp に作成したファイルを削除できるのは,その所有者のみに制限されています.

コード:

$ stat /tmp
  File: `/tmp'
  Size: 12288         Blocks: 24         IO Block: 4096   ディレクトリ
Device: 804h/2052d    Inode: 3613793     Links: 16
Access: (1777/drwxrwxrwt)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-05-12 07:27:08.000000000 +0900
Modify: 2011-05-12 07:37:15.000000000 +0900
Change: 2011-05-12 07:37:15.000000000 +0900

オフライン

 

#7 2011-05-12 09:42:18

funatogawa
メンバ
From: 関東
登録日: 2009-02-01

Re: Ubuntu 11.04起動時の問題

775にしてしまったので、ユーザが一時ファイルを作ることができなくなり、「The error was "Failed to create file '/tmp/gconf-test-locking-file-X6BCVV': Permission denied" (errno = 13).」になった。

ということは、777(もとに戻す?)にしなければということでしょうか。

オフライン

 

#8 2011-05-12 09:52:17

tetsuro
メンバ
登録日: 2010-10-08

Re: Ubuntu 11.04起動時の問題

皆様、アドバイスありがとうございます。

以下のコマンドを実行した後、リブートしたところ、正常に起動できました!

$ sudo chmod 777 /tmp/

御指摘の通り、アクセス権限の問題だったようですね。

大変ありがとうございました!

オフライン

 

#9 2011-05-12 17:33:55

einundzwanzighundertsechs
メンバ
登録日: 2008-12-28

Re: Ubuntu 11.04起動時の問題

#6 にて,当方(11.04)の /tmp の状態を

einundzwanzighundertsechs  による投稿:

コード:

$ stat /tmp
  File: `/tmp'
  Size: 12288         Blocks: 24         IO Block: 4096   ディレクトリ
Device: 804h/2052d    Inode: 3613793     Links: 16
Access: (1777/drwxrwxrwt)  Uid: (    0/    root)   Gid: (    0/    root)

と示したように,/tmp のモードは ”RESTRICTED DELETION FLAG OR STICKY BIT” の立った

1777

になっているのが通常だと思います.Fedota でもそうでした.

man chmod にもそう解説されています.

RESTRICTED DELETION FLAG OR STICKY BIT
      The  restricted  deletion  flag  or  sticky  bit is a single bit, whose
      interpretation depends on the file type.  For directories, it  prevents
      unprivileged  users  from  removing or renaming a file in the directory
      unless they  own  the  file  or  the  directory;  this  is  called  the
      restricted  deletion  flag  for the directory, and is commonly found on
      world-writable directories like /tmp
.  For regular files on some  older
      systems,  the  bit saves the program's text image on the swap device so
      it will load more quickly when run; this is called the sticky bit.

(注:強調は私による)

tetsuro さん による投稿:

以下のコマンドを実行した後、リブートしたところ、正常に起動できました!

$ sudo chmod 777 /tmp/

777 では,ユーザ A が /tmp に作成した一時ファイルを,他のユーザ B が削除できてしまいます.

オフライン

 

#10 2011-05-12 18:38:22

funatogawa
メンバ
From: 関東
登録日: 2009-02-01

Re: Ubuntu 11.04起動時の問題

ステッキービットについてうまく説明しているURLがなかったのですが、
http://www2.scphys.kyoto-u.ac.jp/BIRDne … hmod1.htmlが見やすいようです。
この絶対指定の説明に従って、einundzwanzighundertsechsさんのご指摘どおり、もう一度「chmod」をやってください。

オフライン

 

Board footer

Powered by FluxBB