• ベストアンサー

aptのエラー

FedoraCore1のサーバーで、aptを使用したアップグレードを行おうとするのですが、エラーが出ます。 ---- # apt-get -y install httpd Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: httpd-devel The following packages will be upgraded httpd httpd-devel 2 upgraded, 0 newly installed, 0 removed and 40 not upgraded. Need to get 1204kB of archives. After unpacking 28.7kB disk space will be freed. Get:1 http://ayo.freshrpms.net fedora/linux/1/i386/updates httpd-devel 2.0.49-1.1 [145kB] Get:2 http://ayo.freshrpms.net fedora/linux/1/i386/updates httpd 2.0.49-1.1 [1059kB] Fetched 1204kB in 11s (107kB/s) apr-util-devel is needed by httpd-devel-2.0.49-1.1 gawk is needed by httpd-2.0.49-1.1 libaprutil-0.so.0 is needed by httpd-2.0.49-1.1 E: Transaction set check failed ----- 上記の、apr-util-devel, gawk は確認したところインストール済み、libaprutil-0.so.0 も $ ls -la libaprutil-0.so.0 lrwxrwxrwx 1 root root 21 5月 8 13:08 libaprutil-0.so.0 -> libaprutil-0.so.0.9.4 ということでちゃんとあるようです。 どうしたらうまくアップグレードできるのでしょう。ご存知でしたら教えてください。

質問者が選んだベストアンサー

  • ベストアンサー
回答No.1

私は普段Debianを使っている者です。freshrpmのapt-getも使っていますが、詳しく知っているわけではありません。 先ずは apt-get update してから apt-get install httpd してみましょう。これでだめなら apt-get -f install httpd してみましょう。

sylphy
質問者

補足

やっぱりうまく行かないんですよ。 # apt-get update Get:1 http://ayo.freshrpms.net fedora/linux/1/i386 release [1814B] Fetched 1814B in 1s (1184B/s) Hit http://ayo.freshrpms.net fedora/linux/1/i386/core pkglist Hit http://ayo.freshrpms.net fedora/linux/1/i386/core release Hit http://ayo.freshrpms.net fedora/linux/1/i386/updates pkglist Hit http://ayo.freshrpms.net fedora/linux/1/i386/updates release Hit http://ayo.freshrpms.net fedora/linux/1/i386/freshrpms pkglist Hit http://ayo.freshrpms.net fedora/linux/1/i386/freshrpms release Reading Package Lists... Done Building Dependency Tree... Done # apt-get -f install httpd Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: httpd-devel The following packages will be upgraded httpd httpd-devel 2 upgraded, 0 newly installed, 0 removed and 40 not upgraded. Need to get 0B/1204kB of archives. After unpacking 28.7kB disk space will be freed. Do you want to continue? [Y/n] y apr-util-devel is needed by httpd-devel-2.0.49-1.1 gawk is needed by httpd-2.0.49-1.1 libaprutil-0.so.0 is needed by httpd-2.0.49-1.1 E: Transaction set check failed #

その他の回答 (1)

  • xjd
  • ベストアンサー率63% (1021/1612)
回答No.2

>Get:1 http://ayo.freshrpms.net fedora/linux/1/i386/updates httpd-devel 2.0.49-1.1 [145kB] >Get:2 http://ayo.freshrpms.net fedora/linux/1/i386/updates httpd 2.0.49-1.1 [1059kB] なぜfreshrpmsからダウンロード? fedoraのサイトからリポジトリを入手してみては? また、fedoraにはyumコマンドが標準なので、そちらを使ってみては?

sylphy
質問者

お礼

お礼欄で補足すみません。 念のため、以下のようにもやってみたのですが、gawk はインストールされているんですよね。 # yum install gawk Gathering header information file(s) from server(s) Server: Fedora Core 1 - i386 - Base Server: Fedora Core 1 - i386 - Released Updates Finding updated packages Downloading needed headers gawk is installed and is the latest version. No actions to take #

sylphy
質問者

補足

