W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://in.archive.ubuntu.com trusty Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <[email protected]>
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg Bad header line [IP: 216.58.197.46 80]"
W: Failed to fetch "http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages 404 Not Found [IP: 216.58.197.46 80]"
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/Release
W: Some index files failed to download. They have been ignored, or old ones used instead.
如何纠正这个错误
答案1
您需要编辑您的文件以指向http://
而不是http//
。
首先,运行以下命令来修复您的sources.list
:
sudo sed -i 's|http/|http:/|g' /etc/apt/sources.list
然后,运行以下命令修复您的 google-chrome.list:
sudo sed -i s|http/|http:/|g' /etc/apt/sources.list.d/google-chrome.list
最后运行以下命令进行更新apt-get
:
sudo apt-get update