Pi/環境/Raspbianを日本のリポジトリサーバに変更する・buster
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../)
* Raspbianを日本のリポジトリサーバに変更する・buster [#l0...
Raspbianのソフトウェアアップデートをする場合、デフォルト...
http://raspbian.raspberrypi.org/raspbian/~
これを日本のサーバに変更することにより、Raspbianのアップ...
(近いサーバなので当然ですよね。)~
以下、リポジトリサーバの変更手順を記します。
#htmlinsert(minipc-top.html)
#contents
* Raspbian OS [#ib326055]
設定変更を行ったRaspbianのバージョンは以下の通りです。
$ lsb_release -dr
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
* /etc/apt/sources.listを編集する [#m4e7f2e9]
''/etc/apt/sources.list''ファイルにリポジトリサーバの情報...
本ファイルを日本のサーバに変更することになります。
** 使用する日本のリポジトリサーバ [#b6db3b0e]
以下、URLをブラウザで確認するとミラーの一覧が表示されます...
http://www.raspbian.org/RaspbianMirrors~
日本に関しては以下の3つが記載されていました。
|''CONTINENT''|''COUNTRY''|''MIRROR''|''DEB/DEB-SRC ADDRE...
|Asia|Japan|JAIST|http://ftp.jaist.ac.jp/raspbian&br;(htt...
|Asia|Japan|WIDE Project Tsukuba NOC|http://ftp.tsukuba.w...
|Asia|Japan|Yamagata University|http://ftp.yz.yamagata-u....
本資料では、[[JAIST 北陸先端科学技術大学院大学>https://ww...
使用するJAIST 北陸先端科学技術大学院大学のリポジトリURLを...
http://ftp.jaist.ac.jp/raspbian
* sources.listの修正作業 [#gf6d7a30]
sources.listをJAIST 北陸先端科学技術大学院大学のリポジト...
本資料では、テキストエディタにLeafPadを使用します。~
他のテキストエディタでも構いませんので、LeafPadの部分を読...
+ LXTerminal &ref(t.png); を起動します。
+ 起動したターミナルに以下のコマンドを入力しEnterキーを押...
sudo leafpad /etc/apt/sources.list
#ref(01.png)
#br
+ LeafPadが起動し、sources.listの内容が表示されます。
#ref(02.png)
上記内容のテキストです。
deb http://raspbian.raspberrypi.org/raspbian/ buster mai...
# Uncomment line below then 'apt-get update' to enable '...
#deb-src http://raspbian.raspberrypi.org/raspbian/ buste...
#br
+ 以下の部分を日本のリポジトリサーバURLに変更します。
-- 変更対象部分
http://raspbian.raspberrypi.org/raspbian/
-- 変更内容
http://ftp.jaist.ac.jp/raspbian
#br
+ 以下のように既存の行をコピーしリポジトリサーバのURL部分...
もともとの設定は # にてコメント化しました。~
これにより、編集ミスなどで何かあってももとに戻せます。
#ref(03.png)
以下、編集後のテキストです。
deb http://ftp.jaist.ac.jp/raspbian buster main contrib ...
# deb http://raspbian.raspberrypi.org/raspbian/ buster m...
# Uncomment line below then 'apt-get update' to enable '...
#deb-src http://raspbian.raspberrypi.org/raspbian/ buste...
+上記の修正が終わったら、上書き保存しLeafPadを終了させま...
** 日本のリポジトリサーバ変更後の動作確認 [#r8698b0f]
上記の設定変更が終わったら、動作確認を行います。~
すでにターミナル(&ref(t.png);)は起動済みだと思いますので...
sudo apt update
以下、実際に実行したときの出力です。~
変更した ftp.jaist.ac.jp が出力されています。
#ref(04.png)
#br
2行目は ''/etc/apt/sources.list.d/raspi.list'' の設定ファ...
これは、http://archive.raspberrypi.org/debian なので編集...
以上、Raspbianのリポジトリを日本のリポジトリサーバに変更...
#htmlinsert(minipc-btm.html)
終了行:
#navi(../)
* Raspbianを日本のリポジトリサーバに変更する・buster [#l0...
Raspbianのソフトウェアアップデートをする場合、デフォルト...
http://raspbian.raspberrypi.org/raspbian/~
これを日本のサーバに変更することにより、Raspbianのアップ...
(近いサーバなので当然ですよね。)~
以下、リポジトリサーバの変更手順を記します。
#htmlinsert(minipc-top.html)
#contents
* Raspbian OS [#ib326055]
設定変更を行ったRaspbianのバージョンは以下の通りです。
$ lsb_release -dr
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
* /etc/apt/sources.listを編集する [#m4e7f2e9]
''/etc/apt/sources.list''ファイルにリポジトリサーバの情報...
本ファイルを日本のサーバに変更することになります。
** 使用する日本のリポジトリサーバ [#b6db3b0e]
以下、URLをブラウザで確認するとミラーの一覧が表示されます...
http://www.raspbian.org/RaspbianMirrors~
日本に関しては以下の3つが記載されていました。
|''CONTINENT''|''COUNTRY''|''MIRROR''|''DEB/DEB-SRC ADDRE...
|Asia|Japan|JAIST|http://ftp.jaist.ac.jp/raspbian&br;(htt...
|Asia|Japan|WIDE Project Tsukuba NOC|http://ftp.tsukuba.w...
|Asia|Japan|Yamagata University|http://ftp.yz.yamagata-u....
本資料では、[[JAIST 北陸先端科学技術大学院大学>https://ww...
使用するJAIST 北陸先端科学技術大学院大学のリポジトリURLを...
http://ftp.jaist.ac.jp/raspbian
* sources.listの修正作業 [#gf6d7a30]
sources.listをJAIST 北陸先端科学技術大学院大学のリポジト...
本資料では、テキストエディタにLeafPadを使用します。~
他のテキストエディタでも構いませんので、LeafPadの部分を読...
+ LXTerminal &ref(t.png); を起動します。
+ 起動したターミナルに以下のコマンドを入力しEnterキーを押...
sudo leafpad /etc/apt/sources.list
#ref(01.png)
#br
+ LeafPadが起動し、sources.listの内容が表示されます。
#ref(02.png)
上記内容のテキストです。
deb http://raspbian.raspberrypi.org/raspbian/ buster mai...
# Uncomment line below then 'apt-get update' to enable '...
#deb-src http://raspbian.raspberrypi.org/raspbian/ buste...
#br
+ 以下の部分を日本のリポジトリサーバURLに変更します。
-- 変更対象部分
http://raspbian.raspberrypi.org/raspbian/
-- 変更内容
http://ftp.jaist.ac.jp/raspbian
#br
+ 以下のように既存の行をコピーしリポジトリサーバのURL部分...
もともとの設定は # にてコメント化しました。~
これにより、編集ミスなどで何かあってももとに戻せます。
#ref(03.png)
以下、編集後のテキストです。
deb http://ftp.jaist.ac.jp/raspbian buster main contrib ...
# deb http://raspbian.raspberrypi.org/raspbian/ buster m...
# Uncomment line below then 'apt-get update' to enable '...
#deb-src http://raspbian.raspberrypi.org/raspbian/ buste...
+上記の修正が終わったら、上書き保存しLeafPadを終了させま...
** 日本のリポジトリサーバ変更後の動作確認 [#r8698b0f]
上記の設定変更が終わったら、動作確認を行います。~
すでにターミナル(&ref(t.png);)は起動済みだと思いますので...
sudo apt update
以下、実際に実行したときの出力です。~
変更した ftp.jaist.ac.jp が出力されています。
#ref(04.png)
#br
2行目は ''/etc/apt/sources.list.d/raspi.list'' の設定ファ...
これは、http://archive.raspberrypi.org/debian なので編集...
以上、Raspbianのリポジトリを日本のリポジトリサーバに変更...
#htmlinsert(minipc-btm.html)
ページ名: