vine-users ML アーカイブ



[vine-users:069894] Re: apt-get で「セグメンテーション違 反」となる( 解決・長文)

  • From: Hitoshi HORIKOSHI <hitoshi_horikoshi@xxxxxxxxxxx>
  • Subject: [vine-users:069894] Re: apt-get で「セグメンテーション違 反」となる( 解決・長文)
  • Date: Sat, 22 Jan 2005 23:15:12 +0900
堀越@京都です。(少し長いです)

白鳥様、ありがとうございました。
無事、apt-getが出来るようになりました。
以下、行った手順です。

# cd /var/lib
# mv rpm/ /tmp
# mkdir rpm/
# rpm --initdb -vv
D: データベース環境 /var/lib/rpm/Packages をオープンします create:mpool
D: データベースインデックス /var/lib/rpm/Packages をオープンします create (mode=0x42)
D: データベースインデックス /var/lib/rpm/Packages をロックしました
D: データベースインデックス /var/lib/rpm/Packages を閉じました
D: データベース環境 /var/lib/rpm/Packages を閉じました
D: データベース環境 /var/lib/rpm/Packages を削除しました
D: データベースインデックス /var/lib/rpm/Packages を検証しました
# rpm --rebuilddb -vv
D: データベース /var/lib/rpm を /var/lib/rpmrebuilddb.2037 として再構築しています
D: ディレクトリの作成: /var/lib/rpmrebuilddb.2037
D: 古いデータベースを dbapi 3 でオープンしています
D: データベース環境 /var/lib/rpm/Packages をオープンします create:mpool
D: データベースインデックス /var/lib/rpm/Packages をオープンします rdonly (mode=0x0)
D: データベースインデックス /var/lib/rpm/Packages をロックしました
D: 新しいデータベースを dbapi 3 でオープンしています
D: データベース環境 /var/lib/rpmrebuilddb.2037/Packages をオープンします create:mpool
D: データベースインデックス /var/lib/rpmrebuilddb.2037/Packages をオープンします create (mode=0x42)
D: データベースインデックス /var/lib/rpm/Packages を閉じました
D: データベース環境 /var/lib/rpm/Packages を閉じました
D: データベース環境 /var/lib/rpm/Packages を削除しました
D: データベースインデックス /var/lib/rpmrebuilddb.2037/Packages を閉じました
D: データベース環境 /var/lib/rpmrebuilddb.2037/Packages を閉じました
D: データベース環境 /var/lib/rpmrebuilddb.2037/Packages を削除しました
D: データベースインデックス /var/lib/rpmrebuilddb.2037/Packages を検証しました
D: ディレクトリの削除: /var/lib/rpmrebuilddb.2037

前回のメールで、
> /var/lib/rpm/フォルダの中の、
> /var/lib/rpm/Packagesのみを残して、
> # rpm --rebuilddb -vv
> を実施しましたが、前回と結果は変わりませんでした。
と書きましたが、その際、GNOMEのNautilus上で作業を行い、
『隠しファイルとバックアップ・ファイルを表示する』に
チェックをせずに作業をしていたため、
> /var/lib/rpm/Packagesのみを残して、
という状態ではなかったと思われます。申し訳ありません。
 #上記手順の途中で、ls -a とした際に気づきました。

> googleで
>   rpm segmentation fault
> とかやって調べると、同じような状況が報告されているんですよね。でも
> 「これだ!」といった解決策が載っていない・・・。

いろいろと調べて頂いてありがとうございます。
本来は、私がしっかり調べなければいけない立場なのに、
頼ってばかりで申し訳ありません。

> <追加>
> redhatの話ですけど、データベースの修復ができる人がいるようですね。
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=98548

上記サイトは、『dbiUpdateRecord: uh is NULL』をキーワードで
ググった際に見たのですが、サポートセンターの人だと思っていました。(笑)


ちなみに、今回行った手順の後、apt-get dist-upgrade で
これまで保留していた、kernel-headers が保留されませんでした。
これは問題ないでしょうか?

