[英]How to retrieve the missing file sources.list in Ubuntu 14.04?
I am getting error message as specified below in Ubuntu 14.04: 我在Ubuntu 14.04中收到以下指定的错误消息:
WARNING:root:could not open file '/etc/apt/sources.list'
I am not sure whether i deleted it or it got damaged because of installations. 我不确定是否删除了它,或者由于安装而损坏了它。
When i try to list out the directory /etc/apt
当我尝试列出目录/etc/apt
I can still see sources.list.d
and sources.list.save
except sources.list
which is missing. 我仍然可以看到sources.list.d
和sources.list.save
但缺少sources.list
。
So is it possible to retrieve sources.list
from the available 2 files in the directory? 那么可以从目录中的可用2个文件中检索sources.list
吗?
Just rename sources.list.save
to sources.list
. 只需将sources.list.save
重命名为sources.list
。 sources.list.save
is a backup file for sources.list
. sources.list.save
是一个备份文件sources.list
。 If the sources.list
file got deleted accidentally, you may use the contents inside the sources.list.save
file but the file name must be sources.list
so that Ubuntu would take this file. 如果sources.list
文件被意外删除,则可以使用sources.list.save
文件中的内容,但文件名必须为sources.list
以便Ubuntu可以使用此文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.