まず、このエラーに関連する以前の質問をすべて調べましたが、何も機能しませんでした。以下はSudo apt-get update
の私の出力です:
古い投稿の後、sources.list
ファイル全体を変更することになりました。
Get:1 http://archive.canonical.com/ubuntu xenial InRelease [3,537 B]
Err:1 http://archive.canonical.com/ubuntu xenial InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [3,534 B]
Err:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [3,542 B]
Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [3,544 B]
Err:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:5 http://archive.ubuntu.com/ubuntu xenial-security InRelease [3,543 B]
Err:5 http://archive.ubuntu.com/ubuntu xenial-security InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://archive.canonical.com/ubuntu xenial InRelease' is not signed.
E: Failed to fetch http://archive.canonical.com/ubuntu/dists/xenial/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://archive.ubuntu.com/ubuntu xenial-updates InRelease' is not signed.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://archive.ubuntu.com/ubuntu xenial-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-security/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://archive.ubuntu.com/ubuntu xenial-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
残念ながら、問題は大学のネットワークにありました。電話のホットスポットを使用しましたが、うまくいきました。 "驚くばかり"
16.04から18.04へのアップグレードがソースリストを台無しにしているようです。 /etc/apt/sources.list
ファイルの既存の内容を次の行に置き換えます。競合を避けるため、/etc/apt/sources.list.d/
にある既存の他のソースリストをバックアップおよび削除します。
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### Ubuntu Main Repos
deb http://in.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
###### Ubuntu Update Repos
deb http://in.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
Sudo apt update
を実行します。問題を解決する必要があります。
このコマンドを使用して、ubuntuコードネームを見つけます
lsb_release -a
次に、リポジトリリストを編集し、次を使用してそのコード名のリンクをコメント解除します。
Sudo nano /etc/apt/sources.list
Sudo apt-get update
を確認してください