Ubuntuのアップデートにて.debの取得に失敗した場合の対処方法
サーバー側の問題があるかもしれませんが、
パッケージのデータベース更新を行うと正常に取得できる事ができるかも。
データベースの更新
$ sudo aptitude update
sudo: aptitude: command not found
上記みたいに、aptitude知らね〜って怒られた場合には、
$ sudo apt-get install aptitude
にてインストールしてみましょう。
今回、Ubuntu 10.04LTSにて、アップデートマネージャーにてエラーになった状況
W: http://ubuntutym.u-toyama.ac.jp/ubuntu/pool/main/t/tzdata/tzdata-java_2011l-0ubuntu0.10.04_all.deb の取得に失敗 404 Not Found W: http://ubuntutym.u-toyama.ac.jp/ubuntu/pool/main/t/tzdata/tzdata_2011l-0ubuntu0.10.04_all.deb の取得に失敗 404 Not Found
今回の場合は、http://ubuntutym.u-toyama.ac.jp/に無かったようなのでアップデートを行いました。
ログ
$ sudo aptitude update 拡張状態情報を書き込んでいます... 完了 該当 http://archive.ubuntulinux.jp lucid Release.gpg 無視 http://archive.ubuntulinux.jp/ubuntu/ lucid/main Translation-ja 該当 http://archive.ubuntulinux.jp lucid-non-free/ Release.gpg 無視 http://archive.ubuntulinux.jp/ubuntu-ja/ lucid-non-free/ Translation-ja 該当 http://ubuntutym.u-toyama.ac.jp lucid Release.gpg 該当 http://ubuntutym.u-toyama.ac.jp/ubuntu/ lucid/main Translation-ja 該当 http://jp.archive.ubuntu.com lucid Release.gpg 該当 http://jp.archive.ubuntu.com/ubuntu/ lucid/main Translation-ja 無視 http://ubuntutym.u-toyama.ac.jp/ubuntu/ lucid/restricted Translation-ja 無視 http://jp.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-ja 該当 http://archive.ubuntulinux.jp lucid Release 該当 http://archive.ubuntulinux.jp lucid-non-free/ Release 該当 http://ubuntutym.u-toyama.ac.jp/ubuntu/ lucid/universe Translation-ja 該当 http://ubuntutym.u-toyama.ac.jp/ubuntu/ lucid/multiverse Translation-ja 取得:1 http://ubuntutym.u-toyama.ac.jp lucid-updates Release.gpg [198B] 無視 http://ubuntutym.u-toyama.ac.jp/ubuntu/ lucid-updates/main Translation-ja 無視 http://ubuntutym.u-toyama.ac.jp/ubuntu/ lucid-updates/restricted Translation-ja 無視 http://ubuntutym.u-toyama.ac.jp/ubuntu/ lucid-updates/universe Translation-ja 無視 http://ubuntutym.u-toyama.ac.jp/ubuntu/ lucid-updates/multiverse Translation-ja 該当 http://ubuntutym.u-toyama.ac.jp lucid Release 該当 http://jp.archive.ubuntu.com/ubuntu/ lucid/universe Translation-ja 該当 http://jp.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-ja 取得:2 http://jp.archive.ubuntu.com lucid-updates Release.gpg [198B] 無視 http://jp.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-ja 無視 http://jp.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-ja 無視 http://jp.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-ja 無視 http://jp.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-ja 該当 http://jp.archive.ubuntu.com lucid Release 該当 http://archive.ubuntulinux.jp lucid/main Packages 該当 http://archive.ubuntulinux.jp lucid-non-free/ Packages 該当 http://archive.ubuntulinux.jp lucid-non-free/ Sources 取得:3 http://jp.archive.ubuntu.com lucid-updates Release [44.7kB] 取得:4 http://ubuntutym.u-toyama.ac.jp lucid-updates Release [44.7kB] 該当 http://ubuntutym.u-toyama.ac.jp lucid/main Packages 該当 http://ubuntutym.u-toyama.ac.jp lucid/restricted Packages 該当 http://ubuntutym.u-toyama.ac.jp lucid/main Sources 該当 http://ubuntutym.u-toyama.ac.jp lucid/restricted Sources 該当 http://ubuntutym.u-toyama.ac.jp lucid/universe Packages 該当 http://jp.archive.ubuntu.com lucid/main Packages 該当 http://jp.archive.ubuntu.com lucid/restricted Packages 該当 http://jp.archive.ubuntu.com lucid/main Sources 該当 http://jp.archive.ubuntu.com lucid/restricted Sources 該当 http://jp.archive.ubuntu.com lucid/universe Packages 該当 http://ubuntutym.u-toyama.ac.jp lucid/universe Sources 該当 http://ubuntutym.u-toyama.ac.jp lucid/multiverse Packages 該当 http://ubuntutym.u-toyama.ac.jp lucid/multiverse Sources 取得:5 http://ubuntutym.u-toyama.ac.jp lucid-updates/main Packages [523kB] 該当 http://jp.archive.ubuntu.com lucid/universe Sources 該当 http://jp.archive.ubuntu.com lucid/multiverse Packages 該当 http://jp.archive.ubuntu.com lucid/multiverse Sources 取得:6 http://jp.archive.ubuntu.com lucid-updates/main Packages [523kB] 取得:7 http://jp.archive.ubuntu.com lucid-updates/restricted Packages [3,998B] 取得:8 http://jp.archive.ubuntu.com lucid-updates/main Sources [204kB] 取得:9 http://ubuntutym.u-toyama.ac.jp lucid-updates/restricted Packages [3,998B] 取得:10 http://ubuntutym.u-toyama.ac.jp lucid-updates/main Sources [204kB] 該当 http://ppa.launchpad.net lucid Release.gpg 取得:11 http://jp.archive.ubuntu.com lucid-updates/restricted Sources [1,850B] 取得:12 http://jp.archive.ubuntu.com lucid-updates/universe Packages [235kB] 取得:13 http://ubuntutym.u-toyama.ac.jp lucid-updates/restricted Sources [1,850B] 取得:14 http://ubuntutym.u-toyama.ac.jp lucid-updates/universe Packages [235kB] 取得:15 http://security.ubuntu.com lucid-security Release.gpg [198B] 無視 http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-ja 無視 http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-ja 取得:16 http://ubuntutym.u-toyama.ac.jp lucid-updates/universe Sources [82.1kB] 取得:17 http://jp.archive.ubuntu.com lucid-updates/universe Sources [82.1kB] 取得:18 http://ubuntutym.u-toyama.ac.jp lucid-updates/multiverse Packages [10.5kB] 取得:19 http://ubuntutym.u-toyama.ac.jp lucid-updates/multiverse Sources [5,070B] 取得:20 http://jp.archive.ubuntu.com lucid-updates/multiverse Packages [10.5kB] 取得:21 http://jp.archive.ubuntu.com lucid-updates/multiverse Sources [5,070B] 該当 http://ppa.launchpad.net lucid Release 無視 http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-ja 無視 http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-ja 取得:22 http://security.ubuntu.com lucid-security Release [44.7kB] 該当 http://ppa.launchpad.net lucid/main Sources 取得:23 http://security.ubuntu.com lucid-security/main Packages [219kB] 取得:24 http://security.ubuntu.com lucid-security/restricted Packages [14B] 取得:25 http://security.ubuntu.com lucid-security/main Sources [67.7kB] 取得:26 http://security.ubuntu.com lucid-security/restricted Sources [14B] 取得:27 http://security.ubuntu.com lucid-security/universe Packages [90.8kB] 取得:28 http://security.ubuntu.com lucid-security/universe Sources [26.2kB] 取得:29 http://security.ubuntu.com lucid-security/multiverse Packages [4,537B] 取得:30 http://security.ubuntu.com lucid-security/multiverse Sources [1,742B] 2,674kB を 3s 秒でダウンロードしました (672kB/s) パッケージリストを読み込んでいます... 完了 現在の状態: 更新が 9 個 [+7], 新規が 31 個 [+31]。
aptitude 0.6.3 --help
使用方法: aptitude [-S ファイル名] [-u|-i] aptitude [オプション] <アクション> ... アクション (指定がない場合、Aptitude はインタラクティブモードで起動します): install - Install/upgrade packages. remove - Remove packages. purge - Remove packages and their configuration files. hold - Place packages on hold. unhold - Cancel a hold command for a package. markauto - Mark packages as having been automatically installed. unmarkauto - Mark packages as having been manually installed. forbid-version - aptitude に特定のパッケージバージョンの更新を禁止させます update - Download lists of new/upgradable packages. safe-upgrade - Perform a safe upgrade. full-upgrade - Perform an upgrade, possibly installing and removing packages. build-dep - Install the build-dependencies of packages. forget-new - Forget what packages are "new". search - Search for a package by name and/or expression. show - Display detailed information about a package. clean - Erase downloaded package files. autoclean - Erase old downloaded package files. changelog - View a package's changelog. download - Download the .deb file for a package. reinstall - Download and (possibly) reinstall a currently installed package. why - 指定されたパッケージについて、手動でインストールされたパッケー ジのうちどれが必要としているのか、あるいはまだインストールされ ていないパッケージがインストールされたときに何故必要となるのか、 といった説明を表示します why-not - Show the manually installed packages that lead to a conflict with the given package, or why one or more packages would lead to a conflict with the given package if installed. オプション: -h This help text. --no-gui Do not use the GTK GUI even if available. -s アクションのシミュレートのみ行い、実際には実行しません。 -d パッケージのダウンロードのみ行い、インストールや削除は行い ません。 -P Always prompt for confirmation or actions. -y Assume that the answer to simple yes/no questions is 'yes'. -F format Specify a format for displaying search results; see the manual. -O order Specify how search results should be sorted; see the manual. -w width Specify the display width for formatting search results. -f 依存関係が壊れたパッケージを積極的に修復しようとします。 -V パッケージのどのバージョンがインストールされるかを表示しま す。 -D 自動的に変更されたパッケージの依存関係を表示します。 -Z 各パッケージのインストールサイズの変更を表示します。 -v Display extra information. (may be supplied multiple times). -t [release] Set the release from which packages should be installed. -q In command-line mode, suppress the incremental progress. indicators. -o key=val Directly set the configuration option named 'key'. --with(out)-recommends Specify whether or not to treat recommends as. strong dependencies. -S <ファイル名> : <ファイル名> から aptitude の拡張状態情報を読み込みます。 -u : 起動時に新しいパッケージ一覧をダウンロードします。 (terminal interface only) -i : 起動時にインストールを行います。 (terminal interface only) この aptitude にはスーパー牛さんパワーなどはありません。
この aptitude にはスーパー牛さんパワーなどはありません。
って何???
$ aptitude -v moo $ aptitude -vv moo $ aptitude -vvv moo $ aptitude -vvvv moo $ aptitude -vvvvv moo $ aptitude -vvvvvv moo
と順番に実行すると幸せになれるって事みたい。
sudo apt-get install aptitude log
$ sudo apt-get install aptitude パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 以下の特別パッケージがインストールされます: libboost-iostreams1.42.0 libcwidget3 提案パッケージ: aptitude-doc-en aptitude-doc tasksel debtags libcwidget-dev 以下のパッケージが新たにインストールされます: aptitude libboost-iostreams1.42.0 libcwidget3 アップグレード: 0 個、新規インストール: 3 個、削除: 0 個、保留: 0 個。 2,812 kB のアーカイブを取得する必要があります。 この操作後に追加で 8,573 kB のディスク容量が消費されます。 続行しますか [Y/n]? Y 取得:1 http://jp.archive.ubuntu.com/ubuntu/ natty/main libboost-iostreams1.42.0 i386 1.42.0-4ubuntu2 [55.5 kB] 取得:2 http://jp.archive.ubuntu.com/ubuntu/ natty/main libcwidget3 i386 0.5.16-3ubuntu2 [424 kB] 取得:3 http://jp.archive.ubuntu.com/ubuntu/ natty/main aptitude i386 0.6.3-3.2ubuntu1 [2,332 kB] 2,812 kB を 1秒 で取得しました (1,791 kB/s) 未選択パッケージ libboost-iostreams1.42.0 を選択しています。 (データベースを読み込んでいます ... 現在 210368 個のファイルとディレクトリがインストールされています。) (.../libboost-iostreams1.42.0_1.42.0-4ubuntu2_i386.deb から) libboost-iostreams1.42.0 を展開しています... 未選択パッケージ libcwidget3 を選択しています。 (.../libcwidget3_0.5.16-3ubuntu2_i386.deb から) libcwidget3 を展開しています... 未選択パッケージ aptitude を選択しています。 (.../aptitude_0.6.3-3.2ubuntu1_i386.deb から) aptitude を展開しています... man-db のトリガを処理しています ... libboost-iostreams1.42.0 (1.42.0-4ubuntu2) を設定しています ... libcwidget3 (0.5.16-3ubuntu2) を設定しています ... aptitude (0.6.3-3.2ubuntu1) を設定しています ... update-alternatives: /usr/bin/aptitude (aptitude) を提供するために 自動モード で /usr/bin/aptitude-curses を使います。 libc-bin のトリガを処理しています ... ldconfig deferred processing now taking place