当我想安装docker时,我得到了这个
N: Ignoring file 'backports.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listyy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'backports.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listyy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Package 'docker.io' has no installation candidate
N: Ignoring file 'backports.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listyy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'backports.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listyy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Package 'docker.io' has no installation candidate
N: Ignoring file 'backports.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listyy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'backports.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listyy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Package 'docker.io' has no installation candidate
N: Ignoring file 'backports.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listyy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'backports.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listyy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Package 'docker.io' has no installation candidate
N: Ignoring file 'backports.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listyy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'backports.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listyy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Package 'docker.io' has no installation candidate
N: Ignoring file 'backports.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listyy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'backports.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listyy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'docker.listy' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Package 'docker.io' has no installation candidate
答案 0 :(得分:0)
首先,您的/etc/apt/sources.list.d/
中包含以下文件,文件扩展名为.listy
或.listyy
。两者都无效,它们应该是.list
或文件不应该在那里。
backports.listy
docker.listyy
docker.listy
backports.listy
docker.listyy
docker.listy
首先来自哪里,你做过教程还是其他什么?你可以提供内容,所以我可以猜到你为什么会这样做。因为看起来你想从特定的存储库获取docker,因此他们的名字。
第二个错误是E: Package 'docker.io' has no installation candidate
,它想告诉您包管理器不知道此包。如果您配置了存储库,请执行apt-get update
。然后你应该能够从这些人那里获得码头。
另外,下次请格式化您的文字并提供更具体的信息。例如'你实际运行了什么命令?'和'你之前做过什么,关于你的任务?(即创建listyy文件等)'