Ubuntu:Feisty ja/Repositories

From

Jump to: navigation, search

Contents

拡張レポジトリを追加するには

グラフィカルなツールを使う
  • You can add extra repositories using the Software Sources application, which can be found in the menu: System -> Administration -> Software Sources. Check the repositories you think you will need (main, universe, restricted, multiverse). You probably won't need the 'sources' repository. This is the recommended way to add extra repositories:
  • メニューのシステム -> システム管理 -> ソフトウェア・ソースで見つけられるソフトウェアソースを定義するアプリケーションを利用することでリポジトリを追加可能です。あなたが必要だと思うリポジトリ(main, universe, restricted, multiverse)をクリックしてください(訳者注:'Ubuntuのソフトウェア'タグ上の'インターネットからダウンロード'項目にあります

)。おそらく'ソースコード'のリポジトリは必要ないでしょう。これはリポジトリを追加するために必要な方法です

手動でsources.listを編集する
  • リポジトリを追加するための他の方法は以下のとおりです(利用は自己責任で!)
  • あなたの現在のsources.listのバックアップを作成します。
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup

Command explained: sudo - runs the command with elevated privileges. cp - copy. -p - prompt to overwrite if a file already exists. コマンドの説明:sudo - 別のユーザとしてコマンドを実行します。 cp - ファイルを複写します。-p - 既に存在するファイルを上書きするかプロンプトを表示します。

  • Open the list of sources in a text editor (gedit for example is a graphical text editor)
  • sources.listをテキストエディタで編集します(geditはグラフィカルなテキストエディタの例です)。
Ubuntu (GNOME) users:
Ubuntu (GNOME)ユーザ向け:
sudo gedit /etc/apt/sources.list
Kubuntu (KDE) users:
Kubuntu (KDE) ユーザ向け:
sudo kate /etc/apt/sources.list
Other users (if the above don't work):
他のユーザ向け(もし上記の記述でうまく動かない場合):
sudo nano /etc/apt/sources.list
  • Use the following lines as a template to guide you in editing the repositories in sources.list:
  • sources.listを編集するためのガイドテンプレートとして以下の文章を使ってください。
sources.list元の内容をすべて消去して、以下の内容で書き換えます。
国内のミラーサイトを使うために、archive.ubuntu.comの前に"cc."(cc = 国コード)を付け加えることができます。
例) deb http://jp.archive.ubuntu.com/ubuntu feisty main restricted universe multiverse

※訳注(Suto): 元の内容をすべて消去すると、以前に追加していたUbuntu関連以外のレポジトリも失われてしまうので注意してください。国コードの例をjpに変更しました。

↑(Sunatomo)以上の文章はEdgyの設定よりそのまま複写しています。また、同じように国コードを変更しました。

## See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
## newer versions of the distribution.

## Add comments (##) in front of any line to remove it from being checked.   
## Use the following sources.list at your own risk.  

## Uncomment deb-src if you wish to download the source packages

## If you have a install CD you can add it to the reposity using 'apt-cdrom add'
## which will add a line similar to the following:
#deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Beta i386 (20070322.1)]/ feisty main restricted
deb http://jp.archive.ubuntu.com/ubuntu/ feisty main restricted
#deb-src http://jp.archive.ubuntu.com/ubuntu/ feisty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://jp.archive.ubuntu.com/ubuntu/ feisty-updates main restricted
#deb-src http://jp.archive.ubuntu.com/ubuntu/ feisty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://jp.archive.ubuntu.com/ubuntu/ feisty universe
#deb-src http://jp.archive.ubuntu.com/ubuntu/ feisty universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://jp.archive.ubuntu.com/ubuntu/ feisty multiverse
#deb-src http://jp.archive.ubuntu.com/ubuntu/ feisty multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://jp.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
#deb-src http://jp.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu feisty-security main restricted
#deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted
deb http://security.ubuntu.com/ubuntu feisty-security universe
#deb-src http://security.ubuntu.com/ubuntu feisty-security universe
deb http://security.ubuntu.com/ubuntu feisty-security multiverse
#deb-src http://security.ubuntu.com/ubuntu feisty-security multiverse

