お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。
  • インデックス
  •  » 初心者サポート
  •  » ARM用のパッケージの取得先を国内ミラーサーバーに変更すると、sudo apt update実行時に一部ファイルが見つからない。

#1 2022-01-30 15:27:33

ken025
新しいメンバ
登録日: 2022-01-30

ARM用のパッケージの取得先を国内ミラーサーバーに変更すると、sudo apt update実行時に一部ファイルが見つからない。

ARM用のクロスコンパイル環境を作るために、sources.listにports.ubuntu.comを追加しているのですが、
国内のミラーサーバーに変更したところ、sudo apt updateを実行したときに一部ファイルが見つからなくなります。
解決策をお持ちの方はいらっしゃいますか?

実行環境:Ubuntu 20.04 LTS x86_64 (Windows10 WSL)

コード:

deb [arch=amd64] http://jp.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb [arch=amd64] http://jp.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb [arch=amd64] http://jp.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb [arch=amd64] http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse

deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-backports main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted universe multiverse

こちらは正常に動作します。

コード:

deb [arch=amd64] http://jp.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb [arch=amd64] http://jp.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb [arch=amd64] http://jp.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb [arch=amd64] http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse

deb [arch=arm64] http://jp.archive.ubuntu.com/ubuntu-ports/ focal main restricted universe multiverse
deb [arch=arm64] http://jp.archive.ubuntu.com/ubuntu-ports/ focal-updates main restricted universe multiverse
deb [arch=arm64] http://jp.archive.ubuntu.com/ubuntu-ports/ focal-backports main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted universe multiverse

こちらは

コード:

E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu-ports/dists/focal/main/cnf/Commands-amd64  404  Not Found [IP: 160.26.2.187 80]
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu-ports/dists/focal-updates/main/cnf/Commands-amd64  404  Not Found [IP: 160.26.2.187 80]
E: Failed to fetch http://jp.archive.ubuntu.com/ubuntu-ports/dists/focal-backports/main/cnf/Commands-amd64  404  Not Found [IP: 160.26.2.187 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

とエラーが出ます。

オフライン

 
  • インデックス
  •  » 初心者サポート
  •  » ARM用のパッケージの取得先を国内ミラーサーバーに変更すると、sudo apt update実行時に一部ファイルが見つからない。

Board footer

Powered by FluxBB