【问题标题】:"sudo apt-get update" fails reading broken source“sudo apt-get update”无法读取损坏的源代码
【发布时间】:2016-11-14 17:00:29
【问题描述】:

在亚马逊 EC2 上运行的 Ubuntu 14.04 系统上安装启用 GPU 的 TensorFlow 时,我遵循了以下步骤:

sudo dpkg -i cuda-repo-ubuntu1404-8-0-local_8.0.44-1_amd64.deb
sudo apt-get update
sudo apt-get install cuda

tar xvzf cudnn-8.0-linux-x64-v5.1-ga.tgz
sudo cp -P cuda/include/cudnn.h /usr/local/cuda/include
sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda/lib64
sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*

但是,在运行命令sudo apt-get update 时会显示以下错误消息

Err http://deb.paissad.net unstable/main Sources
 Unable to connect to deb.paissad.net:http: [IP: 176.9.119.9 80]
...
...
...
W: Failed to fetch http://plex.r.worldssl.net/PlexMediaServer/ubuntu-repo/dists/lucid/main/i18n/Translation-en  Could not resolve 'plex.r.worldssl.net' [IP: 176.9.119.9 80]

W: Some index files failed to download. They have been ignored, or old ones used instead.
W: Duplicate sources.list entry http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main amd64 Packages (/var/lib/apt/lists/ppa.launchpad.net_webupd8team_java_ubuntu_dists_trusty_main_binary-amd64_Packages)

因此我无法成功安装 CUDA 和 cuDNN。

是否有可能我的 etc/apt/sources/list 已损坏,导致无法连接到少数来源?我可以恢复原来的 sources.list 吗?

有人可以帮我解决这个问题吗?

【问题讨论】:

    标签: ubuntu nvidia


    【解决方案1】:

    这个错误实际上与 tensorflow 没有任何关系。

    还有其他关于如何在ubuntu中重置sources.list的详细链接。

    例如,请参阅here

    虽然只是从已经使用 tensorflow 设置的亚马逊 ec2 实例开始,但更容易。或者,按照在线众多指南之一在 EC2 上安装它,例如 herehere

    【讨论】:

    • 我尝试通过导航到https://repogen.simplylinux.ch. 来重置sources.list 并生成sources.list。但是在运行sudo apt-get update 命令时,会显示相同的错误
    • 命令在Err http://deb.paissad.net unstable/main Sources Unable to connect to deb.paissad.net:http: [IP: 176.9.119.9 80]中断
    • 它仍在读取您可以禁用的断开链接。
    【解决方案2】:

    通过从 sources.list 文件中删除所有损坏的链接,问题得到解决,sudo apt-get update 和 sudo-apt-get upgrade 正常工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-16
      • 1970-01-01
      • 2019-10-05
      • 1970-01-01
      • 1970-01-01
      • 2016-07-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多