我在 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.
我使用了以下命令-
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/