# apt-get install kernel
kernel は以下のパッケージで提供されているバーチャルパッケージです。
  kernel-smp#2.4.27-0vl7.2 2.4.27-0vl7.2
  kernel-smp#2.4.26-0vl16 2.4.26-0vl16
  kernel-BOOT#2.4.27-0vl7.2 2.4.27-0vl7.2
  kernel-BOOT#2.4.26-0vl16 2.4.26-0vl16
  kernel#2.4.27-0vl7.2 2.4.27-0vl7.2
  kernel#2.4.26-0vl16 2.4.26-0vl16
  kernel22-smp#2.2.20-0vl10 2.2.20-0vl10
  kernel22#2.2.20-0vl10 2.2.20-0vl10
  kernel-smp#2.4.27-0vl7 2.4.27-0vl7
  kernel-BOOT#2.4.27-0vl7 2.4.27-0vl7
  kernel#2.4.27-0vl7 2.4.27-0vl7

また、参考までに(少し長くなりますが)、
その後行った apt-get dist-upgrade の
結果(一部省略)を添付します。

# apt-get dist-upgrade
パッケージリストを読みこんでいます... 完了
依存情報ツリーを作成しています... 完了
アップグレードパッケージを検出しています... 完了
以下のパッケージが新たにインストールされます:
  SysVinit apt basesystem bash bzip2 chkconfig console-tools cracklib
  cracklib-dicts db4 dev diffutils e2fsprogs file filesystem fileutils gawk
  gdbm glib glib2 glibc glibc-common gnupg gpm grep gzip initscripts
  install-info iproute iputils less libgcc libstdc++3 libtermcap libuser
  logrotate mingetty mktemp modutils mount ncurses pam passwd perl popt procps
  psmisc pwdb readline rpm sed setup sh-utils shadow-utils sysklogd tcsh
  termcap textutils usermode util-linux vine-keyring vine-release which words
  zlib
アップグレード: 0 個, 新規インストール: 65 個, 削除: 0 個, 保留: 0 個
62.1MB/62.6MB のアーカイブを取得する必要があります。
展開後に 178MB のディスク容量が追加消費されます。
続行しますか? [Y/n]y
取得:1 http://updates.vinelinux.org 3.1/i386/main glibc-common 2.3.3-3vl1 [14.7MB]
(中略)
取得:64 http://updates.vinelinux.org 3.1/i386/main passwd 0.68-8vl1 [14.8kB]
RPM データベースを再構築しています(処理に数分かかることがあります)...
error: cannot open Name index using db3 - そのようなファイルやディレクトリはありません (2)
error: cannot open Conflictname index using db3 - そのようなファイルやディレクトリはありません (2)
error: cannot open Providename index using db3 - そのようなファイルやディレクトリはありません (2)
変更を適用しています...
Preparing...                error: cannot open Basenames index using db3 - そのようなファイルやディレクトリはありません (2)

   1:glibc-common
error: cannot open Group index using db3 - そのようなファイルやディレクトリはありません (2)
error: cannot open Requirename index using db3 - そのようなファイルやディレクトリはありません (2)
error: cannot open Dirnames index using db3 - そのようなファイルやディレクトリはありません (2)
error: cannot open Requireversion index using db3 - そのようなファイルやディレクトリはありません (2)
error: cannot open Provideversion index using db3 - そのようなファイルやディレクトリはありません (2)
error: cannot open Installtid index using db3 - そのようなファイルやディレクトリはありません (2)
error: cannot open Sigmd5 index using db3 - そのようなファイルやディレクトリはありません (2)
error: cannot open Sha1header index using db3 - そのようなファイルやディレクトリはありません (2)
error: cannot open Filemd5s index using db3 - そのようなファイルやディレクトリはありません (2)
error: cannot open Triggername index using db3 - そのようなファイルやディレクトリはありません (2)
   2:setup