> なぜfreshrpmsからダウンロード? なぜ…と聞かれるとよくわかりませんが、aptをインストールしたときからこうなってます。 yum は知りませんでした。ありがとうございます。 で、試してみたんですが、やはり同じような感じです。 # yum check-update Gathering header information file(s) from server(s) Server: Fedora Core 1 - i386 - Base Server: Fedora Core 1 - i386 - Released Updates Finding updated packages Downloading needed headers Name Arch Version Repo ------------------------------------------ 以下省略 # yum install httpd Gathering header information file(s) from server(s) Server: Fedora Core 1 - i386 - Base Server: Fedora Core 1 - i386 - Released Updates Finding updated packages Downloading needed headers Resolving dependencies ....Unable to satisfy dependencies Package httpd needs gawk, this is not available. Package httpd needs libaprutil-0.so.0, this is not available. #

関連するQ&A

  • sudo apt-get install が完了しない。

    Ubuntu 8.10 Server Editionを使い、サーバーとネットワークについて学習しようと思いました。 http://wiki.livedoor.jp/rockie33jp/d/ssh%a5%b5%a1%bc%a5Ф%ce%c0%df%c4%ea 上記アドレスのサイト等を参考にし、opensshサーバーの設定を行い、別のWindowsPCからPuTTyを使用し、公開鍵暗号方式を使用して、リモートアクセスしております。 次にntpサーバ設定のために、 $ sudo apt-get update $ sudo apt-get install ntp と打ち込み Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: ntp-doc The following NEW packages will be installed: ntp 0 upgraded, 1 newly installed, 0 to remove and 45 not upgraded. Need to get 432kB of archives. After this operation, 1069kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! ntp Install these packages without verification [y/N]? という表示がでて、yとN両方試しましたが、その後の $ sudo vim /etc/ssh/ntp_config を実行したのですが、 "/etc/ntp.conf" [New File] となっており、何のデータもありません。 どこがおかしいのかわからないので教えていただきたいと思います。

  • 依存の問題

    Apt-getをインストールしようと思ったら次のエラーになりました。 libstdc++が必要だと思うのですが、どのRPMには行っているのでしょうか? Fedora Core2です。 Failed dependencies: libstdc++.so.6 is needed by apt-0.5.15cnc6-1.1.fc3.fr libstdc++.so.6(CXXABI_1.3) is needed by apt-0.5.15cnc6-1.1.fc3.fr libstdc++.so.6(GLIBCXX_3.4) is needed by apt-0.5.15cnc6-1.1.fc3.fr よろしくお願いします。

  • インストールの際の依存関係

    私はRedHat Linux 8.0にて自宅Webサーバを運用しています。このたび、PHP+MySQLで動作するWeblogを導入しようと思いました。このWeblogではPHP ver.4.3以上が奨励されているので、いろいろと探してみたところ、次の場所にrpmパッケージが置かれているのを見つけました。 http://www.btree.org/linux/packages/redhat/8.0/i386/php-4.3.1-1/ しかし、インストールしようとすると、次のように「依存関係があるからダメです。」というメッセージが出てきます。 [root@hogehoge root]# rpm -Uvh http://www.btree.org/中略/php-mysql-4.3.1-1.i386.rpm http://www.btree.org/中略/php-mysql-4.3.1-1.i386.rpm を取得しています エラー: Failed dependencies: libmysqlclient.so.10 is needed by php-mysql-4.3.1-1 また、同様にhttpd-2.0.45-1も公開されていたのでアップデートを試みましたが、同じく依存関係の問題でインストールできませんでした。 [root@nadia root]# rpm -Uvh http://www.btree.org/中略/httpd-2.0.45-1/httpd-2.0.45-1.i386.rpm http://www.btree.org/中略/httpd-2.0.45-1.i386.rpm を取得しています エラー: Failed dependencies: libapr.so.0 is needed by (installed) mod_perl-1.99_05-3 libaprutil.so.0 is needed by (installed) mod_perl-1.99_05-3 このような場合、rpm --force 指定で強制インストールして良いのでしょうか(良くないから警告されているんでしょうけど^^;)。セキュリティ上の観点からも新しいものに更新しておきたいんですが、ソースからビルドする力量はないので、何とかrpm(またはapt-get)で対処したいのです。 よろしくお願いします。

  • Apace2のインストールでエラー

    VMware PlayerにCentOS5をインストールしてApache2をソースファイルからインストールしようとしているのですが、Apacheのインストールができません。状況は下記の通りです。 # wget ftp://ftp.riken.jp/net/apache/httpd/httpd-2.2.4.tar.gz # tar -xvzf httpd-2.2.4.tar.gz # cd httpd-2.2.4 ここでapr/apr-utilをアップグレードする必要があるということで http://httpd.apache.org/docs/2.2/ja/install.html の「apr/apr-util >= 1.2」を参考にしながら下記の操作を行いました。 # cd srclib/apr # ./configure --prefix=/usr/local/apr-httpd/ # make # make install # make clean # cd ../apr-util # ./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/ # make # make install # make clean # cd ../../ # ./configure --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/ (省略) /usr/local/apr-httpd//build-1/libtool --silent --mode=link gcc -g -O2 -pthread -L/usr/local/apr-util-httpd//lib -o htpasswd htpasswd.lo -lm /home/minoru/dl_app/httpd-2.2.4/srclib/pcre/libpcre.la /usr/local/apr-util-httpd//lib/libaprutil-1.la -lexpat /usr/local/apr-httpd//lib/libapr-1.la -lrt -lcrypt -lpthread -ldl /usr/local/apr-util-httpd//lib/libexpat.so: undefined reference to `XmlSizeOfUnknownEncoding' /usr/local/apr-util-httpd//lib/libexpat.so: undefined reference to `XmlInitUnknownEncoding' /usr/local/apr-util-httpd//lib/libexpat.so: undefined reference to `XmlInitEncodingNS' /usr/local/apr-util-httpd//lib/libexpat.so: undefined reference to `XmlUtf8Encode' /usr/local/apr-util-httpd//lib/libexpat.so: undefined reference to `XmlGetUtf8InternalEncoding' /usr/local/apr-util-httpd//lib/libexpat.so: undefined reference to `XmlGetUtf8InternalEncodingNS' /usr/local/apr-util-httpd//lib/libexpat.so: undefined reference to `XmlPrologStateInit' /usr/local/apr-util-httpd//lib/libexpat.so: undefined reference to `XmlParseXmlDeclNS' /usr/local/apr-util-httpd//lib/libexpat.so: undefined reference to `XmlInitUnknownEncodingNS' /usr/local/apr-util-httpd//lib/libexpat.so: undefined reference to `XmlParseXmlDecl' /usr/local/apr-util-httpd//lib/libexpat.so: undefined reference to `XmlInitEncoding' /usr/local/apr-util-httpd//lib/libexpat.so: undefined reference to `XmlPrologStateInitExternalEntity' collect2: ld returned 1 exit status make[2]: *** [htpasswd] エラー 1 make[2]: ディレクトリ `/home/minoru/dl_app/httpd-2.2.4/support' から出ます make[1]: *** [all-recursive] エラー 1 make[1]: ディレクトリ `/home/minoru/dl_app/httpd-2.2.4/support' から出ます make: *** [all-recursive] エラー 1 どなたかわかる方、御教示願います。

  • apt-getによるapacheのインストールができません。

    whiteboxlinuxを利用しています。 apt-getでapacheをインストールしようとしているのですが、下記のエラーがでてインストールできません。 どこが間違っているのでしょうか。 チェックするところなど、教えていただけるとうれしいです。よろしくお願いいたします。 [root@host root]# apt-get install apache Reading Package Lists... Done Building Dependency Tree... Done Package apache has no available version, but exists in the database. This typically means that the package was mentioned in a dependency and never uploaded, has been obsoleted or is not available with the contents of sources.list However the following packages replace it: httpd E: Package apache has no installation candidate

  • Apacheインストール時にエラー

    はじめまして。 Solaris10の環境で、OpenSSL9.8lをソースからインストールし Apache2.2.14の所でmakeエラーが発生しました。 Googleで調べたのですが、よくわかりません。 ご存知の方、教えていただけたら幸いです。 ./configure --enable-mods-shared=all--enable-ssl=shared --enable-ssl --with-ssl=/usr/local/ssl --with-included-apr make /usr/local/src/httpd-2.2.14/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/usr/local/src/httpd-2.2.14/srclib/pcre -I. -I/usr/local/src/httpd-2.2.14/os/unix -I/usr/local/src/httpd-2.2.14/server/mpm/prefork -I/usr/local/src/httpd-2.2.14/modules/http -I/usr/local/src/httpd-2.2.14/modules/filters -I/usr/local/src/httpd-2.2.14/modules/proxy -I/usr/local/src/httpd-2.2.14/include -I/usr/local/src/httpd-2.2.14/modules/generators -I/usr/local/src/httpd-2.2.14/modules/mappers -I/usr/local/src/httpd-2.2.14/modules/database -I/usr/local/src/httpd-2.2.14/srclib/apr/include -I/usr/local/src/httpd-2.2.14/srclib/apr-util/include -I/usr/local/src/httpd-2.2.14/modules/proxy/../generators -I/usr/local/ssl/include -I/usr/local/src/httpd-2.2.14/modules/ssl -I/usr/local/src/httpd-2.2.14/modules/dav/main -prefer-non-pic -static -c htpasswd.c && touch htpasswd.lo /usr/local/src/httpd-2.2.14/srclib/apr/libtool --silent --mode=link gcc -g -O2 -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/lib:-L/usr/sfw/lib:-L/usr/lib:-L/opt/sfw/lib:-L/usr/local/ssl/lib -o htpasswd htpasswd.lo -lm /usr/local/src/httpd-2.2.14/srclib/pcre/libpcre.la /usr/local/src/httpd-2.2.14/srclib/apr-util/libaprutil-1.la -lexpat -liconv /usr/local/src/httpd-2.2.14/srclib/apr/libapr-1.la -luuid -lsendfile -lrt -lsocket -lnsl -lpthread Undefined first referenced symbol in file atomic_swap_32 /usr/local/src/httpd-2.2.14/srclib/apr/.libs/libapr-1.so atomic_cas_ptr /usr/local/src/httpd-2.2.14/srclib/apr/.libs/libapr-1.so atomic_swap_ptr /usr/local/src/httpd-2.2.14/srclib/apr/.libs/libapr-1.so atomic_inc_32_nv /usr/local/src/httpd-2.2.14/srclib/apr/.libs/libapr-1.so atomic_dec_32_nv /usr/local/src/httpd-2.2.14/srclib/apr/.libs/libapr-1.so atomic_cas_32 /usr/local/src/httpd-2.2.14/srclib/apr/.libs/libapr-1.so ld: fatal: Symbol referencing errors. No output written to .libs/htpasswd collect2: ld returned 1 exit status make[2]: *** [htpasswd] エラー 1 make[2]: ディレクトリ `/usr/local/src/httpd-2.2.14/support' から出ます make[1]: *** [all-recursive] エラー 1 make[1]: ディレクトリ `/usr/local/src/httpd-2.2.14/support' から出ます make: *** [all-recursive] エラー 1 よろしくお願いします。

  • Apache インストール時のエラーについて

    CentOS4.6 に Apacheをインストールしようとしているのですが、make と make install で いつも このようなエラーがでて。。どうも上手いこといきません。  まだ初心者なので訳してみてもよくわからず、調べた結果、 /usr/local/apache/bin/ に apachectl が何度も挑戦しても、 作成されません。なぜでしょう・・・助けてください。 ※元々、OSインストール時にhttpdがインストールされてましたので、 yum remove httpdを実行しました。(元々のでも出来なかったので) 後、最終的にしたいことは、htdocsを作成してCGIとかperl とかで勉強したいのですが、apacheが、、、お願いします。 /usr/lib/libexpat.so: could not read symbols: File in wrong format collect2: ld returned 1 exit status make[3]: *** [libaprutil-1.la] Error 1 make[3]: Leaving directory `/usr/local/src/httpd-2.2.8/srclib/apr-util' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/httpd-2.2.8/srclib/apr-util' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/httpd-2.2.8/srclib' make: *** [all-recursive] Error 1

  • Debian apt-get updateができない

    Debian初心者です。 これからLinuxの勉強を始めようと思い、いろいろとテキストを買ってきて勉強をし始めましたが、早速つまずいてしまいました。 Debianのインストールまではできたのですが、apt-get updateができません。 以下のようになります。 KURO-BOX:/home/tmp-kun# apt-get update Get:1 ftp://ftp.dti.ad.jp woody/main Packages Err ftp://ftp.dti.ad.jp woody/main Packages Unable to fetch file, server said '/pub/Linux/debian/dists/woody/main/binary-p owerpc/Packages.gz: No such file or directory. ' [IP: 202.216.228.228 21] Get:2 ftp://ftp.dti.ad.jp woody/main Release Ign ftp://ftp.dti.ad.jp woody/main Release 省略 Get:8 ftp://ftp.dti.ad.jp woody/contrib Release Ign ftp://ftp.dti.ad.jp woody/contrib Release Hit ftp://ftp.dti.ad.jp woody/non-US/main Sources Hit ftp://ftp.dti.ad.jp woody/non-US/main Release Hit ftp://ftp.dti.ad.jp woody/non-US/contrib Sources Hit ftp://ftp.dti.ad.jp woody/non-US/contrib Release Failed to fetch http://security.debian.org/dists/woody/updates/main/binary-power pc/Packages 404 Not Found [IP: 212.211.132.32 80] Failed to fetch http://security.debian.org/dists/woody/updates/contrib/binary-po werpc/Packages 404 Not Found [IP: 212.211.132.32 80] Failed to fetch ftp://ftp.dti.ad.jp/pub/Linux/debian/dists/woody/main/binary-pow erpc/Packages Unable to fetch file, server said '/pub/Linux/debian/dists/woody/ main/binary-powerpc/Packages.gz: No such file or directory. ' [IP: 202.216.228. 228 21] Failed to fetch ftp://ftp.dti.ad.jp/pub/Linux/debian/dists/woody/contrib/binary- powerpc/Packages Unable to fetch file, server said '/pub/Linux/debian/dists/woo dy/contrib/binary-powerpc/Packages.gz: No such file or directory. ' [IP: 202.21 6.228.228 21] Failed to fetch ftp://ftp.dti.ad.jp/pub/Linux/debian/dists/woody/main/source/Sou rces Unable to fetch file, server said '/pub/Linux/debian/dists/woody/main/sour ce/Sources.gz: No such file or directory. ' [IP: 202.216.228.228 21] Failed to fetch ftp://ftp.dti.ad.jp/pub/Linux/debian/dists/woody/contrib/source/ Sources Unable to fetch file, server said '/pub/Linux/debian/dists/woody/contri b/source/Sources.gz: No such file or directory. ' [IP: 202.216.228.228 21] Reading Package Lists... Done Building Dependency Tree... Done E: Some index files failed to download, they have been ignored, or old ones used instead. いろいろと調べてみたりしたのですが、まったくとっていいほど解決策が見つかりません。 この後sambaのインストールも行いたいのですが、進まずじまいです。 以上、解決方法教えて頂きたいです。

  • apt-get updateするとファイル取得に失敗する。

    apt-get updateするとファイル取得に失敗する。 KNOPPIX5.3.1をCDから起動しています。 apt-get updateを実行すると、以下のようなメッセージが表示されます。   (略) 無視 http://wine.budgetdedicated.com etch/main Translation-ja 98% [ヘッダの待機中です] [ヘッダの待機中です] エラー http://ppa.launchpad.net gutsy/main Sources 403 Forbidden 98% [ヘッダの待機中です] [ヘッダの待機中です]   (略) 11.0kB を 2s で取得しました (3734B/s) W: http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu/dists/gutsy/main/binary-i386/Packages.gz の取得に失敗しました 403 Forbidden W: http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu/dists/gutsy/main/source/Sources.gz の取得に失敗しました 403 Forbidden E: いくつかのインデックスファイルのダウンロードに失敗しました。これらは無視されるか、古いものが代わりに使われます。 何日か間をおいて、時間帯も変えて実行してみたのですが、上記のとおり 正常に完了しませんでした。 どのように対処したらよいでしょうか。 ご指導ください。よろしくお願いします。

  • 時をあらわす副詞節 by the time

    by the time の使い方について質問です。一通り同様の質問と回答を読み理解したのですが、The sun will set by the time they wil get to there.の文で誤りを訂正せよ。という問題で、will get to をget thereに、will setを will have setに。という解答でした。主節には未来、未来完了をどう使い分ければよいのでしょうか。参考書でBy the time we get to the store,it will be closed.というのがありました。そうすると、will setも良いのではないかと思ったのですが?