## PLF REPOSITORY (Unsupported.  May contain illegal packages.  Use at own risk.)
## Medibuntu - Ubuntu 7.04 "feisty fawn"
## Please report any bug on https://launchpad.net/products/medibuntu/+bugs
deb http://packages.medibuntu.org/ feisty free non-free
#deb-src http://medibuntu.sos-sts.com/repo/ feisty free non-free

## CANONICAL COMMERCIAL REPOSITORY (Hosted on Canonical servers, not Ubuntu
## servers. RealPlayer10, Opera, DesktopSecure and more to come.) 
deb http://archive.canonical.com/ubuntu feisty-commercial main

## enlightenment e17 beta, use at your own risk
## E17 is in Beta and may break or break your system
#deb http://edevelop.org/pkg-e/ubuntu feisty e17
#deb http://e17.dunnewind.net/ubuntu feisty e17
#deb-src http://edevelop.org/pkg-e/ubuntu feisty e17


  • ※訳注(Jkbys): 日本語ローカライズ版CDイメージを使ってインストールした場合、以下のレポジトリが追加されます。オリジナル版CDでインストールを行った環境でJapanese Teamが提供するパッケージを利用したい場合は追加して下さい。

↑(Sunatomo)以上の文章はEdgyの日本語版より複写し、feistyの設定に準拠しています。

deb http://archive.ubuntulinux.jp/ubuntu-ja feisty/
deb http://archive.ubuntulinux.jp/ubuntu-ja feisty-ja/
  • Save the edited file
  • 編集したファイルを保存してください。
  • Download needed gpg keys; e.g., use the following command for the PLF repository's gpg key:
  • 必要なgpgキーをダウンロードします;例,PLFリポジトリのgpgキーを入手するため、以下のコマンドを実行してください:
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -

Command explained: wget - retrieves a file from a network location. -q - quiet (no output). -O- - Output downloaded item to terminal. コマンドの説明: wget - ネットワークの指定URLよりファイルをダウンロードします。 -q 画面出力を抑止します。 -O- - ダウンロードしたファイルをターミナルの標準出力に伝送します。

This command then completes. the | (pipe symbol) is used to capture the output from the previous command (in our case the screen) and use it as an input for the command piped. | (パイプ処理のシンボル)は前のコマンドで処理された標準出力を取り込み、コマンドパイプの入力として利用します。

"sudo apt-key add -" could actually be read as "sudo apt-key add - mQGiBEVmMkE...=QrqU" which is (shortened) the output of the previous command. If you type the previous command without the section after the pipe you will see the full key. "sudo apt-key add -" は実際には"sudo apt-key add - mQGiBEVmMkE...=QrqU"のように前のコマンドの出力を処理するように読めます。もし、前のコマンドをパイプに引き渡さずにタイプすると全てのキーを確認することができます。

  • If you wish to try out the E17 beta, you will also need to download it's gpg key:
  • もしE17のベータ版を試用したいのなら、このgpgキーをダウンロードする必要があります:
wget -q http://lut1n.ifrance.com/repo_key.asc -O- | sudo apt-key add -
  • Refresh packages list:
  • パッケージリストを更新します:
sudo apt-get update




  • Modify the default Ubuntu sources.list only if you understand what you're doing. Mixing repositories can break your system.
  • 既定の Ubuntu の sources.list の改変は、自分が何をしているのか理解している場合に限り行ってください。レポジトリの混合は、システムの破損の原因になることがあります。
CD-ROMやDVDのリポジトリを追加する
  • (k)ubuntuのCDやDVDのリポジトリをsources.listに追加するには

CDやDVDをドライブに挿入しターミナルで以下のようにコマンドを実行します:

sudo apt-cdrom add
Personal tools
DONATE
Sponsor
Become a sponsor: Advertise