warning: /etc/csh.cshrc created as /etc/csh.cshrc.rpmnew
warning: /etc/csh.login created as /etc/csh.login.rpmnew
warning: /etc/exports created as /etc/exports.rpmnew
warning: /etc/filesystems created as /etc/filesystems.rpmnew
warning: /etc/group created as /etc/group.rpmnew
warning: /etc/host.conf created as /etc/host.conf.rpmnew
warning: /etc/hosts.allow created as /etc/hosts.allow.rpmnew
warning: /etc/hosts.deny created as /etc/hosts.deny.rpmnew
warning: /etc/inputrc saved as /etc/inputrc.rpmorig
warning: /etc/motd saved as /etc/motd.rpmorig
warning: /etc/passwd created as /etc/passwd.rpmnew
warning: /etc/printcap created as /etc/printcap.rpmnew
warning: /etc/profile created as /etc/profile.rpmnew
warning: /etc/protocols saved as /etc/protocols.rpmorig
warning: /etc/securetty saved as /etc/securetty.rpmorig
warning: /etc/services saved as /etc/services.rpmorig
warning: /etc/shells created as /etc/shells.rpmnew
warning: /var/log/lastlog created as /var/log/lastlog.rpmnew
   3:filesystem
   4:glibc                  
warning: /etc/ld.so.conf created as /etc/ld.so.conf.rpmnew
warning: /etc/localtime created as /etc/localtime.rpmnew
warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
warning: /etc/rpc saved as /etc/rpc.rpmorig
warning: /usr/lib/gconv/gconv-modules created as /usr/lib/gconv/gconv-modules.rpmnew
Stopping sshd:[  OK  ]
Starting sshd:[  OK  ]
   5:zlib
   6:install-info
   7:termcap
warning: /etc/termcap saved as /etc/termcap.rpmorig
   8:libtermcap
   9:bash
warning: /etc/bashrc created as /etc/bashrc.rpmnew
  10:fileutils
warning: /etc/DIR_COLORS saved as /etc/DIR_COLORS.rpmorig
warning: /etc/profile.d/colorls.csh saved as /etc/profile.d/colorls.csh.rpmorig
warning: /etc/profile.d/colorls.sh saved as /etc/profile.d/colorls.sh.rpmorig
  11:sed
  12:mktemp
  13:gawk
  14:textutils 
  15:shadow-utils
warning: /etc/default/useradd saved as /etc/default/useradd.rpmorig
warning: /etc/login.defs saved as /etc/login.defs.rpmorig
  16:popt
  17:bzip2     
  18:gnupg 
  19:cracklib
  20:words
  21:cracklib-dicts
  22:glib 
  23:mingetty
  24:e2fsprogs
  25:chkconfig
  26:gpm
warning: /etc/gpm-root.conf saved as /etc/gpm-root.conf.rpmorig
warning: /etc/rc.d/init.d/gpm saved as /etc/rc.d/init.d/gpm.rpmorig
warning: /etc/sysconfig/gpm saved as /etc/sysconfig/gpm.rpmorig
  27:ncurses
  28:procps
warning: /etc/X11/applnk/Utilities/top.desktop saved as /etc/X11/applnk/Utilities/top.desktop.rpmorig
warning: /etc/X11/wmconfig/top saved as /etc/X11/wmconfig/top.rpmorig
  29:logrotate
warning: /etc/logrotate.conf created as /etc/logrotate.conf.rpmnew
warning: /var/lib/logrotate.status created as /var/lib/logrotate.status.rpmnew
  30:sysklogd
warning: /etc/logrotate.d/syslog saved as /etc/logrotate.d/syslog.rpmorig
warning: /etc/rc.d/init.d/syslog saved as /etc/rc.d/init.d/syslog.rpmorig
warning: /etc/sysconfig/syslog created as /etc/sysconfig/syslog.rpmnew
warning: /etc/syslog.conf created as /etc/syslog.conf.rpmnew
  31:psmisc                                                             
  32:dev
  33:which
