apt get update 缺少发布文件

每次我执行apt-get-update命令后,都会收到这些错误信息:
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/ubuntu-audio-dev/ppa/ubuntu 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.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://dl.google.com/linux/chrome/deb stable InRelease' doesn't support architecture 'i386'
E: Failed to fetch http://ppa.launchpad.net/ubuntu-audio-dev/ppa/ubuntu/dists/xenial/main/binary-i386/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

我读到一篇帖子说应该更改/etc/apt/sources.list的内容(见下文)。哪些行需要注释掉?
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)]/ oneiric main restricted

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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://gb.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://gb.archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial universe
deb http://gb.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://gb.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://gb.archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://gb.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://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://gb.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
```

编辑: sources.list.d 的内容:

brightbox-ruby-ng-trusty.list
brightbox-ruby-ng-trusty.list.save
danielrichter2007-grub-customizer-precise.list
danielrichter2007-grub-customizer-precise.list.distUpgrade
danielrichter2007-grub-customizer-precise.list.save
google-chrome.list
google-chrome.list.distUpgrade
google-chrome.list.save
heroku.list
heyarje-libav-11-trusty.list
inkscape_dev-stable-trusty.list
inkscape_dev-stable-trusty.list.save
maarten-baert-simplescreenrecorder-trusty.list
maarten-baert-simplescreenrecorder-trusty.list.save
megasync.list
megasync.list.distUpgrade
megasync.list.save
ondrej-php-trusty.list
ondrej-php-trusty.list.save
oneiric-partner.list
oneiric-partner.list.distUpgrade
oneiric-partner.list.save
spring-ppa-trusty.list
spring-ppa-trusty.list.save
thomas_tsai-ubuntu-tuxboot-trusty.list
thomas_tsai-ubuntu-tuxboot-trusty.list.save
webupd8team-java-trusty.list
webupd8team-java-trusty.list.save

1为什么你的sources.list文件中有oneiric(ubuntu 11.10)? - user439193
可能是因为我升级了? - JohnnyBizzle
尝试使用命令grep audio-dev /etc/apt/sources.list.d/*来查找它是哪个文件。 - Gunnar Hjalmarsson
1个回答

我已经通过添加这些ppa进行了测试,并且也显示出了您遇到的相同错误。
W: The repository 'http://ppa.launchpad.net/ubuntu-audio-dev/ppa/ubuntu 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://ppa.launchpad.net/ubuntu-audio-dev/ppa/ubuntu/dists/xenial/main/binary-i386/Packages  404  Not Found

如果你访问他们的launchpad ppa页面,你会发现ppa在13.10(Saucy Salamander)已经不再可用,导致了404 Not Found错误。

enter image description here

为了消除错误,只需删除ppa即可。
sudo add-apt-repository --remove ppa:ubuntu-audio-dev/ppa
sudo apt-get update
sudo apt-key del 72B194E5

更新

对于“没有可用的公钥”错误,在终端上运行以下命令:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1397BC53640DB551

对于 Google Chrome 的“在 Release 文件中”错误,请按照以下步骤操作:
  1. 打开一个新的终端窗口并运行以下命令:

    sudo gedit /etc/apt/sources.list.d/google-chrome.list
    
  2. 在打开的文本文件中编辑该文件,使得该行读作:

    deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
    
  3. 点击保存。关闭Gedit窗口。

来源


完成。现在在执行apt-get update之后,我得到以下错误信息: `W: 无法获取以下密钥ID的公钥: 1397BC53640DB551 W: 无法从http://dl.google.com/linux/chrome/deb/dists/stable/Release下载文件。在Release文件中找不到预期的条目'main/binary-i386/Packages'(源列表条目错误或文件格式错误)E: 一些索引文件下载失败。它们已被忽略,或者使用旧版本代替。` 我尝试删除您指定的密钥和此处提到的密钥。 - JohnnyBizzle
@JohnnyBizzle 已编辑完成。 - Liso