
コマンドを実行するたびに、sudo apt-get update
次sudo apt upgrade
のエラーメッセージが表示されます。
W: The repository 'https://download.sublimetext.com apt/stable/ Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://download.sublimetext.com/apt/stable/Packages server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Some index files failed to download. They have been ignored, or old ones used instead.
私は仮想マシン(virtualbox)で作業しています。
答え1
ファイルがsources.list
欠落しているか編集されている可能性があります。 Aptおよび関連プログラムはこのファイルを使用してソフトウェアパッケージをダウンロードする場所を決定します。デフォルトでは、このファイルは /etc/apt/sources.list
。
以下にファイルの基本内容が含まれています。sources.list
以下はバージョン16.04と同様ここ。
で始まる各行は、deb
aptがバイナリパッケージを取得するために使用するppa /ストアを指します。インベントリファイルの各行の直下には別の行が必要です。この行はほぼ同じように見えますがdeb-src
。apt source
この行は一緒に内容を提供しますapt-cache
。 NET Frameworkを実行したときにsudo apt update
Aptキャッシュが更新するエンドポイント。コンテンツをダウンロードするためにaptを使用する場合、コンテンツのソースはここにあります。
#deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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://us.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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://us.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
diff
ファイルとして保存して現在のものと比べてみるとsources.list
違いがあるのではないかと思います。提供された情報によると、あなたのコピーに以下を参照する行があるようです。https://download.sublimetext.com/apt/stable/Packages
。エラーを修正する最も簡単な方法は、その行を見つけてハッシュタグ('#')行の先頭まで。何らかの理由でこのリポジトリをアクティブにする必要がある場合は、アップグレード後にハッシュタグを削除してこの手順をキャンセルできます。 (aptをアップグレードするときにアップグレードがファイルを書き換えないとします。)ファイルの「deb」または「deb-src」行の場合。
保存したら、次を実行する必要があります。
sudo apt-get update
変化がわかりやすくなります。このファイルで行った変更も同様です。
それでも機能しない場合は、以下を追加することをお勧めします。'#'まだない各行の先頭に移動し、その下に上のインベントリコンテンツをコピーしてすぐ下に貼り付けます。
これにより、ppaがデフォルト設定に復元され、アップグレードコマンドが変更されます。気づく