![Ubuntu 更新问题 | 16.04;无法完成更新](https://linux22.com/image/887569/Ubuntu%20%E6%9B%B4%E6%96%B0%E9%97%AE%E9%A2%98%20%7C%2016.04%EF%BC%9B%E6%97%A0%E6%B3%95%E5%AE%8C%E6%88%90%E6%9B%B4%E6%96%B0.png)
每当我跑步时:
sudo apt-get update
我收到以下消息:
W: The repository 'cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) 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.
W: The repository 'ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/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 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)/dists/xenial/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
E: Failed to fetch cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)/dists/xenial/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
E: Failed to fetch ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/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.
我用了
sudo nano /etc/apt/sources.list
并注释或删除包含 cdrom 的行。例如:
deb cdrom:[Ubuntu-Server 16.04 LTS Xenial Xerus - Release amd64 (20160420.3)]/ xenial main restricted>
我可以将其删除。当我运行时sudo apt-get update
,收到下面的错误消息。
W: The repository 'http://ppa.launchpad.net/ubuntu-on-rails/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-on-rails/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.
有人能解释一下吗?非常感谢。