warning: /etc/profile.d/which-2.csh saved as /etc/profile.d/which-2.csh.rpmorig
warning: /etc/profile.d/which-2.sh saved as /etc/profile.d/which-2.sh.rpmorig
  34:grep
  35:glib2
  36:libuser
warning: /etc/libuser.conf created as /etc/libuser.conf.rpmnew
  37:usermode
warning: /etc/pam.d/halt created as /etc/pam.d/halt.rpmnew
warning: /etc/pam.d/poweroff created as /etc/pam.d/poweroff.rpmnew
warning: /etc/pam.d/reboot created as /etc/pam.d/reboot.rpmnew
warning: /etc/security/console.apps/halt saved as /etc/security/console.apps/halt.rpmorig
warning: /etc/security/console.apps/poweroff saved as /etc/security/console.apps/poweroff.rpmorig
warning: /etc/security/console.apps/reboot saved as /etc/security/console.apps/reboot.rpmorig
  38:modutils
  39:util-linux
warning: /etc/fdprm saved as /etc/fdprm.rpmorig
warning: /etc/pam.d/chfn saved as /etc/pam.d/chfn.rpmorig
warning: /etc/pam.d/chsh saved as /etc/pam.d/chsh.rpmorig
warning: /etc/pam.d/login saved as /etc/pam.d/login.rpmorig
  40:SysVinit
  41:iproute
warning: /etc/iproute2/rt_dsfield created as /etc/iproute2/rt_dsfield.rpmnew
warning: /etc/iproute2/rt_protos created as /etc/iproute2/rt_protos.rpmnew
warning: /etc/iproute2/rt_realms created as /etc/iproute2/rt_realms.rpmnew
warning: /etc/iproute2/rt_scopes created as /etc/iproute2/rt_scopes.rpmnew
warning: /etc/iproute2/rt_tables created as /etc/iproute2/rt_tables.rpmnew
  42:iputils
  43:file
  44:less
warning: /etc/profile.d/less.csh saved as /etc/profile.d/less.csh.rpmorig
warning: /etc/profile.d/less.sh saved as /etc/profile.d/less.sh.rpmorig
  45:gzip
  46:console-tools
warning: /etc/rc.d/init.d/keytable saved as /etc/rc.d/init.d/keytable.rpmorig
  47:tcsh
  48:initscripts
