我继承了一台运行 Ubuntu 16.04 LTS 的 AWS EC2。我正尝试在 livepatch 和 esm-infra 上注册它。Livepatch 可以运行,但我无法启用 esm-infra,也无法运行apt-get update
:
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:4 http://deb.goaccess.io xenial InRelease
Ign:5 http://deb.goaccess.io xenial Release
Ign:6 http://deb.goaccess.io xenial/main amd64 Packages
Ign:7 http://deb.goaccess.io xenial/main all Packages
Ign:8 http://deb.goaccess.io xenial/main Translation-en_US
Ign:9 http://deb.goaccess.io xenial/main Translation-en
Ign:6 http://deb.goaccess.io xenial/main amd64 Packages
Ign:7 http://deb.goaccess.io xenial/main all Packages
Ign:8 http://deb.goaccess.io xenial/main Translation-en_US
Hit:10 http://ppa.launchpad.net/certbot/certbot/ubuntu xenial InRelease
Hit:11 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:9 http://deb.goaccess.io xenial/main Translation-en
Ign:6 http://deb.goaccess.io xenial/main amd64 Packages
Hit:12 https://esm.ubuntu.com/infra/ubuntu xenial-infra-security InRelease
Ign:7 http://deb.goaccess.io xenial/main all Packages
Ign:8 http://deb.goaccess.io xenial/main Translation-en_US
Hit:13 https://esm.ubuntu.com/infra/ubuntu xenial-infra-updates InRelease
Ign:9 http://deb.goaccess.io xenial/main Translation-en
Ign:6 http://deb.goaccess.io xenial/main amd64 Packages
Ign:7 http://deb.goaccess.io xenial/main all Packages
Ign:8 http://deb.goaccess.io xenial/main Translation-en_US
Ign:9 http://deb.goaccess.io xenial/main Translation-en
Ign:6 http://deb.goaccess.io xenial/main amd64 Packages
Ign:7 http://deb.goaccess.io xenial/main all Packages
Ign:8 http://deb.goaccess.io xenial/main Translation-en_US
Ign:9 http://deb.goaccess.io xenial/main Translation-en
Ign:6 http://deb.goaccess.io xenial/main amd64 Packages
Ign:7 http://deb.goaccess.io xenial/main all Packages
Ign:8 http://deb.goaccess.io xenial/main Translation-en_US
Ign:9 http://deb.goaccess.io xenial/main Translation-en
Err:6 http://deb.goaccess.io xenial/main amd64 Packages
404 Not Found
Hit:14 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Ign:7 http://deb.goaccess.io xenial/main all Packages
Ign:8 http://deb.goaccess.io xenial/main Translation-en_US
Ign:9 http://deb.goaccess.io xenial/main Translation-en
Reading package lists... Done
W: The repository 'http://deb.goaccess.io xenial 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 http://deb.goaccess.io/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
我已经更新了 /etc/resolv.conf 以添加 8.8.8.8 和 8.8.4.4,但没成功。下面/etc/apt/sources.list
我没有看到任何异常。任何帮助都将不胜感激。谢谢。
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
## or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://us-east-1.ec2.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-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial universe
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://us-east-1.ec2.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-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://us-east-1.ec2.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-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
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
## 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
答案1
是的,我知道 16.04 LTS 超出了标准支持范围,我的问题的重点是它无法启用 esm-infra,因为它无法通过 apt-get 更新。无论如何,我发现这个盒子上安装了 goaccess,并且goaccess.list
找到了文件,该文件/etc/apt/sources.list.d
否决了存储库并导致文件未找到错误。无论如何,卸载 goaccess 解决了这个问题。
sudo apt-get remove goaccess
我会把这个留在这里,以防其他人遇到这个问题,这就是解决方案。干杯。
编辑:goaccess,而不是geoaccess。哈哈。