22.04.3 LTS(Jammy Jellyfish)およびapt-getソース

22.04.3 LTS(Jammy Jellyfish)およびapt-getソース

私は新しいLinuxユーザーであり(申し訳ありません)、Ubuntu 22.04.3 LTSをインストールしました。更新パッケージを更新しようとしてsudo apt-get updateエラーが発生した場合。ここで正確に何が間違っているのか、何を手動で修正する必要があるのか​​、何が一般的に自動的に処理されるのか混乱しています。 (サーバーはとても新しいです。)

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ...

提示を解いてほしいという要求をいくつか発見しました。私はこれが私が経験しているエラーに関連していると思います。 Jessieは古いディストリビューションなので、私のソースリストがなぜこのように見えるのかわかりません。

Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Ign:4 http://archive.debian.org/debian jessie InRelease
Get:5 http://archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:6 http://archive.debian.org/debian jessie Release [148 kB]
Get:7 http://archive.debian.org/debian jessie Release.gpg [2,420 B]
Ign:7 http://archive.debian.org/debian jessie Release.gpg

私の質問が十分に具体的であることを願っています。私はここで多くの新しい技術に触れていますが、この問題の原因と解決策を正確に見つけることは困難です。

編集:あなたの中には、私のsource.listがどのように複雑になったのか疑問に思っています。私もこれがおかしいと思いますが、私だけそう思うのではなくて幸いですね。これがサーバーが渡される方法です。以前、誰かがどこで混乱したのかわかりません。

これはフルバージョンです。/etc/apt/sources.list

deb http://archive.debian.org/debian jessie main
#deb http://security.debian.org/debian-security jessie/updates main
#deb http://deb.debian.org/debian jessie-updates main

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu jammy main restricted
# deb-src http://archive.ubuntu.com/ubuntu focal main restricted

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

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu jammy universe
# deb-src http://archive.ubuntu.com/ubuntu focal universe
deb http://archive.ubuntu.com/ubuntu jammy-updates universe
# deb-src http://archive.ubuntu.com/ubuntu focal-updates 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://archive.ubuntu.com/ubuntu jammy multiverse
# deb-src http://archive.ubuntu.com/ubuntu focal multiverse
deb http://archive.ubuntu.com/ubuntu jammy-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu focal-updates multiverse

## 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://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse


deb http://archive.ubuntu.com/ubuntu jammy-security main restricted
# deb-src http://archive.ubuntu.com/ubuntu focal-security main restricted
deb http://archive.ubuntu.com/ubuntu jammy-security universe
# deb-src http://archive.ubuntu.com/ubuntu focal-security universe
deb http://archive.ubuntu.com/ubuntu jammy-security multiverse
# deb-src http://archive.ubuntu.com/ubuntu focal-security multiverse

ベストアンサー1

はい、対応するsource.listは意味がなく、何の利点も提供しません。

Debian は Ubuntu と同じではないので、Debian パッケージは Ubuntu でまったく実行されないか、さらに悪いことに Ubuntu を壊す可能性があります。したがって、Debian パッケージソースを source.list に含めることは当初意味がありません。

別の理解できない点は、Ubuntu jammyまたはFocusが現れる前にDebian Jessieが死んだということです(「寿命の終わり」)。

これは、誰かがあなたのsource.listに数十年のDebianリポジトリを追加したようです。そこにあるすべてのパッケージはUbuntuフォーカスリポジトリにあるよりも古いため、Debianリポジトリが次のパッケージを使用してキーに署名するまで問題はありませんでした。期限切れです。

飛行前にサーバーを運営している人が次の原則に従うことは良い信号です。理解できず、元に戻すこともできません。」

簡単に言うと:最も単純な長期的には、新しいUbuntu Jammyを設定し、その過程で既存のシステムを削除するという問題かもしれません。サーバーを正しく設定してください。処理するデータは自動的にバックアップされ、そのサーバーで実行する必要があるカスタムサーバーアプリケーションが何であるかがわかります。
残念ながら、このサーバーは不可能だと思います。正しい設定、これらの機能をさらに分散させ、以前のサーバーで何が必要かを知る必要があります。 (以前にサーバーで行ったことが必要ない場合は、ここで停止してください。新規インストールしてください。不要なシステムを修理してアップグレードしても利点はありません。新しいUbuntuサーバーをインストールする方がはるかに簡単です。)

このサーバーをそのまま実行する必要がある場合は、source.listから「debian」という単語を含むすべての行を削除してください。これにより、「フォーカス」を参照するすべての行を削除することもできます(すでにコメントアウトされているようです)。

おすすめ記事