warning: /etc/X11/prefdm saved as /etc/X11/prefdm.rpmorig
warning: /etc/adjtime created as /etc/adjtime.rpmnew
warning: /etc/initlog.conf saved as /etc/initlog.conf.rpmorig
warning: /etc/inittab created as /etc/inittab.rpmnew
warning: /etc/ppp/ip-down saved as /etc/ppp/ip-down.rpmorig
warning: /etc/ppp/ip-down.ipv6to4 saved as /etc/ppp/ip-down.ipv6to4.rpmorig
warning: /etc/ppp/ip-up saved as /etc/ppp/ip-up.rpmorig
warning: /etc/ppp/ip-up.ipv6to4 saved as /etc/ppp/ip-up.ipv6to4.rpmorig
warning: /etc/profile.d/ime.csh saved as /etc/profile.d/ime.csh.rpmorig
warning: /etc/profile.d/ime.sh saved as /etc/profile.d/ime.sh.rpmorig
warning: /etc/profile.d/lang.csh saved as /etc/profile.d/lang.csh.rpmorig
warning: /etc/profile.d/lang.sh saved as /etc/profile.d/lang.sh.rpmorig
warning: /etc/rc.d/init.d/functions saved as /etc/rc.d/init.d/functions.rpmorig
warning: /etc/rc.d/init.d/functions.bootsplash saved as /etc/rc.d/init.d/functions.bootsplash.rpmorig
warning: /etc/rc.d/init.d/functions.noloadi18n saved as /etc/rc.d/init.d/functions.noloadi18n.rpmorig
warning: /etc/rc.d/init.d/halt saved as /etc/rc.d/init.d/halt.rpmorig
warning: /etc/rc.d/init.d/killall saved as /etc/rc.d/init.d/killall.rpmorig
warning: /etc/rc.d/init.d/netfs saved as /etc/rc.d/init.d/netfs.rpmorig
warning: /etc/rc.d/init.d/network saved as /etc/rc.d/init.d/network.rpmorig
warning: /etc/rc.d/init.d/random saved as /etc/rc.d/init.d/random.rpmorig
warning: /etc/rc.d/init.d/rawdevices saved as /etc/rc.d/init.d/rawdevices.rpmorig
warning: /etc/rc.d/init.d/single saved as /etc/rc.d/init.d/single.rpmorig
warning: /etc/rc.d/rc saved as /etc/rc.d/rc.rpmorig
warning: /etc/rc.d/rc.local created as /etc/rc.d/rc.local.rpmnew
warning: /etc/rc.d/rc.sysinit saved as /etc/rc.d/rc.sysinit.rpmorig
warning: /etc/sysconfig/i18n saved as /etc/sysconfig/i18n.rpmorig
warning: /etc/sysconfig/ime saved as /etc/sysconfig/ime.rpmorig
warning: /etc/sysconfig/init created as /etc/sysconfig/init.rpmnew
warning: /etc/sysconfig/network-scripts/ifdown-ippp saved as /etc/sysconfig/network-scripts/ifdown-ippp.rpmorig
warning: /etc/sysconfig/network-scripts/ifdown-ipv6 saved as /etc/sysconfig/network-scripts/ifdown-ipv6.rpmorig
warning: /etc/sysconfig/network-scripts/ifdown-post saved as /etc/sysconfig/network-scripts/ifdown-post.rpmorig
warning: /etc/sysconfig/network-scripts/ifdown-ppp saved as /etc/sysconfig/network-scripts/ifdown-ppp.rpmorig
warning: /etc/sysconfig/network-scripts/ifdown-sit saved as /etc/sysconfig/network-scripts/ifdown-sit.rpmorig
warning: /etc/sysconfig/network-scripts/ifdown-sl saved as /etc/sysconfig/network-scripts/ifdown-sl.rpmorig
warning: /etc/sysconfig/network-scripts/ifup-aliases saved as /etc/sysconfig/network-scripts/ifup-aliases.rpmorig
warning: /etc/sysconfig/network-scripts/ifup-ippp saved as /etc/sysconfig/network-scripts/ifup-ippp.rpmorig
warning: /etc/sysconfig/network-scripts/ifup-ipv6 saved as /etc/sysconfig/network-scripts/ifup-ipv6.rpmorig
warning: /etc/sysconfig/network-scripts/ifup-ipx saved as /etc/sysconfig/network-scripts/ifup-ipx.rpmorig
warning: /etc/sysconfig/network-scripts/ifup-plip saved as /etc/sysconfig/network-scripts/ifup-plip.rpmorig
warning: /etc/sysconfig/network-scripts/ifup-plusb saved as /etc/sysconfig/network-scripts/ifup-plusb.rpmorig
warning: /etc/sysconfig/network-scripts/ifup-post saved as /etc/sysconfig/network-scripts/ifup-post.rpmorig
warning: /etc/sysconfig/network-scripts/ifup-ppp saved as /etc/sysconfig/network-scripts/ifup-ppp.rpmorig
warning: /etc/sysconfig/network-scripts/ifup-routes saved as /etc/sysconfig/network-scripts/ifup-routes.rpmorig
warning: /etc/sysconfig/network-scripts/ifup-sit saved as /etc/sysconfig/network-scripts/ifup-sit.rpmorig
warning: /etc/sysconfig/network-scripts/ifup-sl saved as /etc/sysconfig/network-scripts/ifup-sl.rpmorig
warning: /etc/sysconfig/network-scripts/ifup-wireless saved as /etc/sysconfig/network-scripts/ifup-wireless.rpmorig
warning: /etc/sysconfig/network-scripts/init.ipv6-global saved as /etc/sysconfig/network-scripts/init.ipv6-global.rpmorig
warning: /etc/sysconfig/network-scripts/network-functions saved as /etc/sysconfig/network-scripts/network-functions.rpmorig
warning: /etc/sysconfig/network-scripts/network-functions-ipv6 saved as /etc/sysconfig/network-scripts/network-functions-ipv6.rpmorig
warning: /etc/sysconfig/networking/ifcfg-lo saved as /etc/sysconfig/networking/ifcfg-lo.rpmorig
warning: /etc/sysconfig/rawdevices created as /etc/sysconfig/rawdevices.rpmnew
warning: /etc/sysctl.conf created as /etc/sysctl.conf.rpmnew
warning: /sbin/ifdown saved as /sbin/ifdown.rpmorig
warning: /sbin/ifup saved as /sbin/ifup.rpmorig
  49:pwdb
