Debian GNU/Linux スレッド Ver.97[ワ有] (823レス)
上下前次1-新
223(2): (ワッチョイ ffe3-jrG3) 2021/06/28(月)22:41 ID:e+HW8ivX0(5/9) AAS
4.2.1. Debian 10 (buster) からのアップグレード
$ cat /etc/debian_version
10.10
4.2.2. Debian 由来でないパッケージを削除する
$ cat /etc/debian_version
10.10
$ aptitude search '?narrow(?installed, ?not(?origin(Debian)))'
bash: aptitude: コマンドが見つかりません
省3
224(1): (ワッチョイ 3f7e-BQ0L) 2021/06/28(月)22:45 ID:Av3Iz72e0(3/5) AAS
>>223
公式の言う事がいちばんの安牌ではあるねえ
俺はいちいち何か消したりしなかったしaptitudeも入れなかったけど
225: (ワッチョイ ffe3-jrG3) 2021/06/28(月)22:52 ID:e+HW8ivX0(6/9) AAS
ざっと見た限り、このコマンド sed はbuster の箇所をことごとくbullseyeに置換した
$ sudo sed -i 's/buster/bullseye/' /etc/apt/sources.list
$ cat /etc/apt/sources.list
# deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Unofficial amd64 DVD Binary-1 with firmware 20191116-09:57]/ bullseye contrib main non-free
# deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Unofficial amd64 DVD Binary-1 with firmware 20191116-09:57]/ bullseye contrib main non-free
deb 外部リンク:deb.debian.org bullseye main contrib non-free
deb-src 外部リンク:deb.debian.org bullseye main contrib non-free
deb 外部リンク:security.debian.org bullseye/updates main contrib non-free
deb-src 外部リンク:security.debian.org bullseye/updates main contrib non-free
# bullseye-updates, previously known as 'volatile'
省12
226: (ワッチョイ ffe3-jrG3) 2021/06/28(月)22:54 ID:e+HW8ivX0(7/9) AAS
>>224
了解、略します
227: (ワッチョイ ffe3-jrG3) 2021/06/28(月)22:56 ID:e+HW8ivX0(8/9) AAS
$ sudo apt update
ヒット:1 外部リンク:dl.google.com stable InRelease << 野良か?
取得:2 外部リンク:deb.debian.org bullseye InRelease [150 kB]
無視:3 外部リンク:security.debian.org bullseye/updates InRelease
ヒット:4 外部リンク:repo.radeon.com xenial InRelease
エラー:5 外部リンク:security.debian.org bullseye/updates Release
404 Not Found [IP: 151.101.90.132 80]
取得:6 外部リンク:deb.debian.org bullseye-updates InRelease [40.1 kB]
取得:7 外部リンク:deb.debian.org bullseye-backports InRelease [37.0 kB]
取得:8 外部リンク:deb.debian.org bullseye/contrib Sources [43.0 kB]
省4
228(4): (ワッチョイ ffe3-jrG3) 2021/06/28(月)22:56 ID:e+HW8ivX0(9/9) AAS
取得:13 外部リンク:deb.debian.org bullseye/main Translation-en [6,247 kB]
取得:14 外部リンク:deb.debian.org bullseye/main Translation-ja [799 kB]
取得:15 外部リンク:deb.debian.org bullseye/main all Contents (deb) [30.5 MB]
取得:16 外部リンク:deb.debian.org bullseye/main amd64 Contents (deb) [10.0 MB]
取得:17 外部リンク:deb.debian.org bullseye/main i386 Contents (deb) [9,880 kB]
取得:18 外部リンク:deb.debian.org bullseye/contrib amd64 Packages [50.5 kB]
取得:19 外部リンク:deb.debian.org bullseye/contrib i386 Packages [45.3 kB]
取得:20 外部リンク:deb.debian.org bullseye/contrib Translation-en [46.9 kB]
取得:21 外部リンク:deb.debian.org bullseye/contrib amd64 Contents (deb) [54.6 kB]
取得:22 外部リンク:deb.debian.org bullseye/contrib all Contents (deb) [57.3 kB]
省12
229(1): (ワッチョイ 3f7e-BQ0L) 2021/06/28(月)23:49 ID:Av3Iz72e0(4/5) AAS
>>228
chromeのリポジトリは野良だね
230: (ワッチョイ 3f7e-BQ0L) 2021/06/28(月)23:53 ID:Av3Iz72e0(5/5) AAS
>>228
$ sudo sed -i 's/^deb/#deb/' /etc/apt/sources.list.d/*
$ sudo apt update
231(1): (ワッチョイ 3f7e-BQ0L) 2021/06/29(火)00:13 ID:Us3V6ji+0(1/6) AAS
>>228
もう1か所置換必要箇所があったわ
$ sudo sed -i 's/bullseye\/updates/bullseye-security/' /etc/apt/sources.list
$ sudo apt update
232: (ワッチョイ ffe3-jrG3) 2021/06/29(火)01:49 ID:rKmBEHbB0(1/5) AAS
>>229
> chromeのリポジトリは野良だね
/etc/apt/sources.list
を見ても コメントアウトすべき chromeのリポジトリの行がどこかわからなかった
233: (ワッチョイ ffe3-jrG3) 2021/06/29(火)01:55 ID:rKmBEHbB0(2/5) AAS
$ sudo sed -i 's/^deb/#deb/' /etc/apt/sources.list.d/*
jin@kyo:~$ cd /etc/apt/sources.list.d/
jin@kyo:/etc/apt/sources.list.d$ ls -a
. .. google-chrome.list google-chrome.list.save rocm.list
jin@kyo:/etc/apt/sources.list.d$ cat google-chrome.list
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
#deb [arch=amd64] 外部リンク:dl.google.com stable main
jin@kyo:/etc/apt/sources.list.d$
すばらしい...
234: (ワッチョイ ffe3-jrG3) 2021/06/29(火)02:00 ID:rKmBEHbB0(3/5) AAS
もう注意力が散漫でどこが変化したのか追えなくなりました
jin@kyo:~$ sudo sed -i 's/bullseye\/updates/bullseye-security/' /etc/apt/sources.list
jin@kyo:~$ cat /etc/apt/sources.list
# deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Unofficial amd64 DVD Binary-1 with firmware 20191116-09:57]/ bullseye contrib main non-free
# deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Unofficial amd64 DVD Binary-1 with firmware 20191116-09:57]/ bullseye contrib main non-free
deb 外部リンク:deb.debian.org bullseye main contrib non-free
deb-src 外部リンク:deb.debian.org bullseye main contrib non-free
deb 外部リンク:security.debian.org bullseye-security main contrib non-free
deb-src 外部リンク:security.debian.org bullseye-security main contrib non-free
# bullseye-updates, previously known as 'volatile'
省12
235(1): (ワッチョイ ffe3-jrG3) 2021/06/29(火)02:10 ID:rKmBEHbB0(4/5) AAS
227の
無視:3 外部リンク:security.debian.org bullseye/updates InRelease
と
エラー:5 外部リンク:security.debian.org bullseye/updates Release
404 Not Found [IP:
E: リポジトリ 外部リンク:security.debian.org bullseye/updates Release には Release ファイルがありません。
に注目して、bullseye/updates の文字列を bullseye-security に置き換えた。
それをsources.list手作業編集でなく、コマンドで表現すると
$ sudo sed -i 's/bullseye\/updates/bullseye-security/' /etc/apt/sources.list
であると推測される
236: (ワッチョイ ffe3-jrG3) 2021/06/29(火)02:12 ID:rKmBEHbB0(5/5) AAS
$ sudo apt update
取得:1 外部リンク:security.debian.org bullseye-security InRelease [44.1 kB]
取得:2 外部リンク:deb.debian.org bullseye InRelease [150 kB]
取得:3 外部リンク:security.debian.org bullseye-security/main Sources [780 B]
取得:4 外部リンク:security.debian.org bullseye-security/main i386 Packages [808 B]
取得:5 外部リンク:security.debian.org bullseye-security/main amd64 Packages [812 B]
取得:6 外部リンク:security.debian.org bullseye-security/main Translation-en [596 B]
取得:7 外部リンク:deb.debian.org bullseye-updates InRelease [40.1 kB]
取得:8 外部リンク:deb.debian.org bullseye-backports InRelease [37.0 kB]
274 kB を 2秒 で取得しました (157 kB/s)
省6
237: (ワッチョイ 3f7e-BQ0L) 2021/06/29(火)03:33 ID:Us3V6ji+0(2/6) AAS
>>235
推測と言うか追加で書いてあげてるし
238: (オッペケ Sra3-teAF) 2021/06/29(火)04:02 ID:Fg6INBCWr(1) AAS
今ってdist-upgradeじゃなくてもアップグレード出来るの?
239(1): (ワッチョイ ffe3-jrG3) 2021/06/29(火)07:55 ID:PnMDKyyv0(1/19) AAS
>>231
> >>228
> もう1か所置換必要箇所があったわ
> $ sudo sed -i 's/bullseye\/updates/bullseye-security/' /etc/apt/sources.list
このコマンドが何をしてるかちんぷんかんぷんで最初おまじない状態でした。内容をある程度把握しないといけない。
1,
sed でググってなんとなく分かった。
2,
's/bullseye\/updates/bullseye-security/'
この部分の変更の由来はなにか?把握しようとした。
省14
240(1): (ワッチョイ ffe3-jrG3) 2021/06/29(火)08:01 ID:PnMDKyyv0(2/19) AAS
bullseye/updates を bullseye-security に置換だという答えは15分ググっても発見できませんでした
241: (ワッチョイ 3f7e-BQ0L) 2021/06/29(火)08:22 ID:Us3V6ji+0(3/6) AAS
>>240
busterからbullseyeにアップグレードする手順に書いてあるよ
第4章 Debian 10 (buster) からのアップグレード
外部リンク[html]:www.debian.org
これ以降つまずくまでこの文献に従っていれば大丈夫
正直言うとbuster->bullseye/sid->bullseyeと言う過程を辿る上でほぼテケトーな自己流だったので
胡散臭いおれより公式先生の言う事を聞いた方が間違いが無いでしょう
242: (ワッチョイ ffe3-jrG3) 2021/06/29(火)17:22 ID:PnMDKyyv0(3/19) AAS
5.1.3. レポジトリのセキュリティに関するアーカイブ構成が変更されます
bullseye では buster/updates から bullseye-security に変更されます。OS のアップグレード時に、ユーザが自分で APT のファイルのソースリストを更新してください。
例えば APT のセキュリティのソースラインは、以下のようになります。
deb 外部リンク:deb.debian.org bullseye-security main contrib
上下前次1-新書関写板覧索設栞歴
あと 581 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.015s