0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Debian(VirtualBox)でapt updateしたら接続失敗した[雑記]

Last updated at Posted at 2023-11-03

まえがき

久しぶりに起動して、パケをアプデすることに
apt updateapt upgradeの流れでやるらしい
「接続失敗」「接続失敗」「接続失敗」・・・

筆者の半年に一回の恒例行事「でびあん君修復作業」
今回は事後報告なのでエラーの状況はもう残ってない
役に立ったら♥️をお願いします。

目次

1.御託
2.原因と解決
3.最後に

1.御託

ホストOS:Windows11
ゲストOS:Debian 11(bullseye)
仮想化ソフト:VirtualBox

2.原因と解決

[原因]
/etc/apt/sources.list内のパッケージをとってくるURLがおかしかった(憶測)
[解決]
/etc/apt/sources.list内のURLを書き換えた

参考元:

あんま関係ないけど古いパッケージの削除に使った

# before(抜粋)
# /etc/apt/sources.list の中身

deb http://ftp.kddilabs.jp/pub/debian/ bullseye main
deb-src http://ftp.kddilabs.jp/pub/debian/ bullseye main

deb http://security.debian.org/debian-security bullseye-security main
deb-src http://security.debian.org/debian-security bullseye-security main

deb http://ftp.kddilabs.jp/pub/debian/ bullseye-updates main
deb-src http://ftp.kddilabs.jp/pub/debian/ bullseye-updates main
# after(抜粋)
# /etc/apt/sources.list の中身

# deb http://ftp.kddilabs.jp/pub/debian/ bullseye main contrib
# deb-src http://ftp.kddilabs.jp/pub/debian/ bullseye main contrib
deb http://deb.debian.org/debian/ bullseye main contrib
deb-src http://deb.debian.org/debian/ bullseye main contrib

deb http://security.debian.org/debian-security bullseye-security main  contrib
deb-src http://security.debian.org/debian-security bullseye-security main contrib

# deb http://ftp.kddilabs.jp/pub/debian/ bullseye-updates main contrib
# deb-src http://ftp.kddilabs.jp/pub/debian/ bullseye-updates main contrib
deb http://deb.debian.org/debian/ bullseye-updates main contrib
deb-src http://deb.debian.org/debian/ bullseye-updates main contrib

3.終わりに

結局http://ftp.kddilabs.jp/pub/debian/ ってなんなんだよ!
なんでhttp://deb.debian.org/debian/ に差し替えたら解決したんだよ!!!
まあ接続失敗出さずに全部更新し終わったのでヨシ!!!!!

役に立ったら♥️お願いします。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?