linux - 如何修复 "E: The list of sources could not be read"无法读取错误?

标签 linux lamp ubuntu-16.04 webmin

我在 etc/apt/sources.list.d/webmin.list 中添加了这两行

 `deb http://download.webmin.com/download/repository sarge contribdeb`
 `http://download.webmin.com/download/repository sarge contrib`

现在,在运行“sudo apt-get update”时,出现以下错误:

 1. E: Type 'http://download.webmin.com/download/repository' is not known on  
    line 2 in source list /etc/apt/sources.list.d/webmin.list.
 2. E: The list of sources could not be read

提前致谢!!

最佳答案

我也遇到了这个错误:

sudo apt-get update 
E: Type 'mongodb-org/4.2' is not known on line 2 in source list /etc/apt/sources.list.d/mongodb-org-4.2.list
E: The list of sources could not be read.

我使用了以下命令-

  1. ls/etc/apt/sources.list.d/ 你可以看到你所有的 .list 文件,如 ls /etc/apt/sources.list.d/getdeb.list openjdk-r-ppa-trusty.list mongodb-org-4.2.list pcf-miro-releases-trusty.list nginx.list webupd8team-java-trusty.list

选择其中一个有问题并使用以下命令删除 2. sudo rm -r/etc/apt/sources.list.d/mongodb-org-4.2.list

关于linux - 如何修复 "E: The list of sources could not be read"无法读取错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42410134/

相关文章:

c - 在 Linux 中实用地检测缓存未命中和命中

linux - Tickless Linux 内核是否会引入基准时序变化?

linux - 每 30 分钟运行一次脚本 bash

linux - ARM v7 BKPT 指令在 Linux 2.6.35 上无法正常工作

python - ansible 剧本 : the python mysqldb module is required 出错

json - 使用 AWS CloudFormation 启动具有最新 Apache 和 PHP 的 AutoScaling 服务器?

php - 模拟域的最佳方法?

MySql数据库和qt

java - 如何配置JDK环境路径不是JRE?

python - Tensorflow:__new__() 在对象检测 API 中得到了一个意外的关键字参数 'serialized_options'