warning: /etc/pwdb.conf saved as /etc/pwdb.conf.rpmorig
  50:libgcc
  51:libstdc++3
  52:db4
  53:pam
warning: /etc/pam.d/other created as /etc/pam.d/other.rpmnew
warning: /etc/pam.d/system-auth created as /etc/pam.d/system-auth.rpmnew
warning: /etc/security/access.conf created as /etc/security/access.conf.rpmnew
warning: /etc/security/chroot.conf created as /etc/security/chroot.conf.rpmnew
warning: /etc/security/console.perms created as /etc/security/console.perms.rpmnew
warning: /etc/security/group.conf created as /etc/security/group.conf.rpmnew
warning: /etc/security/limits.conf created as /etc/security/limits.conf.rpmnew
warning: /etc/security/pam_env.conf created as /etc/security/pam_env.conf.rpmnew
warning: /etc/security/time.conf created as /etc/security/time.conf.rpmnew
Stopping sshd:[  OK  ]
Starting sshd:[  OK  ]
  54:sh-utils
warning: /etc/pam.d/su created as /etc/pam.d/su.rpmnew
  55:vine-keyring
warning: /usr/lib/rpm/gnupg/vine-keyring.gpg saved as /usr/lib/rpm/gnupg/vine-keyring.gpg.rpmorig
warning: /usr/lib/rpm/gnupg/vine-keyring.gpg.sha1sum saved as /usr/lib/rpm/gnupg/vine-keyring.gpg.sha1sum.rpmorig
importing Vine Linux keyring to rpm keyring... done.
  56:rpm
warning: /etc/cron.daily/rpm created as /etc/cron.daily/rpm.rpmnew
warning: /etc/logrotate.d/rpm created as /etc/logrotate.d/rpm.rpmnew
warning: /etc/rpm/macros.cdb created as /etc/rpm/macros.cdb.rpmnew
  57:gdbm
  58:perl
warning: /usr/lib/perl5/5.8.2/Net/libnet.cfg saved as /usr/lib/perl5/5.8.2/Net/libnet.cfg.rpmorig
  59:readline
  60:apt
warning: /etc/apt/apt.conf created as /etc/apt/apt.conf.rpmnew
warning: /etc/apt/apt.conf.d/gpg-keyring.conf saved as /etc/apt/apt.conf.d/gpg-keyring.conf.rpmorig
warning: /etc/apt/preferences created as /etc/apt/preferences.rpmnew
warning: /etc/apt/rpmpriorities saved as /etc/apt/rpmpriorities.rpmorig
warning: /etc/apt/sources.list created as /etc/apt/sources.list.rpmnew
warning: /etc/apt/vendors.list saved as /etc/apt/vendors.list.rpmorig
  61:diffutils
  62:mount                                                              
  63:vine-release
  64:passwd
warning: /etc/pam.d/passwd saved as /etc/pam.d/passwd.rpmorig
完了

ありがとうございました。

-- 
堀越ひとし