Page 1 of 1

Synaptic and Repos produce errors (Solved)

Posted: Thu Aug 21, 2014 4:56 am
by Chrisnz
Running LM17 with 'mate'

I have had a few updates but then they stopped and when I tried to add some software from Synaptics I get the following

E: Type 'chris/home/download' is not known on line 1 in source list /etc/apt/sources.list.d/additional-repositories.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.

Only option is to "Close"

when I use terminal command, inxi -r I get the following

Repos: Active apt sources in file: /etc/apt/sources.list.d/additional-repositories.list
chris/home/download
Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com qiana main upstream import
deb http://extra.linuxmint.com qiana main
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner

If you can assist please advise...

Thanks

Re: Synaptic and Repos produce errors

Posted: Thu Aug 21, 2014 5:32 am
by PatH57
Hi,

let's try to clear the local cache first

Code: Select all

sudo rm /var/lib/apt/lists/* -vf
then

Code: Select all

sudo apt-get update

Re: Synaptic and Repos produce errors

Posted: Thu Aug 21, 2014 6:16 am
by nomko
PatH57 wrote: let's try to clear the local cache first

Code: Select all

sudo rm /var/lib/apt/lists/* -vf
then

Code: Select all

sudo apt-get update
This won't fix anything. After running the last command he will still get error message. You didn't read the output of inxi -r carefully. The line that causes the problem is fixed in the source list.

@ Chrisnz:
E: Type 'chris/home/download' is not known on line 1 in source list /etc/apt/sources.list.d/additional-repositories.list
How did this get in your source list? This causes your problem. Remove this line from your source list and then run the sudo apt-get update command in a terminal.

Repos: Active apt sources in file: /etc/apt/sources.list.d/additional-repositories.list
chris/home/download <<== REMOVE THIS LINE
Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com qiana main upstream import
deb http://extra.linuxmint.com qiana main
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner

Re: Synaptic and Repos produce errors

Posted: Thu Aug 21, 2014 7:00 am
by PatH57
sorry didn't read it correctly.
you probably did try to manually or using gedit install a deb you downloaded (witch explains the chris/home/download ) that's why the line was added by mistake to your additional-repositories.list
just remove it and do a

Code: Select all

sudo apt-get update

Re: Synaptic and Repos produce errors

Posted: Sat Aug 23, 2014 3:14 pm
by philliegp
I have i same problem and i think this will fix it but I don't know how to delete it. Can you give me the command to be able to edit the line?

Thanks

Re: Synaptic and Repos produce errors

Posted: Sat Aug 23, 2014 3:33 pm
by PatH57
better would be to post the error to make sure as you don't seem to have a lot of experience with linux.

Re: Synaptic and Repos produce errors

Posted: Sat Aug 23, 2014 3:42 pm
by philliegp
E: Type 'olive' is not known on line 1 in source list /etc/apt/sources.list.d/additional-repositories.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.

This is the error I'm getting. I have no problem opening a terminal as long as I have good instructions.

Thanks

Re: Synaptic and Repos produce errors

Posted: Sat Aug 23, 2014 3:46 pm
by gtsfer
Chrisnz wrote:E: Type 'chris/home/download' is not known on line 1 in source list /etc/apt/sources.list.d/additional-repositories.list
With LM 17 Mate you can open the file with Pluma editor using this command in Terminal...

Code: Select all

sudo pluma /etc/apt/sources.list.d/additional-repositories.list
Edit that line out, save the file and execute this command...

Code: Select all

sudo apt-get update
After that Synaptic Package Manager etc should be ok.

Re: Synaptic and Repos produce errors

Posted: Sat Aug 23, 2014 3:49 pm
by philliegp
I'm running LM17 Cinnamon, same instructions?

Re: Synaptic and Repos produce errors

Posted: Sat Aug 23, 2014 3:54 pm
by PatH57
same instructions if it doesn't open a text editor change pluma for leafpad or gedit (all are text editors)

Re: Synaptic and Repos produce errors

Posted: Sat Aug 23, 2014 4:04 pm
by philliegp
WORKED!!!!!! Thank you so much.

Re: Synaptic and Repos produce errors

Posted: Wed Aug 27, 2014 4:08 am
by Chrisnz
@ Chrisnz:
E: Type 'chris/home/download' is not known on line 1 in source list /etc/apt/sources.list.d/additional-repositories.list
How did this get in your source list? This causes your problem. Remove this line from your source list and then run the sudo apt-get update command in a terminal.

Repos: Active apt sources in file: /etc/apt/sources.list.d/additional-repositories.list
chris/home/download <<== REMOVE THIS LINE
Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com qiana main upstream import
deb http://extra.linuxmint.com qiana main
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner[/quote]

Yes I agree - and ... no idea how the download folder got into the source lists!!

Will try your fix and post asap.
Thanks

Re: Synaptic and Repos produce errors

Posted: Wed Aug 27, 2014 4:14 am
by Chrisnz
Thanks everyone.

to Gtsfer
Yes - edited the first file, the 2nd file was ok, updating with out any error messages.

Solved with thanks.

Re: Synaptic and Repos produce errors

Posted: Wed Aug 27, 2014 4:53 am
by PatH57
no idea how the download folder got into the source lists!!
happens only if you try to add ppa without using synaptic and doing a "how to" found somewhere with google. (and of course being in your home folder)

Re: Synaptic and Repos produce errors

Posted: Wed Aug 27, 2014 12:43 pm
by gtsfer
Chrisnz wrote:Solved with thanks.
No problem, glad it worked. Can you edit you first post and add SOLVED in the subject line?