apt-get update 不起作用 + ubuntu 32 位与 64 位

apt-get update 不起作用 + ubuntu 32 位与 64 位

我是 Linux 平台的新手。请在完整阅读之前不要将此问题标记为重复。!

我的系统在处理器上运行intel i5,我最近安装的操作系统是64-bit Ubuntu 13.10。我必须安装一组库才能使我的 android 开发工具 ( ADT) 正常运行。一切都从我的系统和开发环境的 linux 化开始!

这是链接我为此提起了诉讼。

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install ia32-libs 

我还使用了加速 Ubuntu 13.10 的技巧

但是,每当我执行时 sudo apt-get update,它都会多次重复显示以下警告信息。

W: Failed to fetch cdrom://Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)/dists/saucy/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    
W: Failed to fetch cdrom://Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)/dists/saucy/restricted/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    
W: Failed to fetch cdrom://Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)/dists/saucy/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    
W: Failed to fetch cdrom://Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)/dists/saucy/restricted/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    
W: Failed to fetch cdrom://Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)/dists/saucy/main/binary-i586/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs    
W: Failed to fetch cdrom://Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)/dists/saucy/restricted/binary-i586/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs    
W: Failed to fetch cdrom://Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)/dists/saucy/main/binary-i686/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs    
W: Failed to fetch cdrom://Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)/dists/saucy/restricted/binary-i686/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs    
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i586/Packages' in Release file (Wrong sources.list entry or malformed file)    
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/saucy/Release  Unable to find expected entry 'partner/binary-i586/Packages' in Release file (Wrong sources.list entry or malformed file)    
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/saucy/Release  Unable to find expected entry 'main/binary-i586/Packages' in Release file (Wrong sources.list entry or malformed file)    
W: Failed to fetch http://ppa.launchpad.net/appgrid/stable/ubuntu/dists/saucy/Release  Unable to find expected entry 'main/binary-i586/Packages' in Release file (Wrong sources.list entry or malformed file)    
W: Failed to fetch http://ppa.launchpad.net/apt-fast/stable/ubuntu/dists/saucy/Release  Unable to find expected entry 'main/binary-i586/Packages' in Release file (Wrong sources.list entry or malformed file)    
W: Failed to fetch http://ppa.launchpad.net/linrunner/tlp/ubuntu/dists/saucy/Release  Unable to find expected entry 'main/binary-i586/Packages' in Release file (Wrong sources.list entry or malformed file)    
W: Failed to fetch http://ppa.launchpad.net/webupd8team/unstable/ubuntu/dists/saucy/Release  Unable to find expected entry 'main/binary-i586/Packages' in Release file (Wrong sources.list entry or malformed file)    
W: Failed to fetch ftp://ftp.iitb.ac.in/distributions/ubuntu/archives/dists/saucy/Release  Unable to find expected entry 'main/binary-i586/Packages' in Release file (Wrong sources.list entry or malformed file)    
W: Failed to fetch ftp://ftp.iitb.ac.in/distributions/ubuntu/archives/dists/saucy-updates/Release  Unable to find expected entry 'main/binary-i586/Packages' in Release file (Wrong sources.list entry or malformed file)    
W: Failed to fetch ftp://ftp.iitb.ac.in/distributions/ubuntu/archives/dists/saucy-security/Release  Unable to find expected entry 'main/binary-i586/Packages' in Release file (Wrong sources.list entry or malformed file)    
E: Some index files failed to download. They have been ignored, or old ones used instead.

我尝试使用此论坛中要求编辑文件的各种答案来解决问题。但我的 sources.list 文件中sources.list没有这些内容 ( )。binary-i686 or binary-i586

有人能帮我解决这个问题吗?请不要忘记用命令回答,因为我对此知之甚少linux terminal commands!!

答案1

打开sources.list文件,

sudo gedit /etc/apt/sources.list

删除上面提到的行。然后保存文件。

对于导致错误的 PPA,您还必须从/etc/apt/sources.list.d目录中删除该 PPA 文件。

之后运行以下命令更新存储库:

sudo apt-get update

相关内容