![安装 Arc 主题时,我错误地将单词“deb”输入为“dep”,现在出现了错误](https://linux22.com/image/1054418/%E5%AE%89%E8%A3%85%20Arc%20%E4%B8%BB%E9%A2%98%E6%97%B6%EF%BC%8C%E6%88%91%E9%94%99%E8%AF%AF%E5%9C%B0%E5%B0%86%E5%8D%95%E8%AF%8D%E2%80%9Cdeb%E2%80%9D%E8%BE%93%E5%85%A5%E4%B8%BA%E2%80%9Cdep%E2%80%9D%EF%BC%8C%E7%8E%B0%E5%9C%A8%E5%87%BA%E7%8E%B0%E4%BA%86%E9%94%99%E8%AF%AF%20.png)
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_15.10/ /' >> /etc/apt/sources.list.d/arc-theme.list"
sudo apt-get update
sudo apt-get install arc-theme
此后,我在 Synaptic 中收到此错误:
E: Type 'dep' is not known on line 1 in source list /etc/apt/sources.list.d/arc-theme.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.
我甚至无法进行任何更新。
答案1
打开终端并输入:
gksu gedit /etc/apt/sources.list.d/arc-theme.list
这将在 gedit 中打开该文件。
找到 ( Ctrl+ F) 包含该条目的行dep
并将其删除。
保存文件并关闭 gedit。然后尝试再次更新。