LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to Fix Error ¨The list of sources could not be read.¨ (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-fix-error-%A8the-list-of-sources-could-not-be-read-%A8-4175645154/)

Hera314 12-29-2018 02:31 AM

How to Fix Error ¨The list of sources could not be read.¨
 
Hi there i wonder if anyone could help out with this query?

I accidentally managed to delete my software source now when I run the command line

sudo apt-get update I get the following error line.

E: Type ‘sudo’ is not known on line 1 in source list /etc/apt/sources.list
E: The list of sources could not be read.


Any help would be greatly appreciated.

Thanks.

berndbausch 12-29-2018 05:40 AM

Start by checking what’s in line 1 of /etc/apt/sources.list.

pan64 12-29-2018 05:45 AM

https://askubuntu.com/questions/1240...t-repositories

hydrurga 12-29-2018 07:21 AM

Can you paste the output from the following command so that we can have a look at your software sources. Many thanks.

Code:

for i in /etc/apt/sources.list{,.d/*}; do echo file: $i; cat $i; echo ====; done
I would also suggest that, due to the diversity of Linux distros, you also tell us which Linux distro (and version) you are using. That will allow folk to give you better-targetted advice.


All times are GMT -5. The time now is 03